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
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1)>2)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1)>2)
Thanks! I think I updated my account info! It should be current now. Your solution didn't seem to work. :/
 
Upvote 0
Glad it's working & thanks for the feedback.
 
Upvote 0
Hey Fluff, I was wondering if you could further with this problem. Your solution is working great but now I need to take the total greater than 1 and instead of putting 10,000 I need to take the total of the "1s" and multiply it by the 10000. I've tried SUMIF and SUMPRODUCT but I'm still not able to figure it out.
 
Upvote 0
How about
Excel Formula:
=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1))
 
Upvote 0
It doesn't seem to be multiplying the sum of the 1's by the 10000. I tried that earlier before I bothered you. And I tried ...

Excel Formula:
=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1)>1)
 
Upvote 0
Works for me
+Fluff 1.xlsm
DE
560000
61
71
81
9
23
241
251
261
27
28
Main
Cell Formulas
RangeFormula
E5E5=10000*(COUNTIF(D5:D21,1)+COUNTIF(D24:D31,1))
 
Upvote 0

Forum statistics

Threads
1,214,568
Messages
6,120,278
Members
448,953
Latest member
Dutchie_1

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