+ Reply to Thread
Results 1 to 9 of 9

Excel 2010 COUNTIFS Substitute

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2002
    Posts
    7

    Excel 2010 COUNTIFS Substitute

    I have this function/formula in an Excel 2010 spreadsheet that I use:

    =COUNTIFS('Prescreen Data'!$E:$E,Predictor!B$3, 'Prescreen Data'!$N:$N,Predictor!$A4)

    I need to be able for this spreadsheet to be used by computers running Excel 2003 or later. COUNTIFS does not work in the older versions and I have tried various combinatins of COUNTIF, COUNT, and IF statements and cannot get them to work correctly. Any ideas?

    Thanks for any help anyone could offer!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Excel 2010 COUNTIFS Substitute

    countifs() works on 2007, but to suggest an alternative for 2003, I will need to see some sample data
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Excel 2010 COUNTIFS Substitute

    hi Snipeston, try:
    =SUMPRODUCT(('Prescreen Data'!$E:$E=Predictor!B$3)*('Prescreen Data'!$N:$N=Predictor!$A4))

    or don't range up the whole column. maybe:
    =SUMPRODUCT(('Prescreen Data'!$E$1000:$E$1000=Predictor!B$3)*('Prescreen Data'!$N$1000:$N$1000=Predictor!$A4))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    03-04-2010
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Excel 2010 COUNTIFS Substitute

    Here is an example. Deleted some of the unnecessary columns and some of the previous cell references have changed.

    I need the Predictor sheet to do the following:

    1. If the Region Column on the Prescreen Data = the region on the Predictor sheet in B3 (in this case Atlanta)
    AND
    2. If the Difference Column on the Prescreen Data = the amount in the Predictor sheet in A5
    THEN
    3. Count how many matches of REGION and AMOUNTs

  5. #5
    Registered User
    Join Date
    03-04-2010
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Excel 2010 COUNTIFS Substitute

    Sorry forgot to add the file...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-04-2010
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Excel 2010 COUNTIFS Substitute

    Tried your suggestion, but got a #NUM error

    Quote Originally Posted by benishiryo View Post
    hi Snipeston, try:
    =SUMPRODUCT(('Prescreen Data'!$E:$E=Predictor!B$3)*('Prescreen Data'!$N:$N=Predictor!$A4))

    or don't range up the whole column. maybe:
    =SUMPRODUCT(('Prescreen Data'!$E$1000:$E$1000=Predictor!B$3)*('Prescreen Data'!$N$1000:$N$1000=Predictor!$A4))

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Excel 2010 COUNTIFS Substitute

    my 2nd formula should be:
    =SUMPRODUCT(('Prescreen Data'!$E$2:$E$1000=Predictor!B$3)*('Prescreen Data'!$N$2:$N$1000=Predictor!$A5))

    and you changed A4 to A5.

  8. #8
    Registered User
    Join Date
    03-04-2010
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Excel 2010 COUNTIFS Substitute

    Ok, this seems to be working with one issue...

    When I clear the data out of the Prescreen Data sheet, the $E$2 and the $N$2 get replaced by #REF. This does not go away when the new set of data is entered into the Prescreen Data sheet, and have to redo my formula for it to work???

    Quote Originally Posted by benishiryo View Post
    my 2nd formula should be:
    =SUMPRODUCT(('Prescreen Data'!$E$2:$E$1000=Predictor!B$3)*('Prescreen Data'!$N$2:$N$1000=Predictor!$A5))

    and you changed A4 to A5.

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel 2010 COUNTIFS Substitute

    don't delete the cells-just clear them using the delete key
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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