+ Reply to Thread
Results 1 to 3 of 3

Converting COUNTIFS to Excel 2003

  1. #1
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Converting COUNTIFS to Excel 2003

    Hi,

    I have the following excel formula:
    =LOWER(IF(($H2&":"&$M2&":"&$N2&":"&TEXT(COUNTIFS($H2:$H$2,$H2,$M2:$M$2,$M2,$N2:$N$2,$N2),"0000"))=":::0000","",$H2&":"&$M2&":"&$N2&":"&TEXT(COUNTIFS($H2:$H$2,$H2,$M2:$M$2,$M2,$N2:$N$2,$N2),"0000")))

    I need to convert the COUNTIFS into something that is Excel 2003 friendly. Any help would be appreciated.

    Thanks,
    John
    Last edited by John Bates; 07-06-2009 at 11:24 AM. Reason: SOLVED

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Converting COUNTIFS to Excel 2003

    To replicate COUNTIFS/SUMIFS pre2007 you're generally looking at SUMPRODUCT which is not as efficient unfortunately, ie instead of:

    TEXT(COUNTIFS($H2:$H$2,$H2,$M2:$M$2,$M2,$N2:$N$2,$N2),"0000")

    you would use

    TEXT(SUMPRODUCT(--($H$2:$H2=$H2),--($M$2:$M2=$M2),--($N$2:$N2=$N2)),"0000")

    (note re: above I changed your absolute references - don't really make a lot of sense in the example if formula to be copied down - presumably a typo ?)

    you would be IMO at least be best served concatenating H,M & N into one string so you can just use COUNTIF, ie

    Z2: $H2&$M2&$N2
    copied down

    Then instead of SUMPRODUCT/COUNTIFS you can use

    TEXT(COUNTIF($Z$2:$Z2,$Z2),"0000")

    which would be on a par with COUNTIFS performance wise.

  3. #3
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: Converting COUNTIFS to Excel 2003

    Perfect, thanks for the help!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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