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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Could you provide some sample data and your expected results?
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,147
Members
452,615
Latest member
bogeys2birdies

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