Match Count IF formula

Killer17

Active Member
Joined
Jun 30, 2007
Messages
258
Hey all I using this formula in

Cell C8

=SUMIF('[Statistics.xlsx]Male Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Male Stats'!$D$5:$D$9999)+SUMIF('[Statistics.xlsx]Female Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Female Stats'!$D$5:$D$9999)

I want to update it look into cell B8 and if cell B8 = ABS or DUM to return a zero in cell C8
If B8 is blank then return a number from the formula above.

Thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try this:

=IF(OR(B8="ABS",B8="DUM"),0,IF(ISBLANK(B8),SUMIF('[Statistics.xlsx]Male Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Male Stats'!$D$5:$D$9999)+SUMIF('[Statistics.xlsx]Female Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Female Stats'!$D$5:$D$9999)))
 
Upvote 0
Another option I need added to this formual that works great.

If Cell B8 = DEC or blank leave the amount.


=IF(OR(B8="ABS",B8="DUM"),0,IF(ISBLANK(B8),SUMIF('[Statistics.xlsx]Male Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Male Stats'!$D$5:$D$9999)+SUMIF('[Statistics.xlsx]Female Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Female Stats'!$D$5:$D$9999)))

Thanks again
 
Upvote 0
Hi again,

Just to make sure this is what you're asking for:

If B8 equals "ABS" or "DUM", you would like a zero in C8
If B8 equals "DEC" or blank, use the results of the formula you originally provided.

If that's the case, try this formula:
=IF(OR(B8="ABS",B8="DUM"),0,IF(OR(B8="DEC",ISBLANK(B8)),SUMIF('[Statistics.xlsx]Male Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Male Stats'!$D$5:$D$9999)+SUMIF('[Statistics.xlsx]Female Stats'!B$5:B$9999,$A8,'[Statistics.xlsx]Female Stats'!$D$5:$D$9999)))

Hope this helps,
Pete
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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