+ Reply to Thread
Results 1 to 5 of 5

Using SUMIF with an OR or ELSE

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Using SUMIF with an OR or ELSE

    In the attached WB, I need to add a formula into DATA U2. This formula will sum differently conditioned upon E2.

    For example, if E2= Long use the following formula...

    Please Login or Register  to view this content.
    ELSE use...

    Please Login or Register  to view this content.
    I've tried something like the below, but neither work...

    Please Login or Register  to view this content.
    nor

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by cableghost; 11-10-2021 at 09:56 AM.

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

    Re: Using SUMIF with an OR or ELSE

    Well, based on exactly what you said, then you should be able to use this in U2:

    =IF(E2="Long",((O2*P2)+(Q2*R2))-((F2*G2)+(H2*I2)+(J2*K2)),((O2*P2)+(Q2*R2))-((F2*G2)+(H2*I2)+(J2*K2)))

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Using SUMIF with an OR or ELSE

    Not sure if I'm missing something, but your 1st two formula look to be the same, based on your 3rd formula, maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Using SUMIF with an OR or ELSE

    Thank you both. Yeah, I had the wrong ELSE formula; since changed it. It's simply a reversal of the first.

    The formula posted works, thank you. That's similar to what I had tried.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Using SUMIF with an OR or ELSE

    Glad to help & thanks for the feedback.

+ 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] Sumif - Trying to figure out how to tell a sumif to look for multiple naming conventions
    By Typirious in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2017, 02:11 AM
  2. [SOLVED] SUMIF: don't understand that purpose of the OFFSET inside SUMIF
    By Vitalite in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-30-2017, 03:13 AM
  3. Replies: 2
    Last Post: 06-21-2017, 06:32 PM
  4. SumIf formula or Sumif with pivottable combined question
    By mcgleeuw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2015, 01:05 PM
  5. Replies: 4
    Last Post: 12-04-2014, 02:06 PM
  6. Subtracting from the SUMIF with the difference from the SUMIF range
    By iamblue91 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2014, 09:01 PM
  7. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM

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