+ Reply to Thread
Results 1 to 7 of 7

Nested IF fuction help. ? Correct approach

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Nested IF fuction help. ? Correct approach

    Hi All

    Newbie to using Excel beyond a very basic level and would appreciate any help with this. I am creating rules in a consumables log to alert when expiry dates have arrived.

    I have been able to achieve this using the following rule:

    =IF(DAYS360(A1,TODAY())>=0,"EXPIRED","")

    I then use conditional formatting to change the fill and font when "EXPIRED" text appears to make the field stand out.

    I would also like to modify the rule to create an alert in the same field when an expiry is approaching (10 days before expiry up to the day before = "Soon to Expire"), followed by the "Expired" comment on the day of expiry.

    I have attempted this by nesting additional IF functions without success.

    Not sure if I'm taking the right approach here so any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Nested IF fuction help. ? Correct approach

    =if(Days360(A1,Today())>=0,"EXPIRED",if(Days(360(A1,Today())>=-30,"Soon to Expire",""))

    I think.

  3. #3
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: Nested IF fuction help. ? Correct approach

    I'm assuming A1 is your expiry date?

    This should do what you want it to...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-18-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Nested IF fuction help. ? Correct approach

    Hi yudlugar. Thanks for your help. I can see the logic here but I get a error with this rule and I can't understand why.

  5. #5
    Registered User
    Join Date
    09-18-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Nested IF fuction help. ? Correct approach

    Hi cheeze83.

    This works great and I learnt something also. Thanks for your help.

  6. #6
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: Nested IF fuction help. ? Correct approach

    No worries Glad it worked.

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Nested IF fuction help. ? Correct approach

    For completeness sake, I added an extra bracket between days and 360 accidently.
    =if(Days360(A1,Today())>=0,"EXPIRED",if(Days360(A1,Today())>=-10,"Soon to Expire",""))

    is what it should have been.

+ 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] Help for v-lookup approach instead of manually cell linking approach - Excel 2010
    By Mirisage in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2013, 01:32 PM
  2. Nested If Fuction for calculation
    By mack zilla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 01:43 PM
  3. Nested IF fuction help please
    By HelenW in forum Excel General
    Replies: 2
    Last Post: 06-04-2010, 04:11 PM
  4. Correct approach? (Multiple MID functions)
    By Harmony in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-31-2007, 04:17 AM
  5. how can I exceed the nested if fuction limit
    By mgdye in forum Excel General
    Replies: 5
    Last Post: 01-30-2005, 11:06 AM

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