UNIQUE(FILTER amendement required

ollyhughes1982

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

Re the screenshot below, I have a small worksheet that calculates the V-Index for my parkrun volunteering. I have the following formulas in B4 and C4.

V-INDEX.png


B4:
=IFERROR(UNIQUE(FILTER('All Completed VS'!C4:C2003,'All Completed VS'!F4:F2003<>"")),"")

C4:
=IF(B4="","",COUNTIF('All Completed VS'!C:C,B4#))

This previously was thought to be working. However, I now realise that rather than every unique stint (i.e. each row) needing to be included, I should only be including each unique date (day). This is because multiple stints (roles) can be completed on each day.

The values in column C should be:
C4: 1 (I have voluneteered at Newport on 1 unique date)
C5: 2 (I have voluneteered at Newport juniors on 2 unique dates)
C6: 3 (I have voluneteered at Coed Cefn-pwll-du on 3 unique dates)

So, I need to use the same principle as in the original formulas, but for unique dates, rather than each unique row.

I have added some helper columns in AY, BG and BH which I think might help with this? Screenshots of main source spreadsheet, below:

Screenshot 2021-12-15 at 19.22.46.png
Screenshot 2021-12-15 at 19.23.01.png


Thanks in advance,

Olly.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
To simplify. All I really want to do is count how many unique dates upon which I have completed volunteering at each event (venue). i.e. Only count the first line for each date, not the multiple lines. For example, only count 1 stint (day) for 29/08/2021, instead of 3. I think helper column BH should help with this?

Hopefully that explains it better?

Thanks again.
 
Upvote 0
I have now solved this by adding in a new column after BG that identifies the event (venue) that corresponds when there is a '1' in BG. Thanks.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,758
Messages
6,126,704
Members
449,331
Latest member
smckenzie2016

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