Countifs Help

Sunshine8790

Board Regular
Joined
Jun 1, 2021
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Maybe I'm just using the wrong formula, but my current formula is:
Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S")
This is counting the amount of cells on another sheet that contain a "-" symbol in column V, if Column R contains an "S".

This works - however, I also need the formula to not include counts if Column Q contains "Inactive".
How do I do this?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive")
 
Upvote 0
Maybe I'm just using the wrong formula, but my current formula is:
Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S")
This is counting the amount of cells on another sheet that contain a "-" symbol in column V, if Column R contains an "S".

This works - however, I also need the formula to not include counts if Column Q contains "Inactive".
How do I do this?
Perhaps this:

Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
I'm sorry - I missed something in my goal for the formula.

Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive")

I need this to count the -'s in Column V, IF column R contains "S", and Column P contains a number between 0 and 1, and not include counts if column Q is Inactive.
😓 Sorry, I know it's a lot.
 
Upvote 0
Try
Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive",'Main Sheet'!P:P,">0",'Main Sheet'!P:P,"<1")
 
Upvote 0
Try
Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive",'Main Sheet'!P:P,">0",'Main Sheet'!P:P,"<1")
This gives me a count of 0 which is incorrect 😓
 
Upvote 0
This gives me a count of 0 which is incorrect 😓
Slight modification to Fluff's formula perhaps:

Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive",'Main Sheet'!P:P,">"&0,'Main Sheet'!P:P,"<"&1)
 
Upvote 0
Slight modification to Fluff's formula perhaps:

Excel Formula:
=COUNTIFS('Main Sheet'!V:V,"-",'Main Sheet'!R:R,"S",'Main Sheet'!Q:Q,"<>Inactive",'Main Sheet'!P:P,">"&0,'Main Sheet'!P:P,"<"&1)
This still gives a count of 0.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,692
Members
449,117
Latest member
Aaagu

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