Count with If / Max

ollyhughes1982

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

Would anyone please be able to help with calculations in my ‘Completed Unique E(V)’ worksheet, please? In my ‘All Completed Runs - Summary’ worksheet (cell B117) I need a count of the number of unique events (venues) for the United Kingdom only. So, basically a formula that looks at column C in the Completed Unique E(V)’ worksheet to check if the country is ‘United Kingdom’ and then perform a count of the unique events in column B. The answer should be 43. I did manage to get this result myself, but what I couldn’t do was to get it to cap off and display 250 when 250 is reached (like what happens when caps are reached in cells B111:B116). I can't seem to get it to work with the extra country dimension.

The definition of what is needed here is: ‘# of unique events (venues) completed (up to 250) - UK Only’.

Link to file here: parkrun - My parkrun Record - WORKING.xlsx

Thanks in advance!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
You just need to cap it with MIN, i.e.

=MIN(count formula, 250)

I did notice some of the formulas that you were doing capping when I was looking at your file for you earlier question, the way you have been doing it is far more complicated than it needs to be.
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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