How to return multiple texts on same cell when using Vlookup

aubbus

New Member
Joined
May 20, 2011
Messages
8
Hi,
I have an excel sheet with this info
A B
Cake 10
Bread 5
Coffee 5
Chocolate 8
Cheese 5
.... big list

I want to pull up all the text into one cell or adjacent cells which has the same price.

For Eg., lets say I choose 5 (5 is automatic update and is available on cell)
the formula for the current cell to look up 5 and enter all the text in adjacent cells one by one below

Current Cell e10
Bread
Next cell e11
Coffee
Next cell E12
Cheese

Something like that..
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi Welcome to MrExcel.

This is sample data to give you an idea....


Excel Workbook
ABCDEF
1ID NumberNameAmountAnimalTransportDate
2AA10000tom368.00catBike01/01/2011
3AA10001****277.00dogCar02/01/2011
4AA10002Harry474.00HorseBus03/01/2011
5AA10003Sally163.00Mousetrain04/01/2011
6AA10004Mary330.00fishTram05/01/2011
7AA10005Jim346.00catPlane01/01/2011
8AA10006Jill472.00PandaTut Tut07/01/2011
9AA10007Jo343.00TigerCoach08/01/2011
10AA10008Joe300.00LionCarriage09/01/2011
11AA10009Tim343.00TigerBus10/01/2011
12AA10010Stan100.00cowtrike01/01/2011
13AA10011tom301.00catBike12/01/2011
14AA10012Dom147.00dogCar01/01/2011
15AA10013Harry267.00HorseBus04/01/2011
16AA10014Sally458.00Mousetrain05/01/2011
17AA10015Mary436.00HorseTram06/01/2011
18AA10016Jim299.00MousePlane02/01/2011
19AA10017Homer455.00fishTut Tut09/01/2011
20AA10018John399.00pigCoach01/01/2011
Master



Excel Workbook
ABCD
15Name*Amounts
2*Jim*346.00
3***299.00
4***399.00
5***421.00
6***421.00
Multiples


The formula in D2 needs entering with ctrl shift enter NOT enter.
You can change the range of cells to suit yours.

I hope that helps.

Good luck.

Ak
 
Upvote 0
HI,
Thanks for the fast reply. Do you think this would work with text as well. Because I am looking to return text per value and my search column(text) is to the left of value.
 
Upvote 0
Hi Akashwani,
i follow your logic until here..
Master!D$2:D$43)),ROWS(D$2:D6))-ROW(Master!$A$2)+1),"")
What does master D2..D43 does?
What does master$a$2 does? and why no spaces""
and why add 1?..

I would be great if you could explain the logic.. Sorry I know i am asking more, but i am a beginner trying to learn.

When I used the formula i get an error saying inconsistent formula..
 
Upvote 0
I'm wondering what you want to with the values afterwards, if anything? Is this just so you can see them all together? If so, cosider trying AutoFilter on the columns and AutoFilter column B to '5', for example.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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