+ Reply to Thread
Results 1 to 5 of 5

If cell is blank take number shown in different cell.

  1. #1
    Registered User
    Join Date
    07-24-2007
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    80

    If cell is blank take number shown in different cell.

    The enclosed file shows data which is added to on a daily basis, so could be any length. What I want is a formula which looks at column L. If a cell is blank then it needs to look at the value in column G (ie L15 = 161. It then adds up all the blank cell totals and puts the result in L52 (still to be resolved). If a cell in column L that was blank is subsequently filled in or vice versa then the total in L52 wants to automatically update. I would also like the same formula to apply for the blanks in column O, taking the value in column H. Any help is appreciated. Kevin.
    Attached Files Attached Files
    Last edited by rushdenx1; 12-15-2011 at 08:36 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: If cell is blank take number shown in different cell.

    Try this for L52

    =SUM(L3:L50)+SUMIF(L3:L50,"",G3:G50)
    Audere est facere

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: If cell is blank take number shown in different cell.

    Hi,

    Do these work for you?

    =SUM(L3:L50)+SUMIF(L3:L50,"",G3:G50)

    and

    =SUM(O3:O50)+SUMIF(O3:O50,"",H3:H50)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    07-24-2007
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    80

    Re: If cell is blank take number shown in different cell.

    Thanks for your help. However the result is not coming out right. See the enclosed file again please. The figure is L52 should be 1658. I have put the blank cell values in column U to demonstrate. The figures in cells B55, C55 and L52 should add up to the figure in A55. The figure is L52 should also reduce as the blanks are filled in until it eventually shows '0'. Not sure if having zeros in columns is causing confusion as 0 is different to a blank cell. Any help appreciated. Kevin.
    Attached Files Attached Files

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: If cell is blank take number shown in different cell.

    Your original post suggested you wanted to add in column G values adjacent to blanks in column L

    If a cell is blank then it needs to look at the value in column G (ie L15 = 161. It then adds up all the blank cell totals and puts the result in L52
    This will total the cells in column G adjacent to blanks in column L.

    =SUMIF(L3:L50,"",G3:G50)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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