Posts

Showing posts from June, 2020

How to perform reverse VLOOKUP

Image
METHOD - 1  VLOOKUP Formula =VLOOKUP(A1,CHOOSE({3,2,1},col1,col2,col3),3,0)    Explanation  To reverse a VLOOKUP – i.e. to find the original lookup value using a VLOOKUP formula result – you can use a tricky formula based on the CHOOSE function, or more straightforward formulas based on INDEX and MATCH or XLOOKUP as explained below. In the example shown, the formula in H10 is: =VLOOKUP(G10,CHOOSE({3,2,1},B5:B8,C5:C8,D5:D8),3,0) With this setup, VLOOKUP finds the option associated with a cost of 3000, and returns "C". Note: this is a more advanced topic. If you are just getting started with VLOOKUP, start here. Introduction A key limitation of VLOOKUP is it can only lookup values to the right. In other words, the column with lookup values must be to the left of the values you want to retrieve with VLOOKUP.  As a result, with standard configuration, there is no way to use VLOOKUP to "look left" and reverse the original lookup. From the standpoint of VLOOKUP, we ca...

How to return Zero when a referenced cell is blank?

If you have a formula in a worksheet, and the cell referenced by the formula is blank, then the formula still returns a zero value. For instance, if you have the formula =A3, then the formula returns the contents of cell A3, unless cell A3 is blank. In that case, the formula returns a value of zero. This seems to be related to the idea that it is impossible for a formula to return a blank value, when "blank" is used synonymously with "empty." You can, however, expand your formula a bit so that it returns an empty string. Instead of using =A3 as your formula, you would use the following: =IF(ISBLANK(A3),"",A3) This formula uses ISBLANK, which returns either True or False, depending on whether the referenced cell (A3) is blank or not. The IF function then returns an empty string ("") if A3 is blank, or it uses the value in A3 if A3 is not blank. Regardless of what the formula returns, you can still use its result in other formulas, and it will work...

Sub Total

Image
Function Returns a subtotal in a list or database. It is generally easier to create a list with subtotals by using the Subtotal command in the Outline group on the Data tab in the Excel desktop application. Once the subtotal list is created, you can modify it by editing the SUBTOTAL function." Syntax =SUBTOTAL(function_num,ref1,[ref2],...) The SUBTOTAL function syntax has the following arguments:" Example Using subtotal sum function