simplify formula

Miguelluis

New Member
Joined
Jan 29, 2013
Messages
45
Hi
I have the formulas below to look at 3 diferent sheets and count values, is there a way to simplify this and perhaps make the sheet a bit faster?
Cell D =SUMPRODUCT(COUNTIFS(Mel!$E$2:$E$400,C8,Mel!$J$2:$J$400,$B$1))+(COUNTIFS(Lisa!$E$2:$E$400,C8,Lisa!$J$2:$J$400,$B$1))+(COUNTIFS(Emma!$E$2:$E$400,C8,Emma!$J$2:$J$400,$B$1))+(COUNTIFS(Charlotte!$E$2:$E$400,C8,Charlotte!$J$2:$J$400,$B$1))+(COUNTIFS(TBC!$E$2:$E$400,C8,TBC!$J$2:$J$400,$B$1))+(COUNTIFS('TBC2'!$E$2:$E$400,C8,'TBC2'!$J$2:$J$400,$B$1))

Cell E =SUMPRODUCT(COUNTIFS(Mel!$E$2:$E$400,C8,Mel!$J$2:$J$400,$B$2))+(COUNTIFS(Lisa!$E$2:$E$400,C8,Lisa!$J$2:$J$400,$B$2))+(COUNTIFS(Emma!$E$2:$E$400,C8,Emma!$J$2:$J$400,$B$2))+(COUNTIFS(Charlotte!$E$2:$E$400,C8,Charlotte!$J$2:$J$400,$B$2))+(COUNTIFS(TBC!$E$2:$E$400,C8,TBC!$J$2:$J$400,$B$2))+(COUNTIFS('TBC2'!$E$2:$E$400,C8,'TBC2'!$J$2:$J$400,$B$2))

Thank you
 

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)
I have the formulas below to look at 3 diferent sheets...

They actually seem to be looking at 6 different sheets, so if you really only want them to look at 3 sheets, you could simplify the formulas greatly by deleting 3 of the sheet references.

Also, do you really need this to be a SUMPRODUCT ?
It seems as if you could perhaps just make this a sum of the individual COUNTIFS, which can be setup like this
=COUNTIFS[1]+COUNTIFS[2]+.....
 
Upvote 0
Thanks guys, I'll remove the sumproduct see if it makes any diference. I've tried to use a pivot but doesn't give me the same result.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

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