when i make a vlookup it return one result what is the first
how can i make to return multiple results
for example: a price sheet that have 2 similar items and i want to lookup by item name it should bring in both items
Thanks in Advanced
when i make a vlookup it return one result what is the first
how can i make to return multiple results
for example: a price sheet that have 2 similar items and i want to lookup by item name it should bring in both items
Thanks in Advanced
You will probably need to use Match and Index rather than VLOOKUP, which will always just return the first value. The only way around this is to set a dynamic range, which is more difficult.
http://www.mrexcel.com/articles/exce...ndex-match.php
After you match the item, simply add a +1 to the index of the second item and it will pull in the information one cell down.
Match looks like: =MATCH(Value, array, < > or =)
Index Looks like: =INDEX(Array, Row #,[column #])
To use them together, nest match inside of index as the row #.
=INDEX(A1:A30, MATCH(part number, table of part numbers, 0))
For the next part number, if it is right below it,
=INDEX(A1:A30, MATCH(part number, table of part numbers, 0)+1)
If the second part # is not one cell below it, this will be more complicated, and you should post a sample of your issue.
I suggest that you start your own thread.
Make sure you include the details.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Yes it's possible retrieve multiple results
Azumi
Underling, welcome to the forum
Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.
If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.
Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Ok, why is Underling's post breaking the rules but this post is not?
Read the thread starting at this post:
http://www.excelforum.com/excel-form...ml#post3456566
You guys (mods/admins) need to get together and clarify this rule so we're (responders/question askers) not confused as to what the policy (rule) is.![]()
Ok, I just figured out a way to avoid the confusion of this issue...
I'll just not read or respond to "old" threads.
Man, how easy was that?![]()
Thanks and sorry guys! I thought it might be against the rules but it was just so relevant that it was driving me crazy! I was trying to get ahold of the guy who answered the question to see if you could expand on the other guys question (because my question was exactly the same as his!! =) I started a new post and referred to this one so they could get the background information relatively quickly. Sorry Tony Valko =0
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks