| Member with 125 posts. THREAD STARTER | | | |
Multi value result usin vlookup The title of the article on the MS website is:- How to look up a value in a list and return multiple corresponding values
Okay, have mis understood, I assumed that multi value result meant showing more than one result like highlighted in bold at the bottom of this message .
What I want to do is show more than one value from col B, in example xls, in a cell.
Like ash is listed 2wice in Col A & has two differnt values for each in col B.
Is it possible to show lots of values in a cell if ash is in col A lots of times? If not lots then at least 3 values from col B?
Below copied from MS site Return corresponding values from column B
Now, modify the preceding formula to return the corresponding value (and not the row number) and enter the formula as an array formula (CTRL+SHIFT+ENTER):
=INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1:$A$7)),ROW(1:1)),2) The first corresponding value is 234, the value that corresponds to the first occurrence of the name "Ashish".
When you enter or fill this formula in subsequent cells, the formula returns the subsequent corresponding values of 534 and 834.
end
Just had something dropped on my head and saw a flash of light. Combine with & the lower value formula/code with the upper one listed on MS site? Would only give two values. Is there a mid function? If so I please provide code as I'm not smart enough to work it out. I'm very good at copy and paste though!
Perhaps there is another way to show many values if ash is entered in many times? |