+ Reply to Thread
Results 1 to 3 of 3

Getting ISBLANK to show either blank field or WORKDAY result

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    Cornwall, England
    MS-Off Ver
    Office 365
    Posts
    1

    Getting ISBLANK to show either blank field or WORKDAY result

    Hi,

    I'm trying to create a sheet which tracks the due date of maintenance tasks based on a date started and adding a number of working days depending on the priority of the task. So far this is in 3 cells:

    1: Date
    2: Number of days from a drop down list
    3: =WORKDAY(A1,B1)

    This correctly shows the due date of the job. However, the =WORKDAY formula is showing the date 00/01/1900 on lines where the date field is empty. I was trying to work around this by adding the ISBLANK formula. My attempt so far was:

    =IF(ISBLANK(A1),[ ],[=WORKDAY(A1,B1)])

    However this comes up with a syntax error for the [value_if_true] field. If I put anything in the field other than a space it comes up with the "There's a problem with this formula" error message.

    Frankly, I have no idea how to fix this!

  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
    79,401

    Re: Getting ISBLANK to show either blank field or WORKDAY result

    Your syntax is not correct at all. Try this:

    =IF(ISBLANK(A1),"",WORKDAY(A1,B1))

    or this:

    =IF(A1="","",WORKDAY(A1,B1))
    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 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
    79,401

    Re: Getting ISBLANK to show either blank field or WORKDAY result

    Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Pivot to show only Non-Zero/blank field and total for Column
    By jp16 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 08-29-2017, 08:27 AM
  2. isblank & vlookup formula returns #n/a result and incorrect result
    By helpmeplease333 in forum Excel General
    Replies: 5
    Last Post: 05-06-2012, 11:41 PM
  3. show text-date as a result of named field formula
    By brum17 in forum Excel General
    Replies: 1
    Last Post: 03-10-2011, 11:51 PM
  4. If a result is 0 can a field be blank?
    By Mediaid in forum Excel General
    Replies: 6
    Last Post: 03-23-2009, 08:50 AM
  5. [SOLVED] how to have result field blank
    By Ellen in forum Excel General
    Replies: 2
    Last Post: 12-13-2005, 05:50 PM
  6. [SOLVED] How can I show all field data in a pivot table, instead of blank
    By Alastair Scott in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 03:05 PM
  7. [SOLVED] I've put a formula in a field, the result won't show
    By kanye in forum Excel General
    Replies: 5
    Last Post: 07-07-2005, 04: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