+ Reply to Thread
Results 1 to 8 of 8

problem in countifs formula

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    problem in countifs formula

    Capture.JPG
    hi all,
    i am trying to count the total no. of 'tea' from c2:f21 in this sheet for all 'monday'.
    for this i am using =COUNTIFS($B$2:$B$21,"=Monday",$C$2:$F$21,"=tea") , but this is showing error, while its working for
    =COUNTIFS($B$2:$B$21,"=Monday",$C$2:$C$21,"=tea") because here i am calculating the single column (c) only.
    pls help to solve this problem.
    is there any other formula to calculate from c2:f21?
    thanks
    Last edited by hello911helpme; 07-16-2013 at 04:56 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: problem in countifs formula

    Hi,

    =SUMPRODUCT((B2:B11="Monday")*(C2:F11="tea"))

    seems to work.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: problem in countifs formula

    Hi ,

    Try this formula

    =SUMPRODUCT(($B$2:$B$21="=Monday")*($C$2:$F$21="=tea"))

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem in countifs formula

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    =SUMPRODUCT((B2:B11="Monday")*(C2:F11="tea"))

    seems to work.
    Thanks Richard Buttrey....it worked.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: problem in countifs formula

    Quote Originally Posted by hello911helpme View Post
    Thanks Richard Buttrey....it worked.
    Indeed it did! I presume you spotted the typo - row 11 rather than row 21?

  6. #6
    Registered User
    Join Date
    11-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem in countifs formula

    Quote Originally Posted by Richard Buttrey View Post
    Indeed it did! I presume you spotted the typo - row 11 rather than row 21?
    it's ok.....
    can i use this formula for calculating from sheet1 to sheet2 ? i mean data from sheet1 and result in sheet2. if possible....how?

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: problem in countifs formula

    Hi,

    Yes just preface the ranges with the relevant sheet ref. i.e.

    =SUMPRODUCT((Sheet1!B2:B21="Monday")*(Sheet1!C2:F21="tea"))

  8. #8
    Registered User
    Join Date
    11-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem in countifs formula

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Yes just preface the ranges with the relevant sheet ref. i.e.

    =SUMPRODUCT((Sheet1!B2:B21="Monday")*(Sheet1!C2:F21="tea"))
    thanks Richard....

+ 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. Countifs formula problem
    By amberj32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 11:22 AM
  2. COUNTIFS + AND formula problem
    By Kagesen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2012, 03:30 AM
  3. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  4. Inserting countifs formula using vba.....having problem with date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-26-2011, 05:54 PM
  5. [SOLVED] Excel 2007 : Problem IF and COUNTIFS formula
    By tiger01 in forum Excel General
    Replies: 2
    Last Post: 02-23-2011, 05:33 AM

Tags for this Thread

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