+ Reply to Thread
Results 1 to 4 of 4

How can I write this sumproduct formula using the countifs function?

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    How can I write this sumproduct formula using the countifs function?

    Hello to everyone,

    I am currently using the following formula:

    =IF(SUMPRODUCT(--(BIF3:BIT3=CHAR(252))),CHAR(251),CHAR(252))

    which works fine, however, I've been trying to get the same results using the countifs function but I can't seem to be getting it right.

    I've tried this formula

    =IF(COUNTIFS(BIF3:BIT3,"=CHAR(252)"),CHAR(251),CHAR(252))

    this one

    =IF(COUNTIFS(BIF3:BIT3,"CHAR(252)"),CHAR(251),CHAR(252))

    and this one

    =IF(COUNTIFS(BIF3:BIT3,"CHAR(252)")>=1,CHAR(251),CHAR(252))

    but I keep getting wrong results.


    What's the mistake in the above countifs formulas?


    Thank you
    Sans
    Last edited by sans; 01-20-2012 at 01:20 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How can I write this sumproduct formula using the countifs function?

    How about?

    =IF(COUNTIFS(BIF3:BIT3,CHAR(252)),CHAR(251),CHAR(252))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: How can I write this sumproduct formula using the countifs function?

    Try:

    =IF(COUNTIFS(BIF3:BIT3,CHAR(252)),CHAR(251),CHAR(252))

  4. #4
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: How can I write this sumproduct formula using the countifs function?

    I can't believe I couldn't figure that out. Thank you both very much for your replies. Sans

+ 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