Multiple IF statements

ScottHe

New Member
Joined
Oct 8, 2010
Messages
7
Trying to write an IF statement that will return the following in a new cell.

If the "% replenished/visit" is greater than 20% then return "avg. qty Ord/visit" - otherwise return 0.

However if "% replenished/vist" is greater than 20% and the "std. Dev." is over 2 then add 10% to "avg. qty ord./visit" and if over 3 then add 15% - otherwise do nothing.



<tbody>
</tbody>

ItemDescriptionAvg. Qty Ord./visitStd. Dev.# of times ordered per Year% replenished/visit
1012378CUSH WC PREINFLATED SEAT WAFFLE 17X17IN LF N/S REUS20.7123125462912%
1005993DRSG FOAM SOFT SIL SELF ADH SACRUM MEPILEX BORDER 9.2X9.2IN82.644963768166%
1004953BATT ALK PROCELL SZ AA 1.5V220.630603535198%
1004715 ST PITCHER H2O INSUL FOAM OUTER JCKT LF73.37035508923795%
1004577STRIP TEST BLD GLUCLOSE MNTR ACCU-CHEK INFORM II71.2472191294518%

<tbody>
</tbody>





 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
This?


Excel 2010
ABCDEFG
1ItemDescriptionAvg. Qty Ord./visitStd. Dev.# of times ordered per Year% replenished/visit
21012378CUSH WC PREINFLATED SEAT WAFFLE 17X17IN LF N/S REUS20.712312552912%0
31005993DRSG FOAM SOFT SIL SELF ADH SACRUM MEPILEX BORDER 9.2X9.2IN82.64496377166%0
41004953BATT ALK PROCELL SZ AA 1.5V220.63060354198%0
51004715ST PITCHER H2O INSUL FOAM OUTER JCKT LF73.3703550923795%8.05
61004577STRIP TEST BLD GLUCLOSE MNTR ACCU-CHEK INFORM II71.247219134518%0
Sheet9
Cell Formulas
RangeFormula
G2=IF(F2>0.2,C2*(1+LOOKUP(D2,{0,2,3;0,0.1,0.15})),0)
 
Upvote 0
A
B
C
D
E
F
G
1
ItemDescriptionAvg. Qty Ord./visitStd. Dev.# of times ordered per Year% replenished/visit
2
1012378​
CUSH WC PREINFLATED SEAT WAFFLE 17X17IN LF N/S REUS
2​
0.712312546​
29​
22%​
2​
3
1005993​
DRSG FOAM SOFT SIL SELF ADH SACRUM MEPILEX BORDER 9.2X9.2IN
8​
2.644963768​
16​
23%​
8.8​
4
1004953​
BATT ALK PROCELL SZ AA 1.5V
22​
0.630603535​
19​
8%​
0​
5
1004715​
ST PITCHER H2O INSUL FOAM OUTER JCKT LF
7​
3.370355089​
237​
95%​
8.05​
6
1004577​
STRIP TEST BLD GLUCLOSE MNTR ACCU-CHEK INFORM II
7​
1.247219129​
45​
18%​
0​
Sheet: Sheet29

Formula in cell G2:
=IF((F2>0.2)*(D2<=2),C2,IF((F2>0.2)*(D2>2)*(D2<3),1.1*C2,IF((F2>0.2)*(D2>3),1.15*C2,0)))
 
Upvote 0
This?

Excel 2010
ABCDEFG
1ItemDescriptionAvg. Qty Ord./visitStd. Dev.# of times ordered per Year% replenished/visit
21012378CUSH WC PREINFLATED SEAT WAFFLE 17X17IN LF N/S REUS20.712312552912%0
31005993DRSG FOAM SOFT SIL SELF ADH SACRUM MEPILEX BORDER 9.2X9.2IN82.64496377166%0
41004953BATT ALK PROCELL SZ AA 1.5V220.63060354198%0
51004715ST PITCHER H2O INSUL FOAM OUTER JCKT LF73.3703550923795%8.05
61004577STRIP TEST BLD GLUCLOSE MNTR ACCU-CHEK INFORM II71.247219134518%0

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet9

Worksheet Formulas
CellFormula
G2=IF(F2>0.2,C2*(1+LOOKUP(D2,{0,2,3;0,0.1,0.15})),0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

PERFECT!! Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,974
Messages
6,122,536
Members
449,088
Latest member
RandomExceller01

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