Some kind of match and count possibly required

ollyhughes1982

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

I have a worksheet that shows all of my parkruns ‘All Completed Runs’. From this data I want to identify whether all runs have been completed at my home run. This is one of the parkrun challenges - if you have completed every one of your runs at your parkrun that was your home run at the time then your are a parkrun Passionista! What I want is in cell B164 of the ‘All Completed Runs - Summary’ worksheet to show either ‘Yes’ or ‘No’ and in cell C164 either ‘Yes, [value from cell B55]’ or ‘No’. So if the answer is ’No’ then it always displays No, if the answer is ‘Yes’ then a yes in B164 and then ‘Yes’ followed by a comma, space and then the value from cell B55.

e.g. If the answer is ‘Yes’: ‘Yes’ in B164 and ‘Yes, 245’ in C164. | If the answer is ‘No’: ‘No’ in B164 and 'No' in C164.

For me, the answer is just a ‘No’, but I need to be able to deal with ‘Yes’. In the ‘All Completed Runs’ worksheet I have added a column (EH) which identifies the Home parkrun at the time (these can change as people move around etc.). So, basically, I need a formula that calculates whether the Event run that time matches the home parkrun at that point in time (i.e. the values in Columns C and EH match) and then if this is the case for all rows with an entry in column C then the answer is ‘Yes’. If even one doesn't match then it is a 'No' - it has to be every event run has been at the person's home parkrun at the time.

Link to file: parkrun Passionista.xlsx

(Only a small file, should easily open very quickly)

Thanks in advance,

Olly.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I've been doing some research and perhaps a combination of a countif / exact function are what I need. I can't seem to get to work though.

I have attached a Microsoft OneDrive link, if that's better. parkrun Passionista.xlsx

Thanks again.
 
Upvote 0
I've now managed to solve this.

I used this formula: =IF(COUNTIF('All Completed Runs'!EI4:EI2003,1)=0,"",IF(COUNTIF('All Completed Runs'!EI4:EI2003,1)=B55,"Yes, "&COUNTIF('All Completed Runs'!EI4:EI2003,1),"No"))

Thanks.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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