+ Reply to Thread
Results 1 to 10 of 10

Formula returns #Value! when + empty cell with formula with cell with value and formula

  1. #1
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Formula returns #Value! when + empty cell with formula with cell with value and formula

    Hello,

    In Column G I am adding column D + Column F.
    Row 2 and 3 are fine.
    Problem is row 4 and 5. This is because D4 and F5 are blank with formula. Hence, the #value!.
    Is there a way to overcome this?

    Thanks!


    10.png
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    498

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Use sum formula instead of + to overcome this.
    Please Login or Register  to view this content.

  3. #3
    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,987

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    In G2 copied down:

    =SUM(D2,F2)
    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.

  4. #4
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Hi both,
    thank you very much for this - really helpful.
    One thing I didn't expect was 2 blank cells to return 0.
    Is there a way to return blank cell if the other 2 cells are blank?

    This formula returns FALSE if both cells have values but works if only one cell has an value.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    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,987

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Try:

    =IF(AND(D2="",F2=""),"",SUM(D2,F2))

    Learn about BOOLEAN operators in Excel: https://www.pcworld.com/article/4236...t-and-xor.html
    Last edited by AliGW; 04-11-2024 at 04:42 AM.

  6. #6
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    This is really a great article. Thanks for sharing!
    The formula still returns 0 if both D2 and F2 are blank.

  7. #7
    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,987

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    No - it works fine.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Awesome! It works.
    Thanks, AliGW

  9. #9
    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,987

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Formula returns #Value! when + empty cell with formula with cell with value and formul

    Another possibility:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] How to input formula in a cell with VBA if the formula returns string?
    By LIL2606 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2019, 12:10 PM
  2. Replies: 4
    Last Post: 08-06-2018, 07:54 AM
  3. Pivot table picks up empty cell from formula which returns BLANK
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 08:37 PM
  4. [SOLVED] formula =Cell returns 0 if cell is empty - can it be blank?
    By jowes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-05-2013, 08:36 AM
  5. [SOLVED] need formula that finds phone #, if true, returns empty cell
    By jessexcel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-23-2013, 11:44 PM
  6. Replies: 10
    Last Post: 01-06-2011, 01:02 PM
  7. Formula returns #Value! empty cell value
    By ingineu in forum Excel General
    Replies: 4
    Last Post: 10-02-2006, 05:49 AM

Tags for this Thread

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