Countifs on Unique Records with Multiple Criteria

03856me

Active Member
Joined
Apr 4, 2008
Messages
297
I have Excel 2007, using a Table called sawmillTable

I am looking for the count of days the machine ran. There are multiple days because of breaking down dimensions, specie, etc. So I need to ignore duplicates in the [date] field, I think.

If someone could help get me started that would be great. I have found formulas with MATCH, INDEX, INDIRECT - but have spent hours trying to modify for this purpose, with no luck. I have not been able to find any formulas using Tables and Field Names, which is giving me all kind of problems, along with the ignoring duplicate days.

Here is the criteria:
[Fiscal Year] = $D$3
[Month] = $C$3
[date] <=$B$3
[MachCtr] = "Sharp Chain"

Thank you in advance for your help.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Have you tried a SUMPRODUCT? It would look something like this:

=SUMPRODUCT(--(Range1=Criteria1),--(Range2=Criteria2),--(Range3=Criteria3))
 
Upvote 0
I have Excel 2007, using a Table called sawmillTable

I am looking for the count of days the machine ran. There are multiple days because of breaking down dimensions, specie, etc. So I need to ignore duplicates in the [date] field, I think.

If someone could help get me started that would be great. I have found formulas with MATCH, INDEX, INDIRECT - but have spent hours trying to modify for this purpose, with no luck. I have not been able to find any formulas using Tables and Field Names, which is giving me all kind of problems, along with the ignoring duplicate days.

Here is the criteria:
[Fiscal Year] = $D$3
[Month] = $C$3
[date] <=$B$3
[MachCtr] = "Sharp Chain"

Thank you in advance for your help.
Assumes no empty cells within the [date] range.

A3 = Sharp Chain

Array entered**:

=SUM(IF(FREQUENCY(IF(sawmillTable[MachCtr]=A3,IF(sawmillTable[Month]=C3,IF(sawmillTable[Fiscal Year]=D3,IF(sawmillTable[date]<=B3,MATCH(sawmillTable[date],sawmillTable[date],0))))),ROW(sawmillTable[date])-MIN(ROW(sawmillTable[date]))+1),1))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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