IF AND plus a SUM

kathleenfarber

New Member
Joined
Sep 26, 2016
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I am trying to have a cell look at D5 through D21 (skip 22 and 23) then D24 through D31. If those cells have a 1 in them and the total of all the D cells is greater then 2, I want the cell to show a $10,000 discount.

Any help appreciated. I've been looking at this since yesterday and I just can't seem to figure it out.
~kat
 
Very odd. I copied it again and it worked. First time I hand typed it.

Is there a way to still keep the greater than? I tried adding it back and it stopped working again. Swear this is driving me nuts this week.
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
CostSelectionSubtotal
$30,000​
1​
$30,000
$45,000​
$0
$40,000​
$0
$30,000​
1​
$30,000
$40,000​
$0
$30,000​
$0
$50,000​
$0
DISCOUNT: (2 or more)[discount here]

For each selection, there is a $10,000 discount applied for 2 or more. No discount for 1. So in the above example, there would be a $10,000 discount but if I chose 2 more areas then it would be a $30,000 discount.
 
Upvote 0
In that case how about
Excel Formula:
=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1)-1)
 
Upvote 0
Solution
That seemed to have work. I'll fiddle around with the rest as it shows -10000 when nothing is selected and it's not formatting to the currency. But, thank you so much for the help!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Just for a final note! I think I have the rest solved. Seems to be working.

Excel Formula:
=MAX(0,(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1)-1)*10000)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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