VLookup return multiple values

OSUpokesgirl72

New Member
Joined
Apr 22, 2011
Messages
4
Hi, I know there are many threads that exist for VLookup returning multiple values - I am having a difficult time applying it to my spreadsheet, especially with existing formulas.

I am trying to create a project grid of "flowers" and what "tasks" are to occur on what dates. In some instances, there are multiple tasks to be completed. Of course, if a task is not present on a date, I would like the grid to remain blank.

Currently I have a VLookup set within an IF function, so the flowers project grid returns tasks or blanks. However I am lacking the additional tasks occuring on a date.
I hope that someone may be able to help me with this issue. Thanks in advance!

(I had a hard time uploading an example image of my spreadsheets, therefore saved as an image in Facebook below.)
https://www.facebook.com/media/set/?set=a.10100101894419732.2484103.17101327&l=3dc9287db5
 

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, thanks for the reply!

I'll have to wait until I get home on my own PC to try the addition of data through the links. (on my work PC - can barely even get on this site!) For the meantime, I just took a screenshot and had saved on the Facebook link.

Hate to be a pest, I am having such a difficult time trying to read through the other examples and mold to fit my own situation! I'm relatively new to Excel and can barely Vlookup to save my life :-)
 
Upvote 0
Hi,

In the absence of some sample data I have put this together for you.
Is this the type of situation you have?


Excel Workbook
ABCD
1CustomerIDDateData2Data3
2AB12305/05/2011Plane100
3Ab12415/05/2011bus125
4AB12305/05/2011car150
5AB12525/05/2011boat100
6AB12315/05/2011bike250
7Ab12515/05/2011trike125
8ab12325/05/2011Tut Tut100
9AB12405/05/2011Van250
Table



Excel Workbook
ABCDE
1*DateCustomerIDData2Data3
2305/05/2011AB123Plane100
3**AB123car150
4**AB124Van250
Lookup


The formulas in C2, D2, E2 need to be entered with ctrl shift enter NOT enter.
You can then copy them down as far as is required. You will obviously have to change the Sheet names and cell references to suit your data.

I hope that helps you.

Ak
 
Upvote 0
Thanks for your patience.

Let me try this and see if it may make sense as some sample data.

Sheet1
A B C D
1 BLANK 5/15/11 5/22/11 5/29/11
2 Roses Planting
3 Peonies BLANK Planting
4 Hibiscus BLANK Weeding Trimming

Formula currently used to return data in b2:d4 (green values)
=IF(ISNA(VLOOKUP(B$1&$A2,Sheet2!$C:$D,2,0))," ",(VLOOKUP(B$1&$A2,Sheet2!$C:$D,2,0)))


Sheet2
A B C D
1 Date Plant Date/Plant Activity
2 5/15/2011 Roses 40678Roses Planting
3 5/22/2011 Peonies 40685Peonies Planting
4 5/29/2011 Hibiscus 40692Hibiscus Trimming
5 5/15/2011 Roses 40678Roses Trimming
6 5/22/2011 Hibiscus 40685Hibiscus Weeding

I would like to return all activities to the grid in Sheet1 from Sheet2 d2:d6 that correspond to values in c2:c6. My current formula is successful in returning a single activity that corresponds to both the date and plant type and supplies a blank cell for NA values. I'm not sure on how to rewrite the formula to incorporate my original formula and your suggestions on vlookup with multiple values returned.

Again, thank you so much for your help. Not only is this a great challenge for me, it's also an adventure! :)
 
Upvote 0
Hi,

So sheet2 looks like this, does it?...

Excel Workbook
ABCD
1DatePlantDate/PlantActivity
215/05/2011Roses15/05/11 RosesPlanting
322/05/2011Peonies22/05/11 PeoniesPlanting
429/05/2011Hibiscus29/05/11 HibiscusTrimming
515/05/2011Roses15/05/11 RosesTrimming
622/05/2011Hibiscus22/05/11 HibiscusWeeding
Sheet2




Does Sheet1 have this format before the results?....

Excel Workbook
ABCD
1*15/05/201122/05/201129/05/2011
2Roses***
3Peonies***
4Hibiscus***
Sheet1


I have no idea on how you can achieve your goal IF you have a duplicate like 15/05/11 Roses Planting and 15/05/11 Roses Trimming.

If you didn't have duplicates then an Index/Match/Match formula may be the way to go or rearrange your data like this and use a Vlookup.....


Excel Workbook
ABCD
1Date/PlantDatePlantActivity
215/05/11 Roses15/05/2011RosesPlanting
322/05/11 Peonies22/05/2011PeoniesPlanting
429/05/11 Hibiscus29/05/2011HibiscusTrimming
522/05/11 Roses22/05/2011RosesTrimming
622/05/11 Hibiscus22/05/2011HibiscusWeeding
Sheet2




Excel Workbook
ABCD
1*15/05/201122/05/201129/05/2011
2RosesPlantingTrimming*
3Peonies*Planting*
4Hibiscus*WeedingTrimming
Sheet1



The formula in B2 can be copied across and down as required.

I'm sorry if that isn't the solution you require.

Ak
 
Upvote 0
Thanks so much for your help.

I'm going to try reformatting the data to see if one of your suggestions may solve the problem. Perhaps I just need to look at my desired end result a little differently too.
 
Upvote 0
Hi,

Just one last thought on this, have you tried a Pivot Table?
You can arrange the data to suit, Filter by Date or Filter by Activity.
This will be able to handle your duplicates and you can place the Pivot Table on another sheet.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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