lookup

1inus

New Member
Joined
Jul 6, 2006
Messages
40
I know that vlookup can only handle 1 value, i.e. if it is looking up the number 1 in a table and there are 2 in the table it will return the value from the first one. is there formula that will lookup and return the values next to both number 1's?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I know that vlookup can only handle 1 value, i.e. if it is looking up the number 1 in a table and there are 2 in the table it will return the value from the first one. is there formula that will lookup and return the values next to both number 1's?
Book3
ABCDEF
1
2x0.336xy
3y0.20322
4z0.7920.3360.203
5m0.7580.7440.785
6x0.744  
7y0.785
8z0.989
9m0.218
10k0.804
Sheet1


E3, copied across to F3:

=COUNTIF($A$2:$A$10,E$2)

E4:

=IF(ROWS(E$4:E4)<=E$3,INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=E$2,ROW($A$2:$A$10)-ROW($A$2)+1),ROWS(E$4:E4))),"")

which is confirmed with control+shift+enter (not just with enter) then copied across and down.
 
Upvote 0

Forum statistics

Threads
1,223,494
Messages
6,172,621
Members
452,466
Latest member
Lynlindsay

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