+ Reply to Thread
Results 1 to 11 of 11

Counting if cell = blank

  1. #1
    Forum Contributor
    Join Date
    03-23-2011
    Location
    Ormesby
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    130

    Counting if cell = blank

    Hi,

    I have a spreadsheet that has many rows and columns and the columns count to give the total, example.

    Row J5 shows =Sum(J3:T3)+G3
    Columns J-T cells have quantities entered (ie J3 = 5, H3 = 20, I3 = 15 etc)
    W3 would calculate the quantities and = 40
    Cell G3 is an estimated figure (lets say 45) which updates after 3pm each day
    The total so far = J-T +G3 = 85
    H3 is updated at 3pm and it may change to 52 from 45 (a plus up of 7)
    The total would then be 92
    Cell I3 is the Adj cell which = H3 minus G3 showing 7

    I cannot get cell W3 to calculate (J3-T3+G3) and add I3 as if H3 is blank (not updated till 3pm), W3 would show a different figure.

    How do I have this as a calculation if cell H3 is blank

    many thanks

    Pugg

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

    Re: Counting if cell = blank

    Please provide a sample workbook.
    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.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Counting if cell = blank

    ..with your expected results
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Contributor
    Join Date
    03-23-2011
    Location
    Ormesby
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    130

    Re: Counting if cell = blank

    It does not seem to load when I click on the attached section.

    Any other way of getting it across

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Counting if cell = blank

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    03-23-2011
    Location
    Ormesby
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    130

    Re: Counting if cell = blank

    I have tried that but the file does not upload

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Counting if cell = blank

    How big is the file? We only need a small sample workbook, with just enough info to show what you are working with, and what you want

  8. #8
    Forum Contributor
    Join Date
    03-23-2011
    Location
    Ormesby
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    130

    Re: Counting if cell = blank

    SUN.xlsb

    Apologies for the delay as had trouble attaching the file.

    As you can see Cell W shows =SUM(J2:T2)+G2

    If I add a figure to Cell H2, it will show I2 as increased or decreased.

    What I want is to add I2 to Cell W2 but if cell H2 is blank it always deducts I2.
    If H2 is blank, I want cell W2 not to add I2.
    Is this possible

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Counting if cell = blank

    Perhaps this?
    =SUM(J2:T2)+G2+IF(H2="",0,I2)

  10. #10
    Forum Contributor
    Join Date
    03-23-2011
    Location
    Ormesby
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    130

    Re: Counting if cell = blank

    wow, as simple as that.

    Perfect

    Many thanks for the quick response

    Pugg

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Counting if cell = blank

    Happy to help

    Actually, that could be simplified to this...
    =SUM(J2:T2,G2,IF(H2="",0,I2))

+ 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. Counting blank cells up to first non-blank cell
    By DLG3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2015, 07:36 AM
  2. [SOLVED] Cant stop it counting a blank cell as an option
    By Beach Walker in forum Excel General
    Replies: 1
    Last Post: 07-08-2014, 08:21 PM
  3. Excel 2007 counting across rows to the next blank cell
    By kj2607 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 10:22 AM
  4. [SOLVED] Counting number of 1s in a row until blank cell is reached.
    By wjhansen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2013, 08:00 AM
  5. Counting number of non-blank cells for every nth cell
    By mqp92 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-03-2013, 11:08 AM
  6. Counting should stop at blank cell
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2009, 01:22 PM
  7. Excel Counting a blank cell as a value
    By Barking_Mad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2009, 11:53 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