While we can use vlookup or hlookup to return a cell value in a particular row or column. Is there a way we can lookup from both row and column to return a particular value from a cell in a grid? Consider the case below: (Yes, I have added more colours to the table this [...]
Posts Tagged ‘sum’
Cell value from a grid
Posted in Tip, tagged address, array function, column(), index, indirect, match, row, sum, sumproduct, vlookup on July 16, 2009 | Leave a Comment »
The trick of ––
Posted in trick, tagged --, array formula, isnumber, Left, sum on July 10, 2009 | 1 Comment »
You read it right. Its going to be a quick post but at the end of it, you would be glad that you read it. Trick1: Text to Number Consider this =ISNUMBER(LEFT(12345,1)) – this returns FALSE as this simplifies to =ISNUMBER(“1″) However, =ISNUMBER(––LEFT(12345,1)) returns TRUE. The two minus signs in conjunction “––” converts text “1″ [...]
Sum – Year to Date
Posted in Tip, tagged match, offset, sum on July 6, 2009 | Leave a Comment »
The problem here is summing sales figure from the start of the year to a particular month Sales of 2 products (Item1 and Item2) is given for an entire year – Jan to Dec. The objective is to find cummulative sales till a particular month. For instance the input is Item1 and Jun – where [...]
DPD analysis using two condition sum
Posted in Tip, tagged array formula, frequency, If, sum on June 10, 2009 | Leave a Comment »
Days past due analysis, two condition sum, bucketing data, frequency function Here I have carried out a days past due (DPD) analysis. This requires organizing data in various days bucket and makes use of conditional sum function. 14 cases are presented. Each case has a days past due and a corresponding amount. The objective is [...]
Lookup_value as array
Posted in Tip, tagged array formula, lookup, sum, vlookup on June 9, 2009 | Leave a Comment »
lookup_value as array, why lookup over vlookup, multiple lookup_value in single lookup function, sum(lookup) In one of my earlier posts, I had illustrated passing an array for col_index_num in vlookup. Refer Extract and sum vlookup results. We now look at the possibility of passing an array for lookup_value in vlookup. Refer the example below: If we [...]
Text to Numbers
Posted in Just Like That, tagged array formula, code, indirect, Len, lookup, lower, mid, row, Substitute, sum on June 8, 2009 | 1 Comment »
Just like that, each alphabet corresponds to a number, summing up alphabets I cant really see how this post could be useful to you. One of my friends who believed in numerology brought this problem to me of converting names to numbers. Here is the solution that we worked out. You may treat this as [...]
Converting numbers to words
Posted in Tip, tagged concatenate, Left, Len, mid, proper, Right, rounddown, sum, value, vlookup on June 5, 2009 | 1 Comment »
How do we convert numbers to words. Especially useful if you are writing cheques (checks) through printing through a soft file. The logic given below is one for India – it uses crores and lacs. The logic works for all numbers between 1 and 99,99,99,999 (100 crore -1) Say the numbers that need to be [...]
Adding errors, texts, numbers, blanks in a list
Posted in trick, tagged array formula, If, isblank, iserror, isnumber, istext, sum on June 4, 2009 | Leave a Comment »
A quick post. Here is how you can you can count errors, blanks, numbers, texts in a list. List A2:A11 is defined as Count_list To count Errors {=SUM(IF(ISERROR(Count_list),1,0))} Blanks {=SUM(IF(ISBLANK(Count_list),1,0))} Numbers {=SUM(IF(ISNUMBER(Count_list),1,0))} Text {=SUM(IF(ISTEXT(Count_list),1,0))} The formulas are entered as array formuals with ctrl+shift+enter
Extract and sum vlookup results
Posted in Tip, tagged array formula, sum, vlookup on June 1, 2009 | 1 Comment »
multiple vlookup, sum(vlookup), sum vlookup results in a single formula Consider the problem as below: The table gives the sales figures for each of the sales person across five products Say we need to find the total sales for identified salesperson across 3 products – Prod1, Prod2 and Prod5 One way to do this is [...]
Sum array with errors
Posted in Uncategorized, tagged array formula, If, isnumber, sum, sumx2py2 on May 29, 2009 | Leave a Comment »
How do you sum up an array which is a combination of numbers and errors? I faced this problem when carrying out a vlookup. The results_array is a combination of #N/A error and numbers as below: On summing up Results_array through the formula =sum(A2:A16) gives #N/A error. To overcome this problem I made use of the [...]