Sum for grams, cups and monies.

Geek Girl 007

Board Regular
Joined
Mar 12, 2022
Messages
172
Office Version
  1. 2021
Platform
  1. Windows
In column J I want it to show the total amount the cost would be for regarding the amount of cups in column H.
Can this be done?

Roberta's Accounts.xlsx
ABCDEFGHIJ
1
2Food Items
3UnitUnitUnitPer 20
4ProducttypeWeightNum TotalPricePer-itemCupChocolates
5Chocolate-Darkg100011000 g£24.95£24.950.5125 g
6Chocolate-Milkg0.7564.5 g£12.99£2.171250 g
Domes
Cell Formulas
RangeFormula
E5:E6E5=D5*C5&" "&B5
G5:G6G5=F5/D5
I5:I6I5=250*H5&" "&B5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:E153Cellcontains an errortextNO
G5:J153Cellcontains an errortextNO
Cells with Data Validation
CellAllowCriteria
B5:B6List=MAIN!$E$2:$E$5
 

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
Not sure what you're after. An expression (formula) that calculates the cost of an ingredient used based on its unit and unit price? If so, then the expected answer for J5 would be £3.11875 ?
 
Upvote 0
Not sure what you're after. An expression (formula) that calculates the cost of an ingredient used based on its unit and unit price? If so, then the expected answer for J5 would be £3.11875 ?
Hi There,
I buy the products, they mostly come in grams, most of my chocolate recopies come in cups, I'm trying to work out how much it would cost to make a batch, to see if I can make a profit, does that make sense???

I am hoping for a formula to work this out automatically, that's why i added the extra columns.
Thank you
 
Upvote 0
You didn't answer my question. If I5 is the quantity used in a recipe (in grams) and you pay 24.95 for 1000 grams then the cost of that item in the recipe should be 3.11875. That is simply (125*24.95)/1000 or using cell addresses for that item, I5*F5/E5. It should not matter how you bracket that, or if you bracket that at all.
(125*24.95)/1000
125*(24.95/1000)
125*24.95/1000
should all provide the same result because there's no subtraction or addition involved. You do that for every ingredient line, then add those calculations to get the total cost of the ingredients. What that won't answer about profit is how much energy (electricity/gas) you put into it. Nor the wear and tear on equipment such as a mixer.
 
Upvote 0
You didn't answer my question. If I5 is the quantity used in a recipe (in grams) and you pay 24.95 for 1000 grams then the cost of that item in the recipe should be 3.11875. That is simply (125*24.95)/1000 or using cell addresses for that item, I5*F5/E5. It should not matter how you bracket that, or if you bracket that at all.
(125*24.95)/1000
125*(24.95/1000)
125*24.95/1000
should all provide the same result because there's no subtraction or addition involved. You do that for every ingredient line, then add those calculations to get the total cost of the ingredients. What that won't answer about profit is how much energy (electricity/gas) you put into it. Nor the wear and tear on equipment such as a mixer.
Hi again, thank you,
Profit wise, I'm just trying to work out how much it would cost to make a batch up and then see if it's work me adding a profit or just continue giving them out as gifts.
At the moment I am just looking for actual costs (i hadn't even factored in the electricity etc, so thank you for that)

I tried this but it didn't work :(
=I5*F5/C5

Roberta's Accounts.xlsx
ACDEFGHIJ
1
2Food Items
3Weight UnitUnitPer 20
4Productin gramsNum TotalPricePer-itemCupChocolates
5Chocolate-Dark100011000 g£24.95£24.950.5125 g#VALUE!
6Chocolate-Milk1001100 g£2.00£2.001250 g#VALUE!
Domes
Cell Formulas
RangeFormula
I5:I6I5=250*H5&" "&B5
J5:J6J5=I5*F5/C5
E5:E6E5=D5*C5&" "&B5
G5:G6G5=F5/D5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:E153,G5:J153Cellcontains an errortextNO
 
Upvote 0
get rid of the g, otherwise it's not a number, it's a string. Then retest. If everything is in grams, put the g or grams in the header. If not, put the units in j but move j values over to the right somewhere first. Then j values would be g, oz. C (cup), tsp, tblsp or whatever - assuming those are the quantities used in a batch. I don't see the point of column C as you have the info elsewhere. Also, shouldn't A4 be "Ingredient" and Product is the output of the recipe?
EDIT OK, C is feeding a formula. Methinks I'd build this differently.
 
Upvote 0
Solution
get rid of the g, otherwise it's not a number, it's a string. Then retest. If everything is in grams, put the g or grams in the header. If not, put the units in j but move j values over to the right somewhere first. Then j values would be g, oz. C (cup), tsp, tblsp or whatever - assuming those are the quantities used in a batch. I don't see the point of column C as you have the info elsewhere. Also, shouldn't A4 be "Ingredient" and Product is the output of the recipe?
EDIT OK, C is feeding a formula. Methinks I'd build this differently.

Thank you so much for this feedback it is really helpful, especially as this is all new to me.... (not spreadsheets, this process)
I have column C because the is the amount I bought the chocolate and I was trying to work out the price per percentage that a batch of 20 chocolates, I'm not sure how I would re-do it at this point, maybe I'll learn more if this works??? I will take any advice :)

Thank you so much, yes removing the g worked....
 
Upvote 0
Just playing around and no doubt having a different mindset (not better, just different) I was going to suggest that I might do this
1737322480985.png

but when I got around to adding another recipe I see that a separate table of ingredients would probably be better - columns C (purchase price) to J (metric unit) in that table. Then cols A, B and K and L in the recipe sheet. Or maybe validation lists would be better. Then you could pick an ingredient and add it to the recipe from that list. Other lists going across could allow you to pick out units and costs and then do the calcs on the right side of the sheet. Food for thought. Good luck!
 
Upvote 0
Just playing around and no doubt having a different mindset (not better, just different) I was going to suggest that I might do this
View attachment 121417
but when I got around to adding another recipe I see that a separate table of ingredients would probably be better - columns C (purchase price) to J (metric unit) in that table. Then cols A, B and K and L in the recipe sheet. Or maybe validation lists would be better. Then you could pick an ingredient and add it to the recipe from that list. Other lists going across could allow you to pick out units and costs and then do the calcs on the right side of the sheet. Food for thought. Good luck!
This looks fantastic, I will defo have a go, that you so much for the feedback.
I truly appreciate it, Thank you ;)
 
Upvote 0

Forum statistics

Threads
1,225,741
Messages
6,186,763
Members
453,370
Latest member
juliewar

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