+ Reply to Thread
Results 1 to 4 of 4

Sum a range if >0 if false then sum different range or part of range

  1. #1
    Registered User
    Join Date
    05-30-2020
    Location
    chicago
    MS-Off Ver
    2020
    Posts
    2

    Sum a range if >0 if false then sum different range or part of range

    Hi Everyone,
    First time user, long time viewer. OK, I have a cell range that each cell contains a projection of sales on a given day, one cell = one day. The actual sales are logged daily in the range below the projection range, the cell that contains the total for actuals I would like to sum the actuals revenues and then I would like to add the projected sales when the actual = 0 or blank.

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Sum a range if >0 if false then sum different range or part of range

    If projections were in E7:Z7, actuals in E8:Z8 but some cells on the right 0 or empty (question: could actual sales be zero?), you could use something like

    =SUM(E8:Z8,SUMIFS(E7:Z7,E8:Z8,{"=";0}))

    To include projections only when actuals are blank,

    =SUM(E8:Z8,SUMIFS(E7:Z7,E8:Z8,"="))

  3. #3
    Registered User
    Join Date
    05-30-2020
    Location
    chicago
    MS-Off Ver
    2020
    Posts
    2

    Re: Sum a range if >0 if false then sum different range or part of range

    Thank you first option worked perfectly!!!
    Nunz

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,984

    Re: Sum a range if >0 if false then sum different range or part of range

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] After Range.Copy Paste and Application.CutCopyMode = False, Range still remains selected
    By badcluster in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2020, 06:18 AM
  2. [SOLVED] VLOOKUP "PART" of cell, Match with a Range and Return Corresponding Value from a Range
    By learnall18 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2017, 09:23 AM
  3. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  4. [SOLVED] Adding a row to the end of a range, where the new row becomes part of the range
    By phook01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2013, 03:40 PM
  5. [SOLVED] Find Text In Range With Part Of Text & Return True or False
    By tis28 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2013, 09:35 PM
  6. Macro to check range, if false check another range until true, then copy
    By jayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2009, 04:19 PM
  7. [SOLVED] Painting Range - extend the range on the top part
    By Shrikant in forum Excel General
    Replies: 4
    Last Post: 09-01-2005, 07:05 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