+ Reply to Thread
Results 1 to 5 of 5

Sum cell with conditions

  1. #1
    Registered User
    Join Date
    08-17-2017
    Location
    LA
    MS-Off Ver
    2016
    Posts
    3

    Sum cell with conditions

    Hi All,

    I tried a nested IF statement, but came to conclusion that its a bit more complicated than i thought. I have googled Sumifs, but i don't think that will work on what i am trying to achieve, unless i am missing something.

    I would like to get column AA to sum row 2 depending if the "Edits" columns are blank or not.

    For example, if a user inputs a number on C2 then AA2 will ignore B2 and sum C2 with the rest of row. Now, if a user enters numbers in multiple "Edits" column such as C2, E2 and S2, then AA2 will sum C2,E2, and S2 in place of B2, D2, and R2 with the rest of the row.

    My question maybe a bit confusing, so i have row 2 summed as an example of what i am trying to achieve.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-03-2018
    Location
    mpls
    MS-Off Ver
    360
    Posts
    29

    Re: Sum cell with conditions

    Try this, here are two months, just repeat the if and isblank for remaining months. SUM(IF(ISBLANK(C2),B2,C2),IF(ISBLANK(E2),D2,E2),...)

    I don't think this is a good candidate for sumif.

  3. #3
    Registered User
    Join Date
    08-17-2017
    Location
    LA
    MS-Off Ver
    2016
    Posts
    3

    Re: Sum cell with conditions

    Quote Originally Posted by dweingar View Post
    Try this, here are two months, just repeat the if and isblank for remaining months. SUM(IF(ISBLANK(C2),B2,C2),IF(ISBLANK(E2),D2,E2),...)

    I don't think this is a good candidate for sumif.
    Thank you dweingar! this wroked out great! i feel like an idiot now

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sum cell with conditions

    No one idiot, just don't know yet.

    Please try
    Z2
    =SUMIFS(B2:Y2,B$1:Y$1,">0")

    AA2
    =SUMIFS(B2:X2,C2:Y2,"")+SUMIFS(B2:Y2,B$1:Y$1,"*")

    Drag Z2:AA2 down

  5. #5
    Registered User
    Join Date
    08-17-2017
    Location
    LA
    MS-Off Ver
    2016
    Posts
    3

    Re: Sum cell with conditions

    Quote Originally Posted by Bo_Ry View Post
    No one idiot, just don't know yet.

    Please try
    Z2
    =SUMIFS(B2:Y2,B$1:Y$1,">0")

    AA2
    =SUMIFS(B2:X2,C2:Y2,"")+SUMIFS(B2:Y2,B$1:Y$1,"*")

    Drag Z2:AA2 down
    Thank you Bo_Ry !!! This works and is alot smoother than all those nested if's!! I appreciate all the help!

+ 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. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  2. Replies: 2
    Last Post: 11-28-2014, 03:43 PM
  3. Replies: 8
    Last Post: 06-29-2014, 10:01 AM
  4. changing colors in a specific cell when conditions are met in another cell.
    By pjames07109 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 11:44 PM
  5. [SOLVED] Confirmation Popup Window on Cell Change & Cell Delete. (3 conditions)
    By smk224 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2013, 02:51 PM
  6. Replies: 3
    Last Post: 07-25-2012, 07:54 AM
  7. [SOLVED] Using Conditions - cell colour and cell containign text
    By Hamish in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2006, 07:00 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