# V-LOOKUPS with multiple results

#### MN_Excel

##### Board Regular
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

#### Andrew Poulsom

##### MrExcel MVP
Are the two rows always one below the other?

#### MN_Excel

##### Board Regular
Unfortunately not

#### Andrew Poulsom

##### MrExcel MVP
Try these formulas:

=VLOOKUP("ABC",A:B,2,FALSE)
=VLOOKUP("ABC",INDEX(A:A,MATCH("ABC",A:A,FALSE)+1):B1000,2,FALSE)

#### MN_Excel

##### Board Regular
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 Account ABC Cash Formula Result 321 Asset Act1 Act 2 Act 3 CBA Receivable ABC Liability Liability 123 Receivable 123 ABC Liability 321 Cash CBA Equity 123 Master ABC Master Expected Result Act 1 Act 2 Act 3 ABC Cash Liability Master 123 Receivable Master

<TBODY>
</TBODY>

#### MN_Excel

##### Board Regular
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.

#### Andrew Poulsom

##### MrExcel MVP
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.

Replies
5
Views
217
Replies
1
Views
217
Replies
6
Views
83
Replies
2
Views
223
Replies
3
Views
128

1,195,662
Messages
6,011,005
Members
441,579
Latest member
satishrazdhan

### 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.

### Which adblocker are you using?

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

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