+ Reply to Thread
Results 1 to 7 of 7

Display different text in a cell, dependant on a date range

  1. #1
    Registered User
    Join Date
    08-31-2015
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    8

    Display different text in a cell, dependant on a date range

    Hello,

    I am trying to create a cell which displays specific text depending on the date range chosen.

    I am attempting the following formula/function but cannot get it to work. When I submit the formula, the cell says, "THIS IS OVER 90 DAYS" so appears to be working, however, it does not adjust to anything other than that text.

    =IF(H13<TODAY()+90,"THIS IS OVER 90 DAYS",IF(H13<TODAY()+30,"Send 30 day reminder",IF(H13<TODAY()+10,"Send 10 Day Reminder",IF(H13<TODAY()+5,"Send 5 Day Reminder"))))

    Can anyone please help?

    Thanks

    chris

  2. #2
    Registered User
    Join Date
    08-01-2012
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Display different text in a cell, dependant on a date range

    just replace your "+" with "-"

    =IF(H13<TODAY()-90,"THIS IS OVER 90 DAYS",IF(H13<TODAY()-30,"Send 30 day reminder",IF(H13<TODAY()-10,"Send 10 Day Reminder",IF(H13<TODAY()-5,"Send 5 Day Reminder"))))

  3. #3
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Display different text in a cell, dependant on a date range

    note :

    steve already give the answer....
    Click (*) if you received helpful response.

    Regards,
    David

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Display different text in a cell, dependant on a date range

    h13 will be less than all those dates

    say H13 = 1st jan 15
    and today is 1st aug 15

    H13 is less than all your criteria
    its less than
    today + 90
    today +5

    hence the error you are getting

    h13+90 < today()

    You need a condition for less than 5 days - otherwise you get false
    =IF(H13+90<TODAY(),"THIS IS OVER 90 DAYS",IF(H13+30<TODAY(),"Send 30 day reminder",IF(H13+10<TODAY(),"Send 10 Day Reminder",IF(H13+5<TODAY(),"Send 5 Day Reminder", "need something here" ))))

    If this is not correct can you
    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    08-31-2015
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    8

    Re: Display different text in a cell, dependant on a date range

    Quote Originally Posted by Steve7913 View Post
    just replace your "+" with "-"

    =IF(H13<TODAY()-90,"THIS IS OVER 90 DAYS",IF(H13<TODAY()-30,"Send 30 day reminder",IF(H13<TODAY()-10,"Send 10 Day Reminder",IF(H13<TODAY()-5,"Send 5 Day Reminder"))))



    THANK YOU!!!! and etaf. You have no idea how many hours today I have spent trying to solve this. Never thought it was simply down to my +/- , how frustrating!


    Thank you etaf for the suggestion about the range, I had not thought about that.


    Chris

  6. #6
    Registered User
    Join Date
    08-31-2015
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    8

    Re: Display different text in a cell, dependant on a date range

    This is now solved but I can't see how to change the status.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Display different text in a cell, dependant on a date range

    your welcome and thanks for the rep

+ 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] finding average with date dependant and cell dependant
    By sfoll in forum Excel General
    Replies: 4
    Last Post: 08-24-2015, 04:58 AM
  2. [SOLVED] If a specified range contains a text value, then display adjacent cell text?
    By adegroot13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2014, 03:20 PM
  3. Counting text in cells dependant on a date range
    By Netski in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2013, 10:08 AM
  4. [SOLVED] SUMIF dependant upon date range
    By colin.dickson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 10:13 AM
  5. Populate text boxes dependant on the display in 2 comboboxes
    By Tony0437 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2012, 10:53 AM
  6. Replies: 1
    Last Post: 03-16-2011, 11:05 PM
  7. Lock range of cells dependant on date range
    By stir-crazy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2008, 09:40 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