Criteria Met Initiate Formula

grnaskd

New Member
Joined
Dec 2, 2014
Messages
9
Hello,

On paper, I think this should work.

I want to make a formula that if special criteria are met, then a separate formula is calculated based on its own special criteria. If the first criteria is not met then nothing happens.

This is what I started with:

=SUMPRODUCT(COUNTIFS(INDIRECT("'"&$U$3:$U$7&"'!H3:H242"),""&A3&"",INDIRECT("'"&$U$3:$U$7&"'!F3:F242"),"*CIV*"))

This allowed me to count civilians across multiple sheets based on if that civilian belonged to a specific company.

Now I need to separate Males from Females. What I would like to do is put a formula before my original that in every instance a MALE appears that belongs to a specific company, the original formula starts. If a FEMALE appears for that same company, the original formula does not start and that person is not counted.

I tried IF but as I understand, it only returns a value and not a function.
 

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.
I don't know why you have SUMPRODUCT there, but you should just be able to add another criterion to your COUNTIFS to specify either males or females. Which column is that data in?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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