Vlookup with multiple results

dsrt16

Board Regular
Joined
Jun 18, 2005
Messages
208
I am creating a database with authors, book titles, descriptions, and prices. When I type in a specific authors name in cell C3 I need all the titles in the datbase to appear. I know how to get one to do so, but not all of them.

=VLOOKUP(C3,Book List!A5:D563,2,FALSE) will return one of the book titles.

I have a table set up on the Book List worksheet with author, book title, desciption, and price. I have it set up where I only type the authors name once in the first column then in the second column I list their book titles. After listing their titles then I move on to the next author like this:

Then when I enter Name of Author in cell C3 I want cell C5 to list all the books of that author. (aka A fun title, Another Title, Yeah).
However with the formula I have above it will just list the first title. (aka A fun title)

Edited by NateO: Tried to clean up the table.

Edited by NateO, again: Nope, not working. Deleted the table. You might be interested in the HTML Maker, here:

http://www.puremis.net/excel/downloads.shtml
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi guys,

It's been a while since I've posted here but I'm back with another variation of the Multi VLookup thing. I've played with the foo code and other variants and while it will select the data I want I'd love if it could be arranged in the columns and not just the rows. If it's possible I'd love to have it come out like a pivot table arrangement in a new worksheet.

I'll try to show what I mean here.

In this report I have recorded the many many many problems with the project...


Excel Workbook
ABCD
1TagNoDescriptionOpened ByOpened Date
2061FI-10003/Ecommissioning will installJames04 February 2009
3061FI-10017/Emech not installJohn19 May 2009
4061LCA-21001/TXNO VESSEL TO ACCESSSteve01 December 2008
5061LCA-21001/TXtank incomplete.radar level to be insatalled by pipingDavid15 July 2009
6061PG-10006/GPIPING INCOMPLETEJim23 March 2009
7061PG-10006/Gcommssioning will insatll/monoflange to be install by pipingJohn30 January 2009
8061PG-10006/GWAITING FOR THE INSTRUMENT TO COME FROM THE WAREHOUSEAlan16 August 2009
9061QIA-10130/Ecommssioning will installDavid21 January 2009
10061QIA-10251/Ecommssioning will installSteve14 May 2009
Constraints Report
Excel Workbook
ABCDEFGHIJK
1TagNoInstrument_TypeService_DescriptionPrimary Cable InstalledPrimary Cable Termn FAR ENDPrimary Cable Termination Field/JB EndSecondary Tray InstalledBranch Cable Complete Terminated at Instr side.Branch Cable Complete Terminated at JB side.Instrument InstalledTubing Installed
2061LCA-21001/TXRADAR LEVEL TX FB (FREE SPACE)0T6101 NCC TANKYes
3061FI-10003/EORIFICE PLATE0P6101A-L COND TO 1E6149N/AN/AN/AN/AN/AN/AN/AN/A
4061PG-10006/GPRESS GAUGE0P6101A DISCHARGEN/AN/AN/AN/AN/AN/A
5061FI-10017/EVENTURI0P6101A-L TO 0V6201-8N/AN/AN/AN/AN/AN/A
6061QIA-10130/ESAMPLE PROBE0P6101A-L TO 0V6201-8N/AN/AN/AN/AN/AN/A
7061QIA-10251/ESAMPLE PROBE1E6148 PCC TO 1T6141N/AN/AN/AN/AN/AN/A
Excel 2007 This is the report we use to show activity progress... Progress Report
Excel Workbook
ABCDEFGHIJK
1TagNoInstrument_TypeService_DescriptionConstraint RemarksOpened ByOpened DatePrimary Cable InstalledPrimary Cable Termn FAR ENDPrimary Cable Termination Field/JB EndSecondary Tray InstalledBranch Cable Complete Terminated at Instr side.
2061LCA-21001/TXRADAR LEVEL TX FB (FREE SPACE)0T6101 NCC TANKNO VESSEL TO ACCESSSteve01 December 2008Yes
3tank incomplete.radar level to be insatalled by pipingDavid15 July 2009
4061FI-10003/EORIFICE PLATE0P6101A-L COND TO 1E6149commissioning will installJames04 February 2009N/AN/AN/AN/AN/A
5061PG-10006/GPRESS GAUGE0P6101A DISCHARGEPIPING INCOMPLETEJim23 March 2009N/AN/AN/AN/AN/A
6commssioning will insatll/monoflange to be install by pipingJohn30 January 2009
7WAITING FOR THE INSTRUMENT TO COME FROM THE WAREHOUSEAlan16 August 2009
8061FI-10017/EVENTURI0P6101A-L TO 0V6201-8mech not installJohn19 May 2009N/AN/AN/AN/AN/A
9061QIA-10130/ESAMPLE PROBE0P6101A-L TO 0V6201-8commssioning will installDavid21 January 2009N/AN/AN/AN/AN/A
10061QIA-10251/ESAMPLE PROBE1E6148 PCC TO 1T6141commssioning will installSteve14 May 2009N/AN/AN/AN/AN/A
Excel 2007 What I need is to combine these two kinda like a pivot table/multi Vlookup and combining the two worksheets? Wish
Excel 2007



I must say thanks to
RichardSchollar he's a smart man to have made the HTML maker I used here. It's just so easy to use :)

Anyway I hope someone can help me cus I'm out of ideas at the moment
Thanks in advance
 
Upvote 0
I found this post which is very similar to what I was looking for.

Looking at Just Jon's code, it only does the selection for one target (AAA) in sheet1. I need the same thing but to continue with the next target (XXX) right below last data of previous target and so on, until last target listed in Sheet1.

Since the list of target in sheet1 will be located in a fixed cell in column A, the amount of available rows will be defined to every target. The VBA code needs to consider inserting a line if the amount of data for an specific target is greater than available rows.

Can someone update Just Jon's code to my needs?

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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