0% found this document useful (0 votes)
28 views20 pages

Lakshya Excel 70 Formulas Examples

The document provides a comprehensive list of Excel formulas along with their syntax, example data, and explanations of their functionality. It covers a wide range of functions including SUM, AVERAGE, IF, VLOOKUP, and various text manipulation functions. Each formula is illustrated with example data to demonstrate its application and output.

Uploaded by

cldonald13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views20 pages

Lakshya Excel 70 Formulas Examples

The document provides a comprehensive list of Excel formulas along with their syntax, example data, and explanations of their functionality. It covers a wide range of functions including SUM, AVERAGE, IF, VLOOKUP, and various text manipulation functions. Each formula is illustrated with example data to demonstrate its application and output.

Uploaded by

cldonald13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

1.

Sum & Auto Sum

Formula: =SUM(A1:A5)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This formula sums the values in A1:A5 and returns 150.

2. Sumif

Formula: =SUMIF(A1:A5, ">20")


Example Data:

A
10
20
30
40
50

Formula Explanation:
This sums all values greater than 20, returning 120 (30 + 40 + 50).

3. Unique

Formula: =UNIQUE(A1:A5)
Example Data:

A
10
20
20
30
30

Formula Explanation:
This returns unique values {10, 20, 30}.
4. Sumifs

Formula: =SUMIFS(A1:A5, A1:A5, ">20")


Example Data:

A
10
20
30
40
50

Formula Explanation:
This will sum all values greater than 20, resulting in 120.

5. Product

Formula: =PRODUCT(A1:A3)
Example Data:

A
2
3
4

Formula Explanation:
This will return the product of the values 2 * 3 * 4 = 24.

6. Sumproduct

Formula: =SUMPRODUCT(A1:A3, B1:B3)


Example Data:

AB
2 1
3 2
4 3

Formula Explanation:
This will return 2*1 + 3*2 + 4*3 = 20.

7. Running Total

Formula: =SUM($A$1:A1) (drag down)


Example Data:
A
10
20
30
40

Formula Explanation:
This calculates the cumulative sum for each row.

 Row 1: 10
 Row 2: 30
 Row 3: 60
 Row 4: 100

8. Formulatext

Formula: =FORMULATEXT(A1)
Example Data:

A
=SUM(B1:B3)

Formula Explanation:
This returns the formula text in A1, i.e., =SUM(B1:B3).

9. Dynamic Formula (Indirect)

Formula: =INDIRECT("A" & B1)


Example Data:

A B
10 1
20 2
30 3

Formula Explanation:
If B1 contains 1, it returns A1, which is 10.

10. Average

Formula: =AVERAGE(A1:A5)
Example Data:

A
10
20
A
30
40
50

Formula Explanation:
This calculates the average of A1:A5, which is 30.

11. Averageif

Formula: =AVERAGEIF(A1:A5, ">20")


Example Data:

A
10
20
30
40
50

Formula Explanation:
This calculates the average of values greater than 20, which is 40.

12. Iferror

Formula: =IFERROR(A1/B1, "Error")


Example Data:

A B
10 2
20 0

Formula Explanation:
This formula returns "Error" if there's a division by zero. Otherwise, it performs the division.

13. Len Magic

Formula: =LEN(A1)
Example Data:

A
"Hello"

Formula Explanation:
This returns the length of the string in A1, which is 5.
14. Max

Formula: =MAX(A1:A5)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This returns the maximum value, which is 50.

15. Large

Formula: =LARGE(A1:A5, 2)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This returns the second largest value, which is 40.

16. Min

Formula: =MIN(A1:A5)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This returns the minimum value, which is 10.
17. Small

Formula: =SMALL(A1:A5, 2)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This returns the second smallest value, which is 20.

18. Rank

Formula: =RANK(A1, A1:A5)


Example Data:

A
10
20
30
40
50

Formula Explanation:
This will return the rank of the number in A1 among the range, which is 5.

19. Count

Formula: =COUNT(A1:A5)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This will count the number of numeric values in the range A1:A5, which is 5.
20. Counta

Formula: =COUNTA(A1:A5)
Example Data:

A
10
20
30
40
50

Formula Explanation:
This counts the number of non-empty cells in A1:A5, which is 5.

21. Countblank

Formula: =COUNTBLANK(A1:A5)
Example Data:

A
10
30
50

Formula Explanation:
This counts the number of blank cells in the range, which is 2.

22. Countif

Formula: =COUNTIF(A1:A5, ">20")


Example Data:

A
10
20
30
40
50

Formula Explanation:
This counts how many values in A1:A5 are greater than 20, which is 3.
23. Countifs

Formula: =COUNTIFS(A1:A5, ">20", B1:B5, "<40")


Example Data:

A B
10 5
20 8
30 6
40 7
50 9

Formula Explanation:
This counts how many rows satisfy both conditions: A > 20 and B < 40, which is 2.

24. Subtotal

Formula: =SUBTOTAL(9, A1:A5)


Example Data:

A
10
20
30
40
50

Formula Explanation:
This calculates the sum using the SUBTOTAL function, returning 150.

25. Percentage

Formula: =A1/100
Example Data:

A
50

Formula Explanation:
This calculates 50% of 100, which is 0.5.

26. Percentof

Formula: =A1/B1
Example Data:
A B
30 50

Formula Explanation:
This calculates 30% of 50, which is 0.6.

27. Rand

Formula: =RAND()
Example Data:
No specific data, as RAND() generates a random number between 0 and 1 every time Excel recalculates.

28. Randbetween

Formula: =RANDBETWEEN(1, 100)


Example Data:
No specific data, as RANDBETWEEN() generates a random number between 1 and 100.

29. Abs Magic

Formula: =ABS(A1)
Example Data:

A
-10

Formula Explanation:
This returns the absolute value of A1, which is 10.

30. Formulatovalue

Formula: =VALUE(A1)
Example Data:

A
"100"

Formula Explanation:
This converts the text "100" into the numeric value 100.

31. Upper

Formula: =UPPER(A1)
Example Data:
A

"hello"

Formula Explanation:
This converts the text in A1 to uppercase, resulting in "HELLO".

32. Lower

Formula: =LOWER(A1)
Example Data:

"HELLO"

Formula Explanation:
This converts the text in A1 to lowercase, resulting in "hello".

33. Proper

Formula: =PROPER(A1)
Example Data:

"hello world"

Formula Explanation:
This capitalizes the first letter of each word, resulting in "Hello World".

34. Concatenate

Formula: =CONCATENATE(A1, " ", B1)


Example Data:

A B

"Hello" "World"

Formula Explanation:
This joins the two strings with a space in between, returning "Hello World".
35. & Formula

Formula: =A1 & " " & B1


Example Data:

A B

"Hello" "World"

Formula Explanation:
This is an alternative to CONCATENATE(), joining the two strings with a space, returning "Hello World".

36. Textjoin

Formula: =TEXTJOIN(" ", TRUE, A1:A3)


Example Data:

"Hello"

"World"

"2023"

Formula Explanation:
This joins the strings in A1:A3 with a space delimiter, resulting in "Hello World 2023".

37. Left + Find

Formula: =LEFT(A1, FIND(" ", A1)-1)


Example Data:

"Hello World"

Formula Explanation:
This extracts the first word (before the space) in the string "Hello World", resulting in "Hello".

38. Right
Formula: =RIGHT(A1, 5)
Example Data:

"Hello World"

Formula Explanation:
This extracts the last 5 characters from the string "Hello World", resulting in "World".

39. Mid

Formula: =MID(A1, 7, 5)
Example Data:

"Hello World"

Formula Explanation:
This extracts 5 characters starting from the 7th character, returning "World".

40. Flash Fill

Formula: No Formula
Example Data:

A B

"John Doe" "John"

Formula Explanation:
You start typing the pattern in column B (e.g., "John"), then Excel will automatically fill the remaining names when
you press Ctrl+E.

41. Textbefore

Formula: =TEXTBEFORE(A1, " ")


Example Data:

"Hello World"
Formula Explanation:
This extracts the part before the space in the string "Hello World", returning "Hello".

42. Textafter

Formula: =TEXTAFTER(A1, " ")


Example Data:

"Hello World"

Formula Explanation:
This extracts the part after the space in the string "Hello World", returning "World".

43. Trim Magic

Formula: =TRIM(A1)
Example Data:

" Hello World "

Formula Explanation:
This removes all leading and trailing spaces in the string, resulting in "Hello World".

44. Transpose

Formula: No Formula
Example Data:

A B C

10 20 30

Formula Explanation:
Select the data, copy it, then Right-click > Paste Special > Transpose to change the data from a row to a column.

45. Textsplit
Formula: =TEXTSPLIT(A1, " ")
Example Data:

"Hello World 2023"

Formula Explanation:
This splits the string into separate words based on the space delimiter, returning {Hello, World, 2023}.

46. Now & Today

Formula: =NOW()
Example Data:
No specific data, as this function returns the current date and time.

Formula Explanation:
This returns the current date and time in your system.

47. Date

Formula: =DATE(2023, 12, 25)


Example Data:
No specific data, as the formula generates a date based on year, month, and day.

Formula Explanation:
This creates the date "25-Dec-2023".

48. Day, Month & Year

Formula: =DAY(A1), =MONTH(A1), =YEAR(A1)


Example Data:

25-Dec-2023

Formula Explanation:
=DAY(A1) returns 25,
=MONTH(A1) returns 12,
=YEAR(A1) returns 2023.

49. Days
Formula: =DAYS(A1, B1)
Example Data:

A B

25-Dec-2023 01-Jan-2024

Formula Explanation:
This calculates the number of days between two dates, resulting in 7.

50. Eomonth

Formula: =EOMONTH(A1, 1)
Example Data:

15-Jan-2023

Formula Explanation:
This returns the last date of the next month after A1, which is "28-Feb-2023".

51. Datedif

Formula: =DATEDIF(A1, B1, "Y")


Example Data:

A B

15-Jan-2000 15-Jan-2023

Formula Explanation:
This calculates the difference in years between two dates, resulting in 23.

52. Workday

Formula: =WORKDAY(A1, 10)


Example Data:

01-Jan-2023
Formula Explanation:
This returns the date that is 10 workdays after A1, resulting in 15-Jan-2023.

53. Workday.intl

Formula: =WORKDAY.INTL(A1, 10, "0000000")


Example Data:

01-Jan-2023

Formula Explanation:
This returns the date 10 workdays after A1, where "0000000" means no days are weekends.

54. Networkdays

Formula: =NETWORKDAYS(A1, B1)


Example Data:

A B

01-Jan-2023 15-Jan-2023

Formula Explanation:
This calculates the number of workdays between A1 and B1, resulting in 10.

55. Networkdays.intl

Formula: =NETWORKDAYS.INTL(A1, B1, "0000000")


Example Data:

A B

01-Jan-2023 15-Jan-2023

Formula Explanation:
This counts workdays between two dates while considering custom weekends, like "0000000" for no weekends.

56. IF
Formula: =IF(A1 > 10, "Yes", "No")
Example Data:

15

Formula Explanation:
If A1 is greater than 10, this returns "Yes", otherwise "No".

57. IF + And

Formula: =IF(AND(A1 > 10, B1 < 20), "Yes", "No")


Example Data:

A B

15 5

Formula Explanation:
This checks if A1 is greater than 10 and B1 is less than 20. If both are true, it returns "Yes", otherwise "No".

58. IF + Or

Formula: =IF(OR(A1 > 10, B1 < 20), "Yes", "No")


Example Data:

A B

5 25

Formula Explanation:
This checks if A1 is greater than 10 or B1 is less than 20. If either condition is true, it returns "Yes", otherwise "No".

59. IFS

Formula: =IFS(A1 > 10, "Greater", A1 < 5, "Smaller")


Example Data:

12
Formula Explanation:
This checks multiple conditions: if A1 is greater than 10, it returns "Greater", and if A1 is less than 5, it returns
"Smaller".

60. Vlookup

Formula: =VLOOKUP(A1, B1:C5, 2, FALSE)


Example Data:

AB C

1 1 "Apple"

2 2 "Banana"

Formula Explanation:
This looks up the value in A1 and returns the corresponding value from column C (the 2nd column in the table).

61. Hlookup

Formula: =HLOOKUP(A1, B1:F2, 2, FALSE)


Example Data:

A B C D E F

1 1 2 3 4 5

"Apple" "Banana" "Cherry" "Date" "Elderberry"

Formula Explanation:
This looks up the value in A1 and returns the corresponding value from the second row in the table.

62. Match

Formula: =MATCH(A1, B1:B5, 0)


Example Data:

AB

3 1

3
AB

Formula Explanation:
This finds the position of the value 3 in the range B1:B5, returning 3.

63. Index

Formula: =INDEX(A1:A5, 3)
Example Data:

10

20

30

40

50

Formula Explanation:
This returns the value at the 3rd position in the range A1:A5, which is 30.

64. Index + Match

Formula: =INDEX(B1:B5, MATCH(A1, A1:A5, 0))


Example Data:

A B

10 "Apple"

20 "Banana"

30 "Cherry"

40 "Date"

50 "Elderberry"
Formula Explanation:
This combines INDEX and MATCH to find the corresponding value in B1:B5 for the value in A1.

65. Xlookup

Formula: =XLOOKUP(A1, B1:B5, C1:C5)


Example Data:

AB C

1 1 "Apple"

2 2 "Banana"

Formula Explanation:
This looks for the value in A1 in the range B1:B5 and returns the corresponding value from C1:C5.

66. Picture Lookup

Formula: No Formula
Explanation:
Picture lookups typically involve using shapes or images in Excel that are associated with cell data.

67. Filter

Formula: =FILTER(A1:A5, A1:A5>20)


Example Data:

10

20

30

40

50

Formula Explanation:
This filters the values in A1:A5 that are greater than 20, resulting in {30, 40, 50}.

You might also like