+ Reply to Thread
Results 1 to 8 of 8

COUNTIFS 2003 - Impossible to convert

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    COUNTIFS 2003 - Impossible to convert

    I have been trying to convert the following countifs formula to 2003 and have tried all possibilities listed on this website from what I can, Specifically using sumproduct instead.

    Can any one help, I am at a complete loss!!!!!

    The formual is written on an overview sheet, pulling out information from a shreadsheet detailing lists of company credits.

    Essentially listing how many credits an account has had, between specific dates and for a specific reason.

    = COUNTIFS(Credits!$B$2:$B$257,">="&$C$4,Credits!$B$2:$B$257,"<="&$E$4,Credits!$D$2:$D$257,B73,Credits!$H$2:$H$257,$E$26)

    ,">="&$C$4 - refers to a date criteria
    ,"<="&$E$4 - refers to a date criteria

    B73 - refers to along account name

    $E$26 - refers to complaint type

    Please anyone let me know your thoughts?

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: COUNTIFS 2003 - Impossible to convert

    =SUMPRODUCT(--(Credits!$B$2:$B$257>=$C$4),--(Credits!$B$2:$B$257<=$E$4),--(Credits!$D$2:$D$257=B73),--(Credits!$H$2:$H$257=$E$26))
    Last edited by Whizbang; 10-27-2011 at 11:09 AM.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: COUNTIFS 2003 - Impossible to convert

    Maybe:

    =SUMPRODUCT(--(Credits!$B$2:$B$257>=$C$4),--(Credits!$B$2:$B$257<=$E$4),--(Credits!$D$2:$D$257=B73),--(Credits!$H$2:$H$257=$E$26))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Registered User
    Join Date
    10-27-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: COUNTIFS 2003 - Impossible to convert

    Thanks Domski and Whizbang - unfortunately these don't work, I agree I thought it should.

    B73 refers to a 20 letter long account name that countifs was fine with searching on, but would sumproduct have a problem with it?

    Any other ideas guys?

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: COUNTIFS 2003 - Impossible to convert

    Did you try both of them? They were slightly different until Whizbang removed the &'s from his. I don't think the length of the account name is any problem.

    Dom

  6. #6
    Registered User
    Join Date
    10-27-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: COUNTIFS 2003 - Impossible to convert

    Yes tried both, is there another way around this conversion?

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: COUNTIFS 2003 - Impossible to convert

    I don't think it should matter but you could try:

    =SUMPRODUCT((Credits!$B$2:$B$257>=$C$4)*(Credits!$B$2:$B$257<=$E$4)*(Credits!$D$2:$D$257=B73)*(Credits!$H$2:$H$257=$E$26))

    Dom

  8. #8
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: COUNTIFS 2003 - Impossible to convert

    Here is an example workbook using your formula.


    *** Edit***

    Oops. Forgot to put the workbook in 2003 format.
    Attached Files Attached Files
    Last edited by Whizbang; 10-27-2011 at 11:30 AM.

+ 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