+ Reply to Thread
Results 1 to 3 of 3

Sum 2 cells, but if 3rd cell is populate sum that instead

  1. #1
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Sum 2 cells, but if 3rd cell is populate sum that instead

    Sorry, not sure how to word the title :-)

    Example:
    A1 5
    B1 1

    D1 6 sum total

    But: can I do this if this happens

    A1 5
    B1 1
    C1 4

    D1 9

    So if c1 gets populated, the sum total will use a&c , but if c is blank it uses a&b to sum.

    Hopefully that's pretty clear.

    -NW-

  2. #2
    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
    44,099

    Re: Sum 2 cells, but if 3rd cell is populate sum that instead

    Yep. Fine. Try this:

    =IF(C1="",A1+B1,A1+C1)
    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

  3. #3
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: Sum 2 cells, but if 3rd cell is populate sum that instead

    Thanks for quick reply. I'll give this a go when I get home. Appreciate the help Glenn

+ 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. Populate cells from value in other cell
    By Kefman81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2019, 04:25 PM
  2. Replies: 6
    Last Post: 05-16-2014, 03:03 PM
  3. Populate cell with another cells data.. Please Help!
    By trollema in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2013, 09:18 PM
  4. how to populate certain number of cells from the value available in another cell.
    By ronniephilip in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2013, 12:51 AM
  5. [SOLVED] What can I use to populate a cell using information in other cells?
    By rcabunac in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2012, 09:21 AM
  6. Replies: 14
    Last Post: 11-08-2011, 08:51 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