+ Reply to Thread
Results 1 to 11 of 11

Replacing #VALUE! with a blank in a Formula

  1. #1
    Forum Contributor
    Join Date
    12-23-2020
    Location
    Mbabane, Eswatini
    MS-Off Ver
    2016
    Posts
    141

    Replacing #VALUE! with a blank in a Formula

    Good morning.
    I have created a daily time calculator formula between two different times. However, on my table the formula should exclude Sundays.
    The problem that I am having is that when the date falls on a Sunday the time difference result becomes #VALUE!. Is there a way that excel could give a blank on the result?
    I have attached my spreadsheet for reference.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-25-2022
    Location
    Asia
    MS-Off Ver
    365
    Posts
    13

    Re: Replacing #VALUE! with a blank in a Formula

    You can try IFERROR function.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replacing #VALUE! with a blank in a Formula

    or change "" to 0 in D and C column
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-23-2020
    Location
    Mbabane, Eswatini
    MS-Off Ver
    2016
    Posts
    141

    Re: Replacing #VALUE! with a blank in a Formula

    Quote Originally Posted by sandy666 View Post
    or change "" to 0 in D and C column
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This formula only works where the result is Zero. But where the result is not a Zero it gives an incorrect result of 00.29 instead of 08.00 as can be seen from the attached spreadsheet.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-23-2020
    Location
    Mbabane, Eswatini
    MS-Off Ver
    2016
    Posts
    141

    Re: Replacing #VALUE! with a blank in a Formula

    Quote Originally Posted by HDHP View Post
    You can try IFERROR function.
    This function yields the same error result.

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

    Re: Replacing #VALUE! with a blank in a Formula

    If you try =IFERROR(--IF((C5-B5+(C5<B5))*24<>0,((C5-B5+(C5<B5))*24-1)),"") it returns no #errors, but blanks instead of

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replacing #VALUE! with a blank in a Formula

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

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

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

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Replacing #VALUE! with a blank in a Formula

    if you see something different than 08:00 or 07:00 change format of cells (format painter)
    anyway if G1 = 07:00 so result will 07:00 not 08:00

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

    but if G1 = 07:00 result will be 07:00

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

    result: 08:00
    with format painter from I1

    I don't understand your logic, instead of subtracting C-B columns you copy values from cell G1, so why all these formulas?
    Last edited by sandy666; 11-15-2022 at 06:36 AM.

  9. #9
    Forum Contributor
    Join Date
    12-23-2020
    Location
    Mbabane, Eswatini
    MS-Off Ver
    2016
    Posts
    141

    Re: Replacing #VALUE! with a blank in a Formula

    Quote Originally Posted by HansDouwe View Post
    If you try =IFERROR(--IF((C5-B5+(C5<B5))*24<>0,((C5-B5+(C5<B5))*24-1)),"") it returns no #errors, but blanks instead of
    Thanks. This works perfectly.

  10. #10
    Forum Contributor
    Join Date
    12-23-2020
    Location
    Mbabane, Eswatini
    MS-Off Ver
    2016
    Posts
    141

    Re: Replacing #VALUE! with a blank in a Formula

    Thank you so much. it worked.

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

    Re: Replacing #VALUE! with a blank in a Formula

    Glad to have helped. You are welcome, thanks for the feedback and rep .

+ 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] Replacing 0 with blank
    By stockman in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-17-2016, 06:53 AM
  2. Formula for replacing zero values with blank
    By Tendla in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 06:19 AM
  3. Replacing a blank with a value
    By bmccarthy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2010, 09:12 AM
  4. Replacing blank cells with mean value
    By Robert8 in forum Excel General
    Replies: 1
    Last Post: 03-21-2010, 09:14 AM
  5. Replacing #N/A with a blank cell
    By sandrav in forum Excel General
    Replies: 2
    Last Post: 06-24-2008, 11:30 AM
  6. Replacing blank cells
    By Chris Stammers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2005, 09:45 AM
  7. [SOLVED] Replacing Blank Cells
    By Kim in forum Excel General
    Replies: 3
    Last Post: 09-07-2005, 08:05 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