+ Reply to Thread
Results 1 to 4 of 4

COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells

    I need 2 separate formulas. Basically once I have either the sumif or countif then I can change it accordingly. Lets say for this example I need the sumif.

    For this example we will use columns A1:A10, B1:B10, C1:C10, & D1
    A&B = the data
    C = random number to input
    D = formula - the sumif

    A = an employee ID number say “2”
    B = an item say “apple”
    C1:C10 = $1,000 in each cell
    If I enter the number “2” in A1-A5 (in 5 cells) & “apple” only in B1, B2 & B3 (3 cells)
    Then D1 should = $3,000 to sum only when both columns have the correct sumif data.

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

    Re: COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells

    Take a look at the help on using sumifS(), or see the guide as you enter the data.

    The syntax is...
    =sumif(sum-range,criteria-range1,criteria1,criteria-range2,criteria2)
    so maybe something like...
    =sumifs($C$1:$C$10,$a$1:$a$19,2,$B$1:$B$10,"apple")
    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 Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells

    thank you, works great

  4. #4
    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,933

    Re: COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

+ 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. Formula needed for countif or countifs (may also need a sumif)
    By Petefav in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 02:18 AM
  2. [SOLVED] COUNTIF or SUMIF Formula based on other column value needed urgently please?
    By jamieswift1977 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2013, 05:54 AM
  3. [SOLVED] SUMIF/VLOOKUP/COUNTIF type formula needed
    By liam_bettinson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2012, 03:54 AM
  4. [SOLVED] Excel 2007 : 'Countif' with 'indirect' formulas needed
    By Matt05D in forum Excel General
    Replies: 3
    Last Post: 07-16-2012, 02:53 PM
  5. Lookup to a different sheet decided by a cell entry
    By wellerjam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2005, 06:53 AM

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