+ Reply to Thread
Results 1 to 7 of 7

IF Statement Not Quite Working

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    IF Statement Not Quite Working

    Hello,

    I'm a bit stuck with a formula on the attached spreadsheet, I'm wondering if anyone could kindly assist. The one in G3 is the one which I'm struggling with.

    What I'm trying to do is say that cell G2 changes what it says depending on how far past the date in cell E2 goes. After 4 working days it needs to change to "Warning" and after 7 working days it needs to change to "Urgent". However if any date if put cell F2 I need the text to say "Done". If the date is not past 4 working days then it needs to display "Ok".

    =IF(ISBLANK(E3)," ",IF(NOT(ISBLANK(F3)),"Done",IF(NETWORKDAYS(E3,TODAY(),)>7,"Urgent",IF(NETWORKDAYS(E3,TODAY(),)>4,"Warning","Ok"))))

    This forumla displays the #NAME? error.

    Is anyone able to help?

    James
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Statement Not Quite Working

    Quote Originally Posted by jimmydougle View Post
    Hello,


    =IF(ISBLANK(E3)," ",IF(NOT(ISBLANK(F3)),"Done",IF(NETWORKDAYS(E3,TODAY(),)>7,"Urgent",IF(NETWORKDAYS(E3,TODAY(),)>4,"Warning","Ok"))))

    This forumla displays the #NAME? error.

    Is anyone able to help?

    James
    I see these as result startimg in G2.

    Done
    Ok
    Ok
    Urgent
    Ok
    Urgent
    Ok
    Urgent
    Urgent
    Urgent


    Urgent
    Urgent
    Urgent
    Ok
    Urgent
    Urgent

    No #NAME? error.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: IF Statement Not Quite Working

    I'm confused, because your profile says XL 2003, yet you have posted an .xlsx file, but I think that might be your problem. The formula works for me (does not give the #NAME error), but if you are using XL2003 then NETWORKDAYS is not recognised until you install the Analysis Tool Pack, which is why you are getting that error.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: IF Statement Not Quite Working

    Hi Fotis,

    This is strange... have a look at my attached screenshot. Maybe my settings are wrong...?

    James
    Attached Images Attached Images

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Statement Not Quite Working

    Did you read what Pete, said?

  6. #6
    Registered User
    Join Date
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: IF Statement Not Quite Working

    yes, thank you Pete. I'm on the phone to my IT Support right now trying to see whether the Analysis Tool Pack is installed. This error might be due to half the company being on MS Office 2010 and the other half not. We're half way through the migration process. I'll let you both know if it gets sorted.

    Many thanks,

    James

  7. #7
    Registered User
    Join Date
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: IF Statement Not Quite Working

    Yep, it's my computer! Thanks for the help everyone!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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