Please help

_Landon

New Member
Joined
Jun 20, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello,

I’m having some trouble with a formula solution that I am stuck on.

I need to count a simple tally, if a row has been marked “MC” AND a value (number) has been entered in any combination to P,Q, or R then count as 1.

My formula is attached, and the issue is the value has to be numerically 0 for it to function. Currently it will count a value if “MC” is marked on the row and no numbers have been inputted. I don’t want zeros all over the sheet, I want the sheet to remain blank unless info has been added.

I would greatly appreciate any other ideas or ways to simply count.
Thank you!!
 

Attachments

  • TRACKER SNIP.jpeg
    TRACKER SNIP.jpeg
    72.5 KB · Views: 19

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Since column T is the sum of those columns, just check on that:

=COUNTIFS(U6:U15,"MC",T6:T15,">0")
 
Upvote 0
Column T is the sum of column N-R.

That won’t work for me because I am trying to extract data from P,Q,R only.
 
Upvote 0
How exactly are the cells in column P-R being populated?
It sounds to me like maybe they are not really blank.

Are there formulas in those cells?
Or is there are blank spaces?
 
Upvote 0
How exactly are the cells in column P-R being populated?
It sounds to me like maybe they are not really blank.

Are there formulas in those cells?
Or is there are blank spaces?
Those cells are blank, populated blank. The numbers entered are manually entered, there are no formulas in P-R.

My issue is my current formula is looking for those cells to have a numerical value of 0, which they do not have as blank cells.
 
Upvote 0
I am bit confused by your example and explanation, and am not exactly sure what you are trying to count, as there seems to be conflicting information.
What exactly are you trying to count, the non-blank values, the values greater than zero, or the values equal to zero?
I do not see any records in your example with zeroes in them.
 
Upvote 0
I am bit confused by your example and explanation, and am not exactly sure what you are trying to count, as there seems to be conflicting information.
What exactly are you trying to count, the non-blank values, the values greater than zero, or the values equal to zero?
I do not see any records in your example with zeroes in them.
Let me try to explain with some more context.

This is a flight tracker sheet. Each row is for a single flight and the numbers are for time flown in specific modes.

D - Day
H/w - Weather
N - Night Unaided
NS - Night System
NG - Night Goggles

Flight status in column U is a drop down list.

MC - Mission Complete
NC - Not complete
CX - Cancelled

I am trying to calculate the total number of flights that are either MC or NC by Day or Night.

A single flight row can have all modes or only certain modes flown.
Any mode of day (N,O) flown MC or NC (U) will need to calculated as 1
Any mode of night (P,Q,R) flown MC or NC (U) will need to be calculated as 1.

My current formulae is counting anything other than 0 as a factor. But it isn’t working for some reason. If I can figure out the formula for calculating the number of night flights I can redo the formula for day.
 
Last edited:
Upvote 0
I see the challenge. It can get a little tricky. You might need to use SUMPRODUCT instead of COUNTIFS.
However, if you add a temp column to sum columns P-R for that row, we can get it to work, like this:

1733943826370.png


So the formula for cell V6 is:
Excel Formula:
=SUM(P6:R6)

And the formula for cell U2 (the count you want is):
Excel Formula:
=COUNTIFS(U6:U15,"MC",V6:V15,">0")

Are you able to make use of a Temp column, like this? You can even hide the temp column, if you like (it does not need to be visible).
 
Upvote 1
Solution
I see the challenge. It can get a little tricky. You might need to use SUMPRODUCT instead of COUNTIFS.
However, if you add a temp column to sum columns P-R for that row, we can get it to work, like this:

View attachment 120279

So the formula for cell V6 is:
Excel Formula:
=SUM(P6:R6)

And the formula for cell U2 (the count you want is):
Excel Formula:
=COUNTIFS(U6:U15,"MC",V6:V15,">0")

Are you able to make use of a Temp column, like this? You can even hide the temp column, if you like (it does not need to be visible).
I did think of that but I was trying to avoid doing unnecessary work.

I would need to have a temp column for combined day flights =SUM(N#,O#)

As well as a temp column for combined night flights
=SUM(P#,Q#,R#)

But, let me try and work that real quick and see if I can do that.
 
Upvote 0
This may be helpful, as it shows you how you can do "OR" like conditions in COUNTIFS formulas.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,123
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