+ Reply to Thread
Results 1 to 8 of 8

Alternative to writing COUNTIFS 40+ times

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Alternative to writing COUNTIFS 40+ times

    Alternative to writing COUNTIFS 40+ times

    My formula is as below, please note that only the last criteria has to be changed that is Dash!$N$1… it will go until Column BF


    =COUNTIFS(' Dump'!$D:$D,Info!$H$2,' Dump'!$G:$G,' Dash'!$H$1,' Dump'!$E:$E,' Dash'!$I$1,' Dump'!$F:$F,' Dash'!$L$1,' Dump'!$I:$I,' Dash'!$J$1,' Dump'!$B:$B,' Dash'!$K$1,' Dump'!$A:$A,' Dash'!$M$1,' Dump'!$J:$J,' Dash'!$N$1)

    Thanks for help!
    If I've been of help, plz add reputation.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Alternative to writing COUNTIFS 40+ times

    Hi.

    =SUMPRODUCT(COUNTIFS(' Dump'!$D:$D,Info!$H$2,' Dump'!$G:$G,' Dash'!$H$1,' Dump'!$E:$E,' Dash'!$I$1,' Dump'!$F:$F,' Dash'!$L$1,' Dump'!$I:$I,' Dash'!$J$1,' Dump'!$B:$B,' Dash'!$K$1,' Dump'!$A:$A,' Dash'!$M$1,' Dump'!$J:$J,' Dash'!$N$1:$BF$1))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Alternative to writing COUNTIFS 40+ times

    Quote Originally Posted by XOR LX View Post
    Hi.

    =SUMPRODUCT(COUNTIFS(' Dump'!$D:$D,Info!$H$2,' Dump'!$G:$G,' Dash'!$H$1,' Dump'!$E:$E,' Dash'!$I$1,' Dump'!$F:$F,' Dash'!$L$1,' Dump'!$I:$I,' Dash'!$J$1,' Dump'!$B:$B,' Dash'!$K$1,' Dump'!$A:$A,' Dash'!$M$1,' Dump'!$J:$J,' Dash'!$N$1:$BF$1))

    Regards
    This worked perfectly thanks....

    For the same query as above, just for my learning, if i had a few random columns like N1, Z1, AA1, BF1 or if i had a few random rows like AE5, AE15, AE17 how to edit this formula.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Alternative to writing COUNTIFS 40+ times

    You mean that all those non-contiguous cells were to be considered as the criteria for Dump'!$J:$J?

    Regards

  5. #5
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Alternative to writing COUNTIFS 40+ times

    Quote Originally Posted by XOR LX View Post
    You mean that all those non-contiguous cells were to be considered as the criteria for Dump'!$J:$J?

    Regards
    yes, that's correct....

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Alternative to writing COUNTIFS 40+ times

    If the number of those non-contiguous cells is not too great, you can use:

    =SUMPRODUCT(COUNTIFS(' Dump'!$D:$D,Info!$H$2,' Dump'!$G:$G,' Dash'!$H$1,' Dump'!$E:$E,' Dash'!$I$1,' Dump'!$F:$F,' Dash'!$L$1,' Dump'!$I:$I,' Dash'!$J$1,' Dump'!$B:$B,' Dash'!$K$1,' Dump'!$A:$A,' Dash'!$M$1,' Dump'!$J:$J,CHOOSE({1,2,3,4,5,6,7},N1,Z1,AA1,BF1,AE5,AE15,AE17)))

    If you need a set-up which will work for a much larger number of criteria for Dump'!$J:$J in non-contiguous cells, let me know and I will see what I can do.

    Regards

  7. #7
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Alternative to writing COUNTIFS 40+ times

    Quote Originally Posted by XOR LX View Post
    If the number of those non-contiguous cells is not too great, you can use:

    =SUMPRODUCT(COUNTIFS(' Dump'!$D:$D,Info!$H$2,' Dump'!$G:$G,' Dash'!$H$1,' Dump'!$E:$E,' Dash'!$I$1,' Dump'!$F:$F,' Dash'!$L$1,' Dump'!$I:$I,' Dash'!$J$1,' Dump'!$B:$B,' Dash'!$K$1,' Dump'!$A:$A,' Dash'!$M$1,' Dump'!$J:$J,CHOOSE({1,2,3,4,5,6,7},N1,Z1,AA1,BF1,AE5,AE15,AE17)))

    If you need a set-up which will work for a much larger number of criteria for Dump'!$J:$J in non-contiguous cells, let me know and I will see what I can do.

    Regards
    even this worked perfectly, thanks for your prompt responses.

    I have a list of ~8-10 such non-contiguous cells, using the above formula is no mess at all for me.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Alternative to writing COUNTIFS 40+ times

    Great! Glad to help.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Array functions & COUNTIFS (or alternative f-n)
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2015, 03:51 PM
  2. [SOLVED] Alternative to COUNTIFS with multiple criteria
    By Ricardo Mass in forum Excel General
    Replies: 2
    Last Post: 11-06-2014, 10:29 AM
  3. Help! Alternative to Countifs in 2003?
    By Whittle82 in forum Excel General
    Replies: 6
    Last Post: 07-09-2012, 08:52 AM
  4. Alternative Formula of Countifs
    By vkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2012, 03:49 AM
  5. [SOLVED] Countifs alternative for Excel 2003
    By Jigz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2012, 01:12 PM
  6. countifs alternative
    By adam2308 in forum Excel General
    Replies: 1
    Last Post: 06-23-2011, 05:20 AM
  7. COUNTIFS alternative
    By markrennolds in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2010, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1