+ Reply to Thread
Results 1 to 9 of 9

Sumif multiple criteria

  1. #1
    Registered User
    Join Date
    03-11-2022
    Location
    NJ
    MS-Off Ver
    Excel Office 16
    Posts
    3

    Post Sumif multiple criteria

    Trying to figure out a formula that references a text list. If someone chooses one text (Work Hours), I want it to sum, but if they choose another text (Total Hours), I want it to do a calculation. I basically want to combine these two formulas. I was thinking SUMIF(OR, but can't seen to get it right.


    SUMIF (this says that) OR SUMIF (that says this)*0.8
    Last edited by jlowndes; 03-11-2022 at 03:15 PM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,780

    Re: Sumif multiple criteria

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: Sumif multiple criteria

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    03-11-2022
    Location
    NJ
    MS-Off Ver
    Excel Office 16
    Posts
    3

    Re: Sumif multiple criteria

    says I'm not allowed to post images until ive posted a few times.. stay tuned

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: Sumif multiple criteria

    Not so. You can not post links... but you can post an xlsx. Re-read the instructions.

  6. #6
    Registered User
    Join Date
    03-11-2022
    Location
    NJ
    MS-Off Ver
    Excel Office 16
    Posts
    3

    Re: Sumif multiple criteria

    I'm trying to do a sumif formula in column d.

    If column B says "total hours" I want it to take column c and subtract column e, but if column b says "work hours" I want it to stay the same number as column c (or =SUMIF(B8,"work hours",C8)

    How do I combine these 2 forumlas in one cell =SUMIF(B7,"*Total Hours*",C7)-E7 AND =SUMIF(B8,"work hours",C8)
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Sumif multiple criteria

    =C7-IF(LEFT(B7,5)="Total",E7,0)

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,822

    Re: Sumif multiple criteria

    How about this?

    =SUMIF(Table1[Works Hours or Total Hours],"*Total Hours*",Table1[Hours])-SUMIF(Table1[Works Hours or Total Hours],"*Total Hours*",Table1[Leave
    Hours])+SUMIF(Table1[Works Hours or Total Hours],"*Work Hours*",Table1[Hours])

  9. #9
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Sumif multiple criteria

    Hi to all!

    Another ones in D7:
    =C7-E7*COUNTIF(B7,"Tot*")
    =C7-E7*(LEFT(B7,3)="Tot")


    Blessings!

+ 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. [SOLVED] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  2. 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
  3. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  4. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM
  5. SUMIF with multiple criteria, one criteria a specific string
    By Weasel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2008, 05:32 PM
  6. [SOLVED] SUMIF with multiple criteria
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2005, 05:05 PM
  7. [SOLVED] SUMIF with multiple criteria
    By stacyjhaskins in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  8. [SOLVED] SUMIF with multiple criteria for multiple columns to sum a single
    By SavageMind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 11:05 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