+ Reply to Thread
Results 1 to 3 of 3

Nested IF fuction help please

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Devon
    MS-Off Ver
    2002
    Posts
    71

    Nested IF fuction help please

    Hi all

    I need a nested IF function on my spreadsheet (I think!) and know how to get part way through, but now I'm stuck.

    Here's my formula as it is:

    =IF(K4="",L5-J5,L5-K5)
    However, I need to be able to insert something regarding L5 as this will not always have a value. If L5 is "" then I need to know if J5 is earlier than today's date (at the time of the formula being used), or if it is later. If J5 is "" then I would need to compare K5 with today's date instead.

    Can anyone help please? I'd be very grateful! Please note that L5, J5, and K5 are all date values, and my result is a number which I can then work with.



    Helen

  2. #2
    Registered User
    Join Date
    09-18-2008
    Location
    Devon
    MS-Off Ver
    2002
    Posts
    71

    Re: Nested IF fuction help please

    Quick update - I already have a formula I can use that will do my comparisons partly:

    =IF(K4="",(L4-J4),(L4-K4)))
    But what I need is that if the result of this formula is blank, then I need to use:

    =IF(K5="",J5-(TODAY()),K5-(TODAY()))
    Will that work? I've tried fiddling with it and most often just get a "volatile" response!

  3. #3
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Nested IF fuction help please

    Quote Originally Posted by helenw View Post
    however, i need to be able to insert something regarding l5 as this will not always have a value. If l5 is "" then i need to know if j5 is earlier than today's date (at the time of the formula being used), or if it is later. If j5 is "" then i would need to compare k5 with today's date instead.
    Using your examples above:

    =IF(J5<>"",IF(ISBLANK(L5),TODAY(),L5)-J5,IF(K5<>"",IF(ISBLANK(L5),TODAY(),L5)-K5,""))
    Last edited by pb71; 06-04-2010 at 04:42 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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