+ Reply to Thread
Results 1 to 5 of 5

Need SUMIF formula to count multiple criteria, including either/or in different worksheet

  1. #1
    Registered User
    Join Date
    12-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need SUMIF formula to count multiple criteria, including either/or in different worksheet

    I am in worksheet 1, trying to figure out a formula to count the number of cells/rows in worksheet 2, that contain the combination of letters "ARC" in column C plus either a "W" or a "R" in column D.

    The result is in worksheet 1 and the data is worksheet 2. I need a count of how many people from ARC registered on either W or R.

    ARC (in column C) + "W" or "R" in column D.

    I looked at other posts and got thoroughly confused because I didn't see a formula for multiple criteria in a different worksheet.

    Thank you

  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,938

    Re: Need SUMIF formula to count multiple criteria, including either/or in different worksh

    Hi and welcome to the forum

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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 Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Need SUMIF formula to count multiple criteria, including either/or in different worksh

    Try using COUNTIFS like this

    =SUM(COUNTIFS(sheet2!C:C,"ARC",Sheet2!D:D,{"W","R"}))

    You need SUM because the COUNTIFS function returns an "array" of two values, one the count for "W", the other for "R"...and then SUM sums the two to get your result
    Audere est facere

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need SUMIF formula to count multiple criteria, including either/or in different worksh

    Also
    =SUMPRODUCT(--(Sheet2!$C$1:$C$21="ARC"),--(Sheet2!D1:D21="W")+(--(Sheet2!D1:D21="R")))
    But daddy's solution is the way to go.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  5. #5
    Registered User
    Join Date
    12-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need SUMIF formula to count multiple criteria, including either/or in different worksh

    Thank you both!! This worked and now my headache can subside over this challenge.

+ 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. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  2. [SOLVED] Count based on 3 criteria including date range
    By timarcarze in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-13-2013, 01:43 AM
  3. Count / Sum if with Multiple Criteria Including "OR"
    By Sophie.Durrant in forum Excel General
    Replies: 8
    Last Post: 02-23-2012, 11:05 AM
  4. sumif with multiple criteria (including daterange)
    By TPS Tom in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-28-2011, 07:43 AM
  5. SUMIF & Count IF - Multiple Criteria
    By sp_prabhakaran in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2008, 11:37 PM

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