Possibly countifs for two helper columns

Status
Not open for further replies.

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi all,

I have the ‘All Completed VS’ worksheet (screenshot below and link attached). The worksheet shows all of the parkruns at which I have volunteered and the volunteering role that I completed at each. I am looking to do some calculations on this worksheet, but cannot figure out how to calculate the two helper columns (highlighted in orange) that I need.


Screenshot 2021-11-16 at 10.48.48.jpg


The calculations I want to make are in the following two columns:

1. AZ ‘Unique Role # at this Unique Event (Venue)’
- I want this to number the column each time that a new role is completed at each particular unique event (venue). e.g In my example, there should be a ‘1’ in AZ4 (first Marshal role at Newport), a blank in AZ5, a 1 in AZ6 (first Finish Token Support role at Riverfront), a 1 in AZ7 (first Pre-Event Setup role at Newport), a 1 in AZ8 (first Photographer role at Riverfront) and so on…


2. BA ‘Unique Role Stint # at this Unique Event (Venue)’
- I want this to number the column each time that a new stint for each particular unique role is completed at each particular unique event (venue). e.g In my example, there should be a ‘1’ in AZ4 (first Marshal role at Newport), a ‘2’ in AZ5 (second Marshal role at Newport), a 1 in AZ6 (first Finish Token Support role at Riverfront), a 1 in AZ7 (first Pre-Event Setup role at Newport), a 1 in AZ8 (first Photographer role at Riverfront) and so on…

Link: parkrun - Volunteering Example (Slimmed).xlsx

Thanks in advance,

Olly.
 
the linked file is not the same as the illustrations

i just thought you wanted a 1 or blank in column AZ - the linked file has 1,2,3,4,5

parkrun - Volunteering Example (Slimmed)_v2.xlsx
CEFAZBA
3Event (Venue)RoleDate CompletedUnique Role # at this Unique Event (Venue)Unique Role Stint # at this Unique Event (Venue)
4Newport parkrunMarshal25/12/201711
5Newport parkrunMarshal30/12/20172
6Riverfront parkrunFinish Token Support01/01/201811
7Newport parkrunPre-Event Setup01/01/201821
8Riverfront parkrunPhotographer06/01/201811
9Newport parkrunBarcode Scanning13/01/201831
10Newport parkrunFinish Token Support20/01/201841
11Newport parkrunNumber Checker27/01/201851
12Riverfront parkrunBarcode Scanning03/02/201811
13Riverfront parkrunNumber Checker17/02/201811
All Completed VS



I have copied your manual entries into the 2 columns marked manual
added the formulas as before in first 2 columns
then added a comparison of the calc and manual
and filtered for Riverfront parkrun

Event (Venue)RoleDate CompletedUnique Role # at this Unique Event (Venue)Unique Role Stint # at this Unique Event (Venue)ManualManualCompareCompare
Riverfront parkrunFinish Token Support01/01/20181111TRUETRUE
Riverfront parkrunPhotographer06/01/20181111TRUETRUE
Riverfront parkrunBarcode Scanning03/02/20181111TRUETRUE
Riverfront parkrunNumber Checker17/02/20181111TRUETRUE
Riverfront parkrunNumber Checker24/02/201822TRUETRUE
Riverfront parkrunFinish Token Support21/07/201822TRUETRUE
Riverfront parkrunMarshal25/12/20181111TRUETRUE
Riverfront parkrunMarshal01/01/201922TRUETRUE
Riverfront parkrunEvent Day Course Check19/01/20191111TRUETRUE
Riverfront parkrunEvent Day Course Check27/04/201922TRUETRUE
Riverfront parkrunRun Report Writer28/09/20191111TRUETRUE
Riverfront parkrunTail Walker16/11/20191111TRUETRUE
How do I access the file, please? I don't have dropbox
 
Upvote 0

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.
No worries, I have now signed up to dropbox free version and have downloaded the file. It seems to be working perfectly. Thank you for taking the time to look at this for me.
 
Upvote 0
ok, so I did nothing to the formulas
glad its all working now as you needed
 
Upvote 0
ok, so I did nothing to the formulas
glad its all working now as you needed
Thanks again.

These two functions were the first part of what I think will help solve the problems that I identified in my previous message board post. Do you think that with these two helper columns I will now be able to solve it? I was thinking these two helper columns would be the key to being able solve it, so I thought it might be better to break it down into this smaller post first. My previous post is here: Helper columns and perhaps unique(filter functions required

I have now added in your two helper columns to that file (it’s the same file you worked on, but with all of the hidden worksheets / cells unhidden).

Thanks again,

Olly.
 
Upvote 0
I think I've actually confused myself on this one. The BA column is working great, but the the AZ column is actually only showing 1s, so isn't quite right. For Riverfront for example, the AZ column should appear as per the image below.

Screenshot 2021-11-17 at 00.24.34.png


So, column AZ should show how many different unique roles have been completed at that venue and then BA shows the amount of each of these roles that has been completed at each venue. Column BA is working correctly.

Thanks. Apologies, it's quite complicated and previously confused myself!

Link: parkrun - Volunteering Example.xlsx

Thanks again.
 
Upvote 0
I am still struggling to get column AZ to calculate, if anyone might have any ideas. Thanks.
 
Upvote 0
As a free forum, sometimes it may take a day or 2 to get answers, as volunteers here
for example - yesterday I had an Eye scan a photo - so avoided screens, today I'm out for rest of today till evening , and then thur out all day and friday out till evening - so maybe now saturday before i can followup on a reply

A quick solution however its to use a helper column
But i'm sure there maybe a way to have just one formula using a MAXIFS()
But as i say not got time right now to get into
Sorry if this is urgent

i have kept the original formula i suggested in Column AZ and now using as helper column
in column BA , which is the new column added for AZ I have put
=IF(AZ4="","",SUMIF($C$4:C4,C4,$AZ$4:AZ4))
Link to dropbox

parkrun - Volunteering Example (1).xlsx
ABCEFAZBABBBC
3Stint #Event (Venue) Run #Event (Venue)RoleDate CompletedUnique Role # at this Unique Event (Venue)Unique Role Stint # at Unique Event (Venue)Manual
41356Newport parkrunMarshal25/12/20171111
52357Newport parkrunMarshal30/12/2017  2
6351Riverfront parkrunFinish Token Support01/01/20181111
74358Newport parkrunPre-Event Setup01/01/20181212
8552Riverfront parkrunPhotographer06/01/20181212
96359Newport parkrunBarcode Scanning13/01/20181313
107360Newport parkrunFinish Token Support20/01/20181414
118361Newport parkrunNumber Checker27/01/20181515
12956Riverfront parkrunBarcode Scanning03/02/20181313
131058Riverfront parkrunNumber Checker17/02/20181414
141159Riverfront parkrunNumber Checker24/02/2018  2
1512368Newport parkrunNumber Checker24/03/2018  2
1613375Newport parkrunNumber Checker12/05/2018  3
1714148Penallta parkrunNumber Checker26/05/20181111
1815149Penallta parkrunFinish Token Support02/06/20181212
All Completed VS
Cell Formulas
RangeFormula
AZ4:AZ18AZ4=IF(COUNTIFS($C$4:C4,C4,$E$4:E4,E4)=1,1,"")
BA4:BA18BA4=IF(AZ4="","",SUMIF($C$4:C4,C4,$AZ$4:AZ4))
BB4:BB18BB4=IF(C4<>"",IF(C4="","",COUNTIFS($C$4:C4,C4,$E$4:E4,E4)),"")
A4A4=IF(C4<>"",1,"")
A5:A18A5=IF(C5<>"",A4+1,"")


 
Upvote 0
Solution
Yes, that's no problem. Thanks so much for your help. In essence then the AZ column now identifies if it is a unique role for that event and then BA assigns a number to it? Thanks.
 
Upvote 0
Thanks so much for your help. In essence then the AZ column now identifies if it is a unique role for that event and then BA assigns a number to it? Thanks.
Yep, thats what it does, Unique role at event, then a count of roles at any event. I may come up with an all-in-1 formula if i get time, but if that solves and does what you need then i can leave as is
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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