If statement to multiply based on range

DocRogers

New Member
Joined
Mar 17, 2014
Messages
35
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a formula to multiply different numbers based on where the fall in a range and can't figure out the middle portion. Here is an example of what I'm looking for as well as the formula I thought would have worked but didn't. =IF(C2<=6,1*D2,IF(C2>6,C2<15,2*D2)). So what I'm trying to accomplish is if the number in C2(Lead time) is less than 6 weeks, then multiply D2(Average Monthly Usage)by 1, if the number is greater than 6 but if it's less than/equal to 15, then multiply by 2 and then if it's greater than 15 but less than/equal to 24 I want to multiply by 3 and if its greater than 24 I want to multiply by 7. I've googled the heck out of this and can't find an answer that quite matches what I'm trying to do. Any help would be greatly appreciated. Thank you


Part NumberQuantiyLead Time WeeksAverage Monthly UsageMSQ
2-222n75
50​
2​
55​
55​
3M8YR
77​
4​
115​
115​
B75Y3M8R
115​
8​
551​
FALSE​
SM2788-2
1005​
6​
421​
421​
YNU7752
15071​
15​
6595​
FALSE​
BJ77UI12
42​
2​
12​
12​
YNT7752
77857​
22​
28785​
FALSE​
PW33NT
875​
11​
108​
FALSE​
MIN4TE3
145788​
17​
62586​
FALSE​
PU55Y
1217​
6​
289​
289​
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
Excel Formula:
=IF(C2<=6,1,IF(C2<=15,2,IF(C2<=24,3,7)))*D2
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,140
Members
449,098
Latest member
Doanvanhieu

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