Count unique values with two criteria within date range?

Robban7911

New Member
Joined
Aug 16, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
1692199891200.png


I have some issues to solve a formula to count unique values in Column A:A from a date (Cell G2/H2) and forward with the two separate criterias (Cell G1/H1) in Column L:L.
The purpose is to know when the setpoint of 30 loads is met, which means that it is time for the operator to change the furnace's filter.

A more detailed description is that I want to see how many unique loads (Column A:A) have been run in each furnace (eg. T2T-XL 1) in Column L:L since the last filter change Cell G2?

Does anyone have a good formula to easily just change the date (cell G2/G3) when changing the furnace filter and then it calculates the number of loads by itself?

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
is each row considered one unique load?
 
Upvote 0
is each row considered one unique load?
No. Like you see in row 1407-1409 the charge-id is the same (23-06 0053 /01). This means that these three rows should be count as 1 load. Also row 1411-1412 (23-07 0008 /01) should count as 1 load. But row 1410 (23-07 0003 /01) and row 1415 (23-08 0007 /01) should count as 1 load each.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER($A$8:$A$5000,($B$8:$B$5000>=G2)*($L$8:$L$5000=G1))))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,113
Messages
6,123,165
Members
449,099
Latest member
afishi0nado

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