Multiplication Based on Cell Color

CodingMonkey

New Member
Joined
Jun 18, 2017
Messages
16
Hey all! Hoping someone here is a bit smarter as I've ran into a mental roadblock.

My Worksheet:
I have a inventory worksheet with 4 columns (ID, Product Name, QTY, Total Price) and 788 rows. We are offered pricing based on the "QTY" column, for example 1-10 is $55.00, 11-50 is $25.00. I will provide a mock set of data at end of post for further understanding.

My Situation:
Originally I thought I could just do a simple "=IF(and(" logical statement, but with the amount of pricing points that are offered I reached the limit of logical statements and Excel error'd out. My next progression was to use conditional formatting in the "QTY" column to color cells if they have a value between X and X.

My Question:
Is there a way to make Excel look at the "QTY" column, see the color, then multiply it by an assigned value ("Price" column in Pricing Ranges table) to give me "Total Price"?

Is there a better way to manage this situation better then what I have currently come up with? I'm more then open to ideas!

Sample Data:
IDProduct NameQTYTotal Price
100000-001Product 1113
100000-002Product 2243
100000-003Product 35
100000-004Product 41
100000-005Product 5477
100000-006Product 6234
100000-007Product 723

Pricing Ranges
Min QTYMax QTYPrice
110$55.00
1150$25.00
51100$15.00
101250$10.00
251500$8.00
500$5.00
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about
+Fluff.xlsm
ABC
1Min QTYMax QTYPrice
211055
3115025
45110015
510125010
62515008
75015
Sheet2


+Fluff.xlsm
ABCD
1IDProduct NameQTYTotal Price
2100000-001Product 11131130
3100000-002Product 22432430
4100000-003Product 35275
5100000-004Product 4155
6100000-005Product 54773816
7100000-006Product 62342340
8100000-007Product 723575
Sheet1
Cell Formulas
RangeFormula
D2:D8D2=C2*VLOOKUP(C2,Sheet2!$A$2:$C$7,3,1)
 
Upvote 0
How about
+Fluff.xlsm
ABC
1Min QTYMax QTYPrice
211055
3115025
45110015
510125010
62515008
75015
Sheet2


+Fluff.xlsm
ABCD
1IDProduct NameQTYTotal Price
2100000-001Product 11131130
3100000-002Product 22432430
4100000-003Product 35275
5100000-004Product 4155
6100000-005Product 54773816
7100000-006Product 62342340
8100000-007Product 723575
Sheet1
Cell Formulas
RangeFormula
D2:D8D2=C2*VLOOKUP(C2,Sheet2!$A$2:$C$7,3,1)

Fluff,

You're a saint! Simple as that!

I really need to remember VLOOKUP more often.

Thank you so much for your help and such a quick response at that!

*bow head*
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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