Vlookup with Multiple lookup values

iceman_574_98

New Member
Joined
Oct 26, 2010
Messages
2
i was trying to use
{=IFERROR(INDEX('Total AR'!$B$1:$B$9999,SMALL(IF($A$1='Total AR'!$A$1:$A$9999,ROW('Total AR'!$B$1:$B$999)-2,""),COLUMN()-9999)),"")}
In which Total AR Column B has a unique number in it, Total AR Column A has either AR or EXPENSE or OTHER in it.
on my current sheet A1 i will enter either AR or EXPENSE or OTHER and i want in A2 through A60 for it to get each one of the unique numbers from my Total worksheet that match the entry i put in A1.
So that i put AR in A1 , i would put formula in A2 that would bring over the first unique value from total tab that has AR in column A on the worksheet, A3 would have the next unique number and so on.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Forum!

I think this is what you're trying to do?

A
1EXPENSE
277
388
499
5 
6
Sheet1
Cell Formulas
RangeFormula
A2:A5A2=IFERROR(INDEX('Total AR'!$B$6:$B$9999,SMALL(IF(A$1='Total AR'!$A$6:$A$9999,ROW('Total AR'!$B$6:$B$9999)-ROW('Total AR'!A$6)+1),ROWS(A$2:A2))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.

AB
1
2
3
4
5
6
7EXPENSE77
8
9EXPENSE88
10
11OTHER22
12
13EXPENSE99
14
Total AR

I suggest you update your Account details so we know what Excel version(s) & platform(s) you are using - the best solution often varies by version.
 
Upvote 0
I suggest you update your Account details so we know what Excel version(s) & platform(s) you are using - the best solution often varies by version.
Further to Stephen's suggestion ..

IF you have a recent version with the FILTER function you would only need this formula in the top cell.

iceman_574_98.xlsm
A
1EXPENSE
277
388
499
5
Sheet1
Cell Formulas
RangeFormula
A2:A4A2=FILTER('Total AR'!B1:B9999,'Total AR'!A1:A9999=A1,"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,374
Messages
6,119,155
Members
448,870
Latest member
max_pedreira

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