+ Reply to Thread
Results 1 to 4 of 4

how to Use COUNTIFS funtion with the criteria_range1 to be a column.

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Exclamation how to Use COUNTIFS funtion with the criteria_range1 to be a column.

    Hi all,


    I cant think of anyway to do this. So plz give a hand!

    This is usual way to use COUNTIFS

    =COUNTIFS(B2:B5,"=Yes",C2:C5,"=Yes")

    But what if I want my criteria_range1 to be Column B from another Spreadsheet in the same workbook.



    Thanks a lot
    Sky

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

    Re: how to Use COUNTIFS funtion with the criteria_range1 to be a column.

    hi freeSky. actually you dont have to put "=". to refer to another worksheet, make sure the range is the same if you need the same row to have "yes". like from 2:5. so if it's in Sheet2, it'll be like:
    =COUNTIFS(A2:A5,"Yes",Sheet2!B2:B5,"Yes")

    if your aim is to add the "Yes" in Column A plus the "Yes" in Sheet2 Column B, use COUNTIF & add
    =COUNTIF(A2:A5,"Yes")+COUNTIF(Sheet2!B2:B5,"Yes")

    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

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: how to Use COUNTIFS funtion with the criteria_range1 to be a column.

    Hey, Thanks for the quick reply!

    Actually I want to count "YES" in the whole column B in another sheet. not just B2-B5, iTS the whole column. Can this be achieved?


    Quote Originally Posted by benishiryo View Post
    hi freeSky. actually you dont have to put "=". to refer to another worksheet, make sure the range is the same if you need the same row to have "yes". like from 2:5. so if it's in Sheet2, it'll be like:
    =COUNTIFS(A2:A5,"Yes",Sheet2!B2:B5,"Yes")

    if your aim is to add the "Yes" in Column A plus the "Yes" in Sheet2 Column B, use COUNTIF & add
    =COUNTIF(A2:A5,"Yes")+COUNTIF(Sheet2!B2:B5,"Yes")

  4. #4
    Registered User
    Join Date
    09-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: how to Use COUNTIFS funtion with the criteria_range1 to be a column.

    And one more prob,

    I can use Sheet1 in a tryout excel book. But I cannt apply it to my working book, So what should i enter in if my sheet1's name is "Partner List"?
    Thanks,
    Sky


    Quote Originally Posted by benishiryo View Post
    hi freeSky. actually you dont have to put "=". to refer to another worksheet, make sure the range is the same if you need the same row to have "yes". like from 2:5. so if it's in Sheet2, it'll be like:
    =COUNTIFS(A2:A5,"Yes",Sheet2!B2:B5,"Yes")

    if your aim is to add the "Yes" in Column A plus the "Yes" in Sheet2 Column B, use COUNTIF & add
    =COUNTIF(A2:A5,"Yes")+COUNTIF(Sheet2!B2:B5,"Yes")

+ 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