Hi,Team
Problem with vlookup ,
I have attached excel workbook with input and output.
Hi,Team
Problem with vlookup ,
I have attached excel workbook with input and output.
Happy to Help
VISHA
Click *, if the suggestion helps you!
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"
hi Visha, try this array formula:
Formula:
Please Login or Register to view this content.
...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Vlookup doesn't give you multiple return options. Press F1 in Excel and read the builtin tutorials to see all the capabilities of any one function.
So, you'll need a different function. INDEX/MATCH can be tricked into advancing matches if your source data is properly sorted like it is in your sample. This formula in B2 copied down gives the results you want from that data:
=INDEX(INPUT!$B:$B, MATCH($A2, INPUT!$A:$A, 0)+COUNTIF($A$1:$A2, $A2)-1)
This is a standard formula, not an array.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Hi benishiryo
Thanks for reply but your array formula returnig only Bombay and #NUM!
.
Hi,JBeaucaire
Great,your really rocket scientist thanks u vey much.
Good Day![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks