+ Reply to Thread
Results 1 to 8 of 8

CF a cell depending on another cell's date

  1. #1
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2007
    Posts
    62

    CF a cell depending on another cell's date

    Morning, is there a formula for CF where
    let's say A1 is a date
    B1 will display the text?
    In consequence if A1 is this week, B1 will display the text "this week".
    Also displays of "yesterday", "tomorrow", "last month", "next month"
    "Last week", "next week" in B1 accordingly to the date on A1.
    It does not have to be one formula only unless it can be done with one.
    I know how to do it with colors in CF but is a little confusing.

  2. #2
    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
    44,962

    Re: CF a cell depending on another cell's date

    You can't display text with CF. The clue is in the name, Conditional Formatting

    You could have a formula in Cell B1 to display the text AND CF to highlight it.

    What constitutes "this week"?
    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


  3. #3
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2007
    Posts
    62

    Re: CF a cell depending on another cell's date

    Okay that'll work too, formula in B1 to display the text will work then.
    Do you happen to have one?
    Thanks.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,762

    Re: CF a cell depending on another cell's date

    Assuming dates within the current year, try the following in cell B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: CF a cell depending on another cell's date

    This formula also works well around year transitions:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-06-2022
    Location
    USA
    MS-Off Ver
    2007
    Posts
    62

    Re: CF a cell depending on another cell's date

    Thank you much both!

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: CF a cell depending on another cell's date

    You are welcome, thx for the feedback and rep .

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,762

    Re: CF a cell depending on another cell's date

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Don't know how to get cell value depending on date.
    By XCLNOOOB in forum Excel General
    Replies: 1
    Last Post: 06-05-2022, 05:23 PM
  2. Replies: 3
    Last Post: 07-16-2014, 10:44 AM
  3. Cell to highlight different colors depending on the date in another cell?
    By Gregwaa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 10:42 AM
  4. [SOLVED] Add Weeknumber value to cell depending on the date in a cell 4 columns away
    By Roxner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2013, 02:37 PM
  5. Help change cell colour depending on date in another cell
    By nubehaviour in forum Excel General
    Replies: 8
    Last Post: 01-14-2013, 07:04 PM
  6. Change cell value depending on date
    By highlatency in forum Excel General
    Replies: 1
    Last Post: 07-13-2010, 06:59 AM
  7. Replies: 2
    Last Post: 01-06-2006, 03:50 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