sumif formula with conditions

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Goog Day,
On cell C41 I want to put a formula which will calculate the total sum with the conditions below.

I've created a table from B6:D40
There will be numbers from B6:B40 and C6:D40 will have the letter info as X
My target is to get the total of those numbers.But if there is no info on column C as X
If there is info as X then that number will be reduce %5 from the original amount(if 100000 will consider 95000!)Many thanks.
5%-
COLUMN BCOLUMN CCOLUMN D
20,000X
45,000 X
50,000X
100,000X
300,000 X
TOTAL:506,500

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Thanks Alkey,
Thats good but only misssing is if there is an entry on column C total shold not same..


120,000 x
130,000 x
200,000 x
500,000x

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>

So the total should be 925,000 not 950,000
My question was toreduce %5 from the related cell.
 
Upvote 0
How about
=SUMIF(D2:D6,"X",B2:B6)+(SUMIF(C2:C6,"X",B2:B6)*0.95)
 
Upvote 0
I think you math is wrong. To reduce the total amount of 950,000 by 5% will return 902,500
Here is a formula to get this result
Code:
[B]=SUMPRODUCT((C$12:D$40="X")*B$12:B$40)*(1-5%)[/B]
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
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