Running Total for Unique Variables and a Condition

Brow5213

New Member
Joined
Mar 24, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello!

I am trying to calculate a running total of specific groups, but I do not want a group to be counted if it does not have a posted date.

Currently, I am using the following CountIF formula: (=COUNTIF($H$6:H7,H7)). This formula is effective in helping me find the running total of unique groups, but it counts a group no matter if it has a posting date or not. I am hoping to have a running count that excludes those groups.

Please see the image for reference.

Thank you so much!
 

Attachments

  • Open running total excel.PNG
    Open running total excel.PNG
    25.7 KB · Views: 15

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
try this:
Excel Formula:
=if(D6="","",Countif($H$6:H6,H6))

the OR is unnecessary.
 
Upvote 0
Try this
Book1.xlsx
ABCD
1Search StatPosted DateGroup
2Not StartedNon-Ops0
3endinNon-ops0
4Open2/21/202.3Non-ops1
5Not StartedOperaciones - Brasil0
6Filled12/5/202.2Non-ops2
7Not StartedNon-ops2
8Not StartedNon-ops2
9Filled9/16/202.2supply Chain1
10UpcomingShell Rock Plant0
11OpenNon-ops2
12OpenNon-ops2
13Not StartedNon-ops2
Sheet3
Cell Formulas
RangeFormula
D2:D13D2=COUNTIFS($C$2:C2,C2,$B$2:B2,"<>"&"")
 
Upvote 1
Try this
Book1.xlsx
ABCD
1Search StatPosted DateGroup
2Not StartedNon-Ops0
3endinNon-ops0
4Open2/21/202.3Non-ops1
5Not StartedOperaciones - Brasil0
6Filled12/5/202.2Non-ops2
7Not StartedNon-ops2
8Not StartedNon-ops2
9Filled9/16/202.2supply Chain1
10UpcomingShell Rock Plant0
11OpenNon-ops2
12OpenNon-ops2
13Not StartedNon-ops2
Sheet3
Cell Formulas
RangeFormula
D2:D13D2=COUNTIFS($C$2:C2,C2,$B$2:B2,"<>"&"")
Thanks so much for your response and help. I seem to still be having issues after I've mimicked this formula where it is just returning all zeros. I wrote the function as follows: =COUNTIFS($H$6:H6,H6,$D$6:D6,"< >"&"").

Any guidance is greatly appreciated.
 
Upvote 0
How about
Excel Formula:
=COUNTIFS($H$6:H6,H6,$D$6:D6,"<>")
 
Upvote 0
Solution
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Here is a sample of the errors I am seeing. Thank you for your patience and help on this.

Sample for CountIF Running Total.xlsx
ABCD
1Search statusPosted DateGroups# of Positions Filled by Group
2not startedNon-Ops0
3pendingNon-Ops0
4open2/21/23Non-Ops0
5not startedOperaciones - Brazil0
6filled12/5/22Non-Ops0
7not startedNon-Ops0
8not startedNon-Ops0
9filled9/16/22Supply Chain0
10upcomingShell Rock Plant0
11openNon-Ops0
12openNon-Ops0
13not startedNon-Ops0
14filledNon-Ops0
15filledNon-Ops0
16filledNon-Ops0
17not startedNon-Ops0
18openNon-Ops0
Sheet1
Cell Formulas
RangeFormula
D2:D18D2=COUNTIFS($C$2:C2,C2,$B$2:B2,"< >")
 
Upvote 0
maybe try this:
Excel Formula:
=COUNTIFS($C$2:C2,C2,$B$2:B2,">0")
 
Upvote 0
You need to remove the space between the < & > signs.
 
Upvote 1

Forum statistics

Threads
1,223,967
Messages
6,175,672
Members
452,666
Latest member
AllexDee

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