VLOOKUP help please.

steiny0831

New Member
Joined
Oct 18, 2013
Messages
34
Hi there,

I am working on a scheduling spreadsheet for our business. Not sure if what I want to do is possible with vlookup or not or if there is another formula that can do what I am trying to do.

For each day I have 4 slots for a class and time. Meaning some days we will have 1 class and others we could have up to 4.
When I write my vlookup formula it works kind of but did not account for it some situations.
I need the 3 columns to only show the classes on the specific rows for the days, show blanks if there are not enough to fill all for slots. And show different classes if there are more than 1 class for a day.
Right now its only showing the 1st class of the day and filling all 4 slots with the 1st class only.

I have attached a link to see what it is I am needing. Shows my data its pulling from, shows what my vlookup pulls back, and then shows how I need to show.


https://docs.google.com/spreadsheets/d/1DJp-er_XeX1ONFQMsO7JzO-n8B1WkqQKLMuE1S3hAG8/edit?usp=sharing

Thank you for any help anyone can provide.
Jeff
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
VLOOKUP isn't what you need here. VLOOKUP finds one unique value and doesn't have the capacity for "bring me values for all instances of the search value". INDEX, MATCH is what you need, I think. There are many examples of index, match in the forum. I think the only thing that might cause you problems is if you have multiple instances of the same class on the same day. Your sample doesn't show that, but you never know.

Good luck!
 
Upvote 0
Ah, Okay.

I will take a look at the index and match formulas and see what might work best for this.

Thanks for taking a look.
Jeff
 
Upvote 0
See if this works.

NOTE: formula in cell F3 is an array formula that must be entered with CTRL-SHIFT-ENTER.
Drag down column as needed.
Excel Workbook
ABCDEFG
2DayClassTimeDayClassTime
31Wicked Colorado Winter6:30pm - 8:30pm1Wicked Colorado Winter6:30pm - 8:30pm
42Rustic Highland Cow Cutout6:30pm - 8:30pm1
52Ethereal Blossom6:30pm - 8:30pm1
63Pastel Elephants6:30pm - 9:30pm1
74Family Class, Starry Night for Kids ($25)10:00am - 11:30am2Rustic Highland Cow Cutout6:30pm - 8:30pm
84Bottomless Mimosas! Sunshine Daydreams1:00pm - 3:00pm2Ethereal Blossom6:30pm - 8:30pm
95Mystic Forest Meeting Set6:30pm - 8:30pm2
105Twisted Sunrise7:00pm - 8:30pm2
116Anchor of Love6:30pm - 8:30pm3Pastel Elephants6:30pm - 9:30pm
126Carried me through6:30pm - 8:30pm3
137Sunflowers 10 x 307:00pm - 9:00pm3
148*Wood Art* Wild and Free6:30pm - 8:30pm3
159To the Moon and Back III6:30pm - 8:30pm4Family Class, Starry Night for Kids ($25)10:00am - 11:30am
1610Rustic Colorado Set -Couples or Singles6:30pm - 8:30pm4Bottomless Mimosas! Sunshine Daydreams1:00pm - 3:00pm
1711Family Class! Scribbled Heart ($25)2:00pm - 3:30pm4
1811Graffiti Aspen Sunset Set7:00pm - 9:00pm4
1913Anchored Love- Couples Set ($30pp)6:30pm - 8:30pm5Mystic Forest Meeting Set6:30pm - 8:30pm
2013You Make Me Happy6:30pm - 8:30pm5Twisted Sunrise7:00pm - 8:30pm
2114Love Ripples Set6:30pm - 8:30pm5
2214Deer at Sunset Set (Couples or Singles)6:30pm - 8:30pm5
2316Snowy Bridge Set6:30pm - 8:30pm6Anchor of Love6:30pm - 8:30pm
2416Babe-licious7:00pm - 9:00pm6Carried me through6:30pm - 8:30pm
2517** Wood Art** Welcome to our Home2:00pm - 4:00pm6
2617Harvest Moon Light6:30pm - 8:30pm6
2718Winter Wonderland6:30pm - 8:30pm
2820Happy Sloth6:30pm - 8:30pm
2920Morning Splendor6:30pm - 8:30pm
3021By Request! Colorado Balloon Ride6:30pm - 8:30pm
3121Alaskan Night6:30pm - 8:30pm
3222Paint for a Purpose: North High Alumni Assoc.6:30pm - 8:30pm
3323*NEW* Wicked Colorado Winter Moon6:30pm - 8:30pm
3424Pristine Peacock 10 x 302:00pm - 4:00pm
3527Off the Edge6:30pm - 8:30pm
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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