Calculate value based on several parameters

tarmand

Board Regular
Joined
Jul 11, 2002
Messages
197
I have a spreadsheet with price per foot of 13 different colors of yarn (C4:04)
Below that, I have an inventory of items where I want to plug in the number of feet of each color of yarn used and have it add up the cost in column Q
What has me stumped is that I need to also add the cost of 25 feet of the cell in that row that is highlighted yellow. So if I have cell F5 highlighted, I need the formula to add (F5*F4) to the total sum.

So, I have this, but need to add the extra 25 feet based on whichever cell is yellow:

=SUMPRODUCT(C5:O5*$C$4:$O$4)


I found something in google referencing a colormatch function but I can't get that to work.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Could you provide some sample data and your expected results?
 
Upvote 0

Forum statistics

Threads
1,215,206
Messages
6,123,636
Members
449,109
Latest member
Sebas8956

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