COUNTIF Formulas with 48 different variations - simplify needed!

CD2017

New Member
Joined
Feb 21, 2017
Messages
33
Hello, I need to pull together a table of statistics in excel. I've used 48 COUNTIFS to count the entries I need but I was hoping somebody might be able to advise me how to do this with a more simplified formula.

The formula is: =COUNTIFS(Report!D:D,C5,Report!B:B,$D$4,Report!N:N,Trans_Description!$B$3)+COUNTIFS(Report!D:D,C5,Report!B:B,$D$4,Report!N:N,Trans_Description!$B$3)+COUNTIFS(Report!D:D,C5,Report!B:B,$D$4,Report!N:N,Trans_Description!$B$4)+.....COUNTIFS(Report!D:D,C5,Report!B:B,$D$4,Report!N:N,Trans_Description!$B$49)

The third criteria will be within this range: Trans_Description!$B$3:Trans_Description!$B$49

Is there a way I can specify a range of values as one of the criteria?

Any help would be appreciated!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Is there a way I can specify a range of values as one of the criteria?

Hi, you can try like this:

=SUMPRODUCT(COUNTIFS(Report!D:D,C5,Report!B:B,$D$4,Report!N:N,Trans_Description!$B$3:$B$49))
 
Upvote 0
Excellent - thank you!

Hello again, is there a similar way to do this with SUMIFS formula?

The formula I have is:

=SUMIFS('mySS report_A'!G:G,'mySS report_A'!B:B,D29,'mySS report_A'!D:D,C30,'mySS report_A'!S:S,"USD",'mySS report_A'!N:N,Trans_Description_A!B3:B49)

Thanks!
 
Upvote 0
=SUMPRODUCT(SUMIFS('mySS report_A'!G:G,'mySS report_A'!B:B,D29,'mySS report_A'!D:D,C30,'mySS report_A'!S:S,"USD",'mySS report_A'!N:N,Trans_Description_A!B3:B49))

Hi, try the additions in red above.
 
Upvote 0

Forum statistics

Threads
1,213,485
Messages
6,113,931
Members
448,533
Latest member
thietbibeboiwasaco

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