You are on page 1of 14
Excel Formulas 10 Formulas that helps you in any JOB 10. Presentation Flow SUM Formula Count Formula Count A Formula LEN Function TRIM Function RIGHT, LEFT and MID Function VLOOKUP IF Statements SUMIF, COUNTIF AND AVERAGEIF CONCATENATE Function SUM FORMULA The SUM formula does exactly what you would expect. It allows you to add 2 or more numbers together UM(5,5) or =SUM(A1, B1) or =SUM(A1:B5) The above shows you different examples. You can have numbers in there separated by commas and it will add them together for you, you can have cell references and as long as there are numbers in those cells it will add them together for you, or you can have a range of cells with a colon in between the 2 cells, and it will add the numbers in all the cells in the range. Keyboard Shortcuts: ALT + = (equal to sign) : The Shortcut automatically selects the range of cells above the formula upto an empty cell. If used after applyinga filter ona column, this shortcut will give subtotal of the filtered values for that column Formula: a < ° A ces 2la a 2/8 aa t 4 ale Shortcut : ALT + =i7 a I yf so wa tg = , a ‘Sunimumberk [number21_) 8 COUNT Formula The count formula counts the number of cells in a range that have numbers in them This formula only works with numbers though, It only counts the cells where there are numbers Formula : =Count(A1:A10) formula =COUNT(ALAIO) > rome =cOuNT(aXA30) COUNTA Formula Counts the number of non-empty cells in a range. It will count cells that have numbers and/or any other characters in them OUNTA(A1:A10) It counts the number of non-empty cells no matter the datatype. Formula: LEN Function The LEN formula counts the number of characters in a cell. Be careful thoug! includes spaces. his A B c o 1 [Hove Excel Formula Result 2 2 |lloveéxcel Formula =LEN(A1) 4 Formula Result 10 5 Formula =LEN(A2) Notice the difference in the formula results: 10 characters without spaces in between the words, 12 with spaces between the words. TRIM Function Useful for removing extra spaces in a cell whether at beginning, trailing or anywhere between the words. Often when you pull data from a database you may find some extra spaces are put in behind or in front of legitimate data. This can wreak havoc if you are trying to compare using IF statements or VLOOKUP’s. Formula: =TRIM(A1) A e c D 1 Tove Excel Formula Result I Love Excel 2 Formula RIM(A1) 4 ‘Character Count With Trim 2 5 Character Count Without Trim 23 | added in an extra space behind “I Love Excel’. The TRIM formula removes that extra space. Check out the character count difference with and without the TRIM formula. RIGHT, LEFT and MID function These Formulas return the specified number of characters from a text string Right gives you the number of specified characters from right of a text string Left gives you the number of specified characters from left of a text string MID gives you the number of speci Formul: d characters from middle of a text string IGHT(Text or Cell reference, number of characters), = LEFT(Text or Cell reference, number of characters) and =MID(Text or Cell reference, Start Number, number of characters) © Formula Result =eFTIAL) VLOOKUP Function By far the most used function in day to day operations of many businesses What it Does : Looks for a value in another table or array and returns value in the same row from a column you specify In Simple terms, it does a find action of a value from one sheet or table or file in another sheet or table or file and copies the value corresponding to that value from the column specified in the formula Formula: =Vilookup(lookup_value, table_array, col_index_num, range_lookup) Let’s Break the above formula in 4 parts — a. Lookup_Value = This is the field that has common references / values to other file which has more details b, Table_Array= This is the range that you select from another file or sheet or table starting from the column which has common references / values to the lookup_value as defined in (a) above cc. Col_index_num = This is the column reference number from which you wish to pick values against the lookup value as defined in (a) above d. range_lookup = This is used to derive approximate or exact match. “0” or “False” value will provide an exact match whereas “1” or “True” value will provide an approximate match VLOOKUP Function (Contd..) Example Range_lookup Table_Array a Spnmeman pad Inthis example, lam attempting to create Master List from List 1 and List 2 using Sales ID Personas my “Lookup _value” Some Points to remember, Fora viookup function, there always need to be a common field with common values whichis referred to as “lookup_value". Itcan be read like this while attempting the formula, lookup “x” in this range Le. “wy” and pickup “y” and do an exact match i.e. “False” or “0” IF Statements This again is most used formula for a lot of analytical scenarios where a data has to react differently based ondifferentsituations Formula: =1F(logical_test, value_if_true, value_if_false) Logical Statements may include comparison of one value to another using “>", “<", “—", “OR”, “AND”, ete In simple terms, it looks if the logical statement returns a true value or false value and accordingly, user can define the value to be displayed if the resultis true and and value to be displayed if resultis false. So basically it has 3 parts Le. IF (logical test), THEN (if true) and ELSE (If not true) Let’s Break the above formulain 3 parts — a. Logical Statement — Usually a comparison statement using Loy b. True value returned | Operators the answer to the logical statement is true, the value specified fortrue value will be False Value - If the answer to the logical statement is false, the value spe returned ied for false value will be + Example f A 8 © o £ s. Hl Tec ages oaths -Wighesin Science) 1e\GaWgher Man ihe a Since IF Statements(Contd...) If Statement is a very powerful formula which can be used to derive results of complex problems, It can be used to avoid multiple steps while working on a worksheet and instead can give result in one shot. This can be done using Nested IF Statements. This Is covered our Advanced Excel Program Example of a Nested IF Statement if{logical_test, value_if_true, iftlogical_test, value_i forth) Nested IF always has a new IF Statement for False value. This argument can be continued till all the situations are covered. This statement is useful for defining Age Buckets =itlages7, “0-7"it(7

You might also like