Lakshya Excel 70 Formulas Examples
Lakshya Excel 70 Formulas Examples
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
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
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
AB
2 1
3 2
4 3
Formula Explanation:
This will return 2*1 + 3*2 + 4*3 = 20.
7. Running Total
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).
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
A
10
20
30
40
50
Formula Explanation:
This calculates the average of values greater than 20, which is 40.
12. Iferror
A B
10 2
20 0
Formula Explanation:
This formula returns "Error" if there's a division by zero. Otherwise, it performs the division.
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
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
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
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
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: =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
A B
"Hello" "World"
Formula Explanation:
This joins the two strings with a space in between, returning "Hello World".
35. & Formula
A B
"Hello" "World"
Formula Explanation:
This is an alternative to CONCATENATE(), joining the two strings with a space, returning "Hello World".
36. Textjoin
"Hello"
"World"
"2023"
Formula Explanation:
This joins the strings in A1:A3 with a space delimiter, resulting in "Hello World 2023".
"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".
Formula: No Formula
Example Data:
A B
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
"Hello World"
Formula Explanation:
This extracts the part before the space in the string "Hello World", returning "Hello".
42. Textafter
"Hello World"
Formula Explanation:
This extracts the part after the space in the string "Hello World", returning "World".
Formula: =TRIM(A1)
Example Data:
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:
Formula Explanation:
This splits the string into separate words based on the space delimiter, returning {Hello, World, 2023}.
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 Explanation:
This creates the date "25-Dec-2023".
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
A B
15-Jan-2000 15-Jan-2023
Formula Explanation:
This calculates the difference in years between two dates, resulting in 23.
52. Workday
01-Jan-2023
Formula Explanation:
This returns the date that is 10 workdays after A1, resulting in 15-Jan-2023.
53. Workday.intl
01-Jan-2023
Formula Explanation:
This returns the date 10 workdays after A1, where "0000000" means no days are weekends.
54. Networkdays
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
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
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
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
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
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
A B C D E F
1 1 2 3 4 5
Formula Explanation:
This looks up the value in A1 and returns the corresponding value from the second row in the table.
62. Match
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.
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
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.
Formula: No Formula
Explanation:
Picture lookups typically involve using shapes or images in Excel that are associated with cell data.
67. Filter
10
20
30
40
50
Formula Explanation:
This filters the values in A1:A5 that are greater than 20, resulting in {30, 40, 50}.