Find values according to criteria and count instances

ollyhughes1982

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

I have a worksheet (‘All Completed VS’) with all of the parkruns at which I have completed volunteering stints and which role I undertook at each one.

All Completed VS.jpg


What I am trying to do is populate columns AA to CB in the ‘Completed Unique VS E(V)’ worksheet (below).

Completed Unique VS E(V).jpg


This worksheet shows all of the unique events at which I have undertaken volunteering roles. In columns AA to CB I have two columns for each type of the 27 possible volunteering roles available. In the first column for each I want to show a ‘1’ if I have completed that role at that particular event (conditional formatting is set to fill the cell with colour). In the second column for each type of role, I want to show the number of times it has been completed at that venue.

Link to file is here: parkrun - Volunteering Example.xlsx

Thanks in advance,

Olly.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I thought this had been answered here

is this different
 
Upvote 0
Hi. yes, this is a different worksheet. All I need here is a 1 if it has been done at the particular event and then a count in the second column. I need to add this grid-type layout in order to be able to solve the final two worksheets that I have
 
Upvote 0
In this one, it will need to search the name of the role (e.g. 'Barcode Scanning' for cell AA1) and check if it appears anywhere against 'Newport parkrun' in the 'All Completed VS' worksheet. Then, the second column counts how many times that role has been completed at that event. Again, searching on the role name 'Barcode Scanning' appearing anywhere against 'Newport parkrun' in the 'All Completed VS' worksheet, but this time counting the total instances.

This grid type structure is the only way I can think of that will be able to solve points 3 and 4 in my other original post.

Thanks again.
 
Upvote 0
i'm out now rest of day , But I dont see where to lookup if you have done this event
I maybe missing something here, so apolgies if thats the case

All Completed VS - VER-I. has the Locations Events just as a number
All Completed VS - VRE-I. has the roles - just as a number

How do I know barcode scanning has been done at Newport parkrun ?

And how do i know how many times it has been done at Newport parkrun ?

Again I suspect a COUNTIF() or COUNTIFS() and a SUMIF() should work

Also points 3 and 4 , i assume are the ones mentioned on another thread
 
Upvote 0
This worksheet only shows the unique events that I have done, whereas the 'All Completed VS' worksheet shows all the parkruns. So, in this sheet I just want to be looking up if I have done a certain role against each unique event that I have done, and how many times. I think this will then start to give me what I need for 3 and 4 on the other thread. This is different from 1 and 2. Thanks.
 
Upvote 0
I have now found a solution for column AA, using the following formula:

=COUNTIFS('All Completed VS'!$C$4:$C$2003,B4,'All Completed VS'!$E$4:$E$2003,'Volunteer Roles'!$B$3)

I am however struggling with the second column (AB).

Thanks again.
 
Upvote 0
I have now resolved this, with:

Column AA:
=IF(B4<>"",IF(COUNTIFS('All Completed VS'!$C$4:$C$2003,B4,'All Completed VS'!$E$4:$E$2003,'Volunteer Roles'!$B$3)=0,"",1),"")

Column AB:
=IF(B4<>"",IF(COUNTIFS('All Completed VS'!$C$4:$C$2003,B4,'All Completed VS'!$E$4:$E$2003,'Volunteer Roles'!$B$3)=0,"",COUNTIFS('All Completed VS'!$C$4:$C$2003,B4,'All Completed VS'!$E$4:$E$2003,'Volunteer Roles'!$B$3)),"")

Thanks.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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