+ Reply to Thread
Results 1 to 6 of 6

If formula for sending "Intimation" based on the expiry date.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Question If formula for sending "Intimation" based on the expiry date.

    Dear Friends,

    I am trying to write If statement for sending renewal intimation in advance based on the expiry date. I tried the formula as follows. Unfortunately, I am not getting the desired results. An excel "Book-1" is attached herewith for your kind reference.

    =IF(B3="NOC","NOC",IF(A3<TODAY()+90,"Send first intimation",IF(A3<TODAY()+60,"Send Second intimation",IF(A3<TODAY()+30,"Send third intimation",""))))
    Thanks in advance
    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 formula for sending "Intimation" based on the expiry date.

    You have to reverse your if function.
    Formula: copy to clipboard

    =IF(B2="NOC Issued","NOC Issued",IF(A2<TODAY()+30,"Send third intimation", IF(A2<TODAY()+60,"Send Second intimation",IF(A2<TODAY()+90,"Send first intimation",""))))


    In D2 and copy down.
    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 TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,376

    Re: If formula for sending "Intimation" based on the expiry date.

    You need to reverse the order of the tests because if a value is less than 30 it will also be less than 60 and 90.

    Formula: copy to clipboard

    IF(B3="NOC","NOC",IF(A3<TODAY()+30,"Send third intimation",IF(A3<TODAY()+60,"Send Second intimation",IF(A3<TODAY()+90,"Send first intimation",""))))



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,376

    Re: If formula for sending "Intimation" based on the expiry date.

    @Fotis: snap

  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 formula for sending "Intimation" based on the expiry date.

    Quote Originally Posted by TMShucks View Post
    @Fotis: snap


    Good morning Trevor!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,376

    Re: If formula for sending "Intimation" based on the expiry date.

    Good morning Fotis. A little later in the day there than here just coming round slowly!

+ 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. "IF" formula based on whether the date is a pay-day or not
    By rlmorgan95 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2013, 02:36 PM
  2. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  3. [SOLVED] Name Range "Prev3Mos" "Next3Mos" based on todays date
    By MaddyG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2012, 12:31 AM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. [SOLVED] Sending macro based e-mail with built-in "Heading" and "Text"
    By Prabha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2005, 11:06 AM

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