SOLVED

Excel - Fill in values from column and row based on specific criteria to make list

Copper Contributor

Hi! 

 

I am a florist and I make a spreadsheet with the item that I am building (Ex. Bouquet), I specify the flowers I am using at the top then I fill to the right with the number of stems I want in each item (bouquet).  

jacparks_0-1624236610993.png

 

I would like this to then transfer to a recipe sheet where I have a recipe box for each Item (bouquet) and the recipe to specify the flower and how many stems of that flower for that specific Item (bouquet).  

Here is what I have laid out for the recipe sheet.  I cant figure out how to get the data from the table to the recipe card with only the flowers and quantities that are in that specific item. 

jacparks_1-1624236925152.png

I hope this makes sense.  Thanks for your help! I have attached the file. 

 

20 Replies

Hi @jacparks ,

 

If you share your spreadsheet these techie types will flock around here to flex their brains around it so fill it in with as much data samples as you can and post it on here because they like a good challenge puzzle to solve

 

cheers

@Yea_So Here it is Attached. 

Hi @jacparks ,

 

What does the highlighted numbers represent? for example bridal bouquet, says 3 on the first column, does it represent 3x10? or 3 stems?

 

cheers

It’s 3 stems of the alstroemeria in the bridal bouquet.

Hi @jacparks,

 

I added some named ranges:

Yea_So_0-1624387424280.png

 

Then used this formula in the card from this range using:

=FILTER(Ingredients,NOT(ISBLANK(Ingredients)))

Yea_So_2-1624387648357.png

In

Yea_So_3-1624387740583.png

and put a formula:

=IF(OR($B5="Focal",$B5="Filler",$B5="Greenery",$B5="Line",$B5="Hardgoods / Rentals",ISBLANK(B5)),"","Insert IF STATEMENT HERE")

 

Comments:

In the quantity column is not a good practice to have duplicate values. for example:

Alstroemeria-assorted 10
Alstroemeria-assorted 10
Amaranthus-upright bronze, grn & rd BG

 

There are two Alstroemeria entries (vlookup or index match cannot be used)

 

Yea_So_4-1624387935266.png

 

If you have any questions, please do not hesitate to reach out.

 

Cheers

 

 

 

 

Thanks so much! I won’t normally have the same two flowers I was just making sure they would auto fill. I really appreciate your help!
Hi! For this formula

and put a formula:

=IF(OR($B5="Focal",$B5="Filler",$B5="Greenery",$B5="Line",$B5="Hardgoods / Rentals",ISBLANK(B5)),"","Insert IF STATEMENT HERE")

Where it says if statement here, I'm not exactly sure what I'm putting there.

Something like this? This doesn't work but am I on the right track?
=IF('Flower Counter'!J6 > 0, ='Flower Counter'!J6, "")

Hi @jacparks ,

 

The formula does not have to be an if statement, it can be an index match or whatever formula that is appropriate to bring the actual values you would want to appear in that column, the preceding if statement is just to put a blank value if the row is occupied by the ingredient label i.e. focal...etc. So you could put:

=IF(OR($B9="Focal",$B9="Filler",$B9="Greenery",$B9="Line",$B9="Hardgoods / Rentals",ISBLANK(B9)),"",HLOOKUP($B$6,'Flower Counter'!$H$1:$AC$31,MATCH($B$3,'Flower Counter'!H:H,0),0))

 

Cheers 

Hi @jacparks ,

 

I forgot to remove the $ in row cell reference should not be $B$6, but should be $B6 in the HLOOKUP part:


=IF(OR($B6="Focal",$B6="Filler",$B6="Greenery",$B6="Line",$B6="Hardgoods / Rentals",ISBLANK(B6)),"",HLOOKUP($B6,'Flower Counter'!$H$1:$AC$31,MATCH($B$3,'Flower Counter'!H:H,0),0))

The Match reference refers to the Title of the card which is "Bridal Bouquet"

MATCH($B$3,'Flower Counter'!H:H,0), which returns the Bridal Bouquet row number in the "Flower Counter" Tab

 

attached is the updated file

Hi @jacparks,

 

Thought I should make it look prettier:

Yea_So_0-1624476963933.png

 

Cheers

@jacparks 

 

By the way...

In case you're wondering about the purple highlight on the recipe card box, I used conditional formatting:

Yea_So_1-1624487443368.png

 

Yea_So_0-1624487411829.png

that way when there are entries under the other ingredient headings the formatting will follow to which ever row the heading will be at

cheers

best response confirmed by allyreckerman (Microsoft)
Solution

@jacparks 

 

Here's a video to make your drop down list a searchable one, you type the first few characters then click on the drop down and will narrow your selection to the appropriate selections:

https://youtu.be/Ea_ACp5W8zI

Oh my gosh you're the best! it's perfect thank you so much!

@Yea_So Ok, can I pick your brain some more.  

On the FLOWER sheet, is there a way that if there are blanks in the ingredients list that it skips to the next cell that has a vale when it fills in the J1:AC1?

 

SharedScreenshot.jpg

Hi @jacparks,

 

We can get creative.  I was thinking that we can include the Ingredient Headers as part of the drop down selection, and once they're selected we can have excel do a conditional formatting to the headers then it'll only skip 1 column at each indgredient header.  What are your thoughts about it.

 

cheers

We would have to convert the drop down list into a searchable one so you can just type the first few characters i.e. Filler and it will narrow the selection down to 1 or 5 depending on what flowers you have that have that combination of spelling
Do you think the Ingredient list on the left is causing me problems and I can just do the data validation lists right across the top of the page? Would that be any better? That would change all of my other formatting and formulas though.

Hi @jacparks,

 

The ingredients list is functional to the entire scheme of things, especially when you will be sitting with a client during the selection.  Why don't you take a look at this workbook.

 

In the ingredients list, if you put a space character on the cell adjacent to the drop down, it will change the drop down menu to the Ingredients header, and when you make a selection will format the header with its appropriate highlighting, and on top it will display the ingredient header in bold.  Let me know your thoughts.

 

cheers

 

1 best response

Accepted Solutions
best response confirmed by allyreckerman (Microsoft)
Solution

@jacparks 

 

Here's a video to make your drop down list a searchable one, you type the first few characters then click on the drop down and will narrow your selection to the appropriate selections:

https://youtu.be/Ea_ACp5W8zI

View solution in original post