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 ‘match’
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 »
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 [...]
Evaluating step functions
Posted in Uncategorized, tagged index, match, offset, sumproduct on May 27, 2009 | Leave a Comment »
This problem is on step functions. Certain utility company charges me in this manner For the first 25 units of consumption, the rate is 212 per unit, for next 35 units, the rate is 270 per unit and so on. I have calculated the total amount payable for certain unit of consumption by using sumproduct [...]
Lookup to the left
Posted in Uncategorized, tagged array function, match, offset, sum, sumproduct, vlookup on May 26, 2009 | Leave a Comment »
For looking up through vlookup, the value to be returned needs to be to the right of lookup_value. Here is a solution for returning a value to the left of lookup_value using match and offset functions The problem is given in the image sheet below The H1Y1 performance of certain sales people have to [...]
Cows and Bulls
Posted in Game, tagged array function, Conditional formatting, count, match, mid, rand(), row on May 21, 2009 | Leave a Comment »
Here is how you can play the game Cows and Bulls in excel The objective of the game is to guess the secret number (which is hidden from the player). The player can guess the number as many times. If the matching digits are on their right positions, they are “bulls”, if on different positions, [...]
Multiple extraction through vlookup
Posted in Uncategorized, tagged column(), concatenate, countif, index, match, offset, vlookup on May 4, 2009 | 2 Comments »
The problem here is extraction of multiple results from a two column array through a vlookup The data available is given in columns B and D. The 4 regions along with their major cities are known. The data needs to be arranged as in the table below Start by sorting on region (column B) [...]