Super long countif divided by super long countif

tristandoo

New Member
Joined
Jul 28, 2013
Messages
14
Could someone please let me know if it is possible to shrink this countif statement? It becomes too much to handle since I have to copy it for multiple different rows. The A1 stuff is to know if the sheet is "active" (if there is a different way to do this I am all ears) it would need to stay the same. The "B10" is what changes for different rows/people.
=(COUNTIF(Jan.!B10,Jan.!B10)+COUNTIF(Feb.!B10,Feb.!B10)+COUNTIF(Mar.!B10,Mar.!B10)+COUNTIF(Apr.!B10,Apr.!B10)+COUNTIF(May!B10,May!B10)+COUNTIF(Jun.!B10,Jun.!B10)+COUNTIF(Jul.!B10,Jul.!B10)+COUNTIF(Aug.!B10,Aug.!B10)+COUNTIF(Sep.!B10,Sep.!B10)+COUNTIF(Oct.!B10,Oct.!B10)+COUNTIF(Nov.!B10,Nov.!B10)+COUNTIF(Dec.!B10,Dec.!B10)+COUNTIF('Yr. Plan Mtg'!B10,'Yr. Plan Mtg'!B10))
/ (COUNTIF(Jan.!A1,Jan.!A1)+COUNTIF(Feb.!A1,Feb.!A1)+COUNTIF(Mar.!A1,Mar.!A1)+COUNTIF(Apr.!A1,Apr.!A1)+COUNTIF(May!A1,May!A1)+COUNTIF(Jun.!A1,Jun.!A1)+COUNTIF(Jul.!A1,Jul.!A1)+COUNTIF(Aug.!A1,Aug.!A1)+COUNTIF(Sep.!A1,Sep.!A1)+COUNTIF(Oct.!A1,Oct.!A1)+COUNTIF(Nov.!A1,Nov.!A1)+COUNTIF(Dec.!A1,Dec.!A1)+COUNTIF('Yr. Plan Mtg'!A1,'Yr. Plan Mtg'!A1))
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
WOW! that really cleared things up there A LOT! Thank you so much! I will be using this formula more often now. Thanks a ton!
 
Upvote 0
Sorry my brain must not be thinking things through as much at 4AM. Yes that would work, and I really don't know why I didn't put 2 and 2 together to get that. Is there a way to be able to drag down and it copy down to other rows? Every time I do that it changes the A value and the B value. I need it to change only the B value. I tried setting up the pattern but it didn't work and if I just do one it switches between A1 and A2.
 
Upvote 0
well I just recently watched something on that and didn't really think to apply it here. Plus this would be the first time I have actually used $ to lock a value. My next question is off topic but do you know a way to post the date(7/29/13) of the last monday of every month in a cell by formula or something else?
 
Upvote 0
Let me make that a bit clearer:
I would like each work book to have the date of the last monday of its month posted in a cell. So Jan.! would have the last monday in Jan. posted in a call and Feb! would have the last monday in Feb posted in a cell etc. (some months will be different years)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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