V-LOOKUPS with multiple results

MN_Excel

Board Regular
Joined
Nov 8, 2010
Messages
153
Good morning,

I'm attempting to work with a v-lookup that will have multipe results. In column A of my spreadsheet are invoices numbers and in column B are account numbers. An invoice can have multiple accounts. For example, there are two lines for invoice "ABC", each with a different result in column B (see below)

Invoice Account
ABC Cash
ABC Receivable

My goal is to have the vlookup bring in both values, but in separate rows (see below)

Column A Column B Column C
ABC Cash Receivable

Is this possible? Thanks in advance for any help.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try these formulas:

=VLOOKUP("ABC",A:B,2,FALSE)
=VLOOKUP("ABC",INDEX(A:A,MATCH("ABC",A:A,FALSE)+1):B1000,2,FALSE)
 
Upvote 0
I was working with the second formula you provided but had no luck. I've simplified the situation below. The source data is teh invoice and account columns. I've included both my expected results and formula results. Does this help troubleshoot

Invoice</SPAN>
Account</SPAN>
ABC</SPAN>
Cash</SPAN>
Formula Result</SPAN>
321</SPAN>
Asset</SPAN>
Act1</SPAN>
Act 2</SPAN>
Act 3</SPAN>
CBA</SPAN>
Receivable</SPAN>
ABC</SPAN>
Liability</SPAN>
Liability</SPAN>
123</SPAN>
Receivable</SPAN>
123</SPAN>
ABC</SPAN>
Liability</SPAN>
321</SPAN>
Cash</SPAN>
CBA</SPAN>
Equity</SPAN>
123</SPAN>
Master</SPAN>
ABC</SPAN>
Master</SPAN>
Expected Result</SPAN>
Act 1</SPAN>
Act 2</SPAN>
Act 3</SPAN>
ABC</SPAN>
Cash</SPAN>
Liability</SPAN>
Master</SPAN>
123</SPAN>
Receivable</SPAN>
Master</SPAN>

<TBODY>
</TBODY>
 
Upvote 0
Thanks for the help, I think I"m almost there! The link you provided doesn't get me exactly where I need to be in regards to cases where there are more than 2 entries, but I'm thinking the formula you provided earlier might-(VLOOKUP("ABC",INDEX(A:A,MATCH("ABC",A:A,FALSE)+1):B1000,2,FALSE). What is the +1 in the formula doing? I'm wondering if adjusting that would help me bring in the 3rd, 4th, 5th, etc results.
 
Upvote 0
No you can't adjust the +1 to return subsequent matches. It's used to return a reference to the cell below the one containing the first match. Use the formulas in Posts 5 or 6 in the link I gave you.
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,908
Members
448,532
Latest member
9Kimo3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top