+ Reply to Thread
Results 1 to 6 of 6

+30 days from today

  1. #1
    Registered User
    Join Date
    02-28-2024
    Location
    Stroud UK
    MS-Off Ver
    365
    Posts
    4

    +30 days from today

    Good evening.
    Im currently making a spreadsheet for training and i want to add a formula so that if a date in one cell is within 30 days of todays date then it populates another cell with 1 of 3 other cells depending on date?
    So todays date is in cell D6
    due Date of training is in cell I16
    and i want cell J16 to show cell X3 if date before todays date
    or
    and i want cell J16 to show cell X4 if date within the next 30 days
    or
    and i want cell J16 to show cell X2 if date is over 30 days from todays date

    Sorry im am self teaching this excel lol
    Thanks Chris

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: +30 days from today

    Give this formula a try...

    =IF(I16<D6,X3,IF(I16<D6+30,X4,X2))

  3. #3
    Registered User
    Join Date
    02-28-2024
    Location
    Stroud UK
    MS-Off Ver
    365
    Posts
    4

    Re: +30 days from today

    Ahh that works great thanks. What about if i wanted to copy the colour off the cell to?

  4. #4
    Registered User
    Join Date
    02-28-2024
    Location
    Stroud UK
    MS-Off Ver
    365
    Posts
    4

    Re: +30 days from today

    Ahh never mind i sussed it out.. Cheers

  5. #5
    Registered User
    Join Date
    02-28-2024
    Location
    Stroud UK
    MS-Off Ver
    365
    Posts
    4

    Re: +30 days from today

    Quote Originally Posted by Rick Rothstein View Post
    Give this formula a try...

    =IF(I16<D6,X3,IF(I16<D6+30,X4,X2))
    Yeah that worked great. Now what about if i also want to add to that if J16 =Y then I16 Will show X1 cell instead of X2 ,X3 or X4 cell?

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: +30 days from today

    I am not exactly clear on what you are asking. Your original question was for a formula in cell J16 that looked at the contents of cell I16. Your new question is for a formula in cell I16 that looks at the content in I16... which is the reverse of your original question. If you have asked your question correctly, you cannot do that... a cell can contain only one thing, either a constant value or a formula, but not both. Please clarify.

+ 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. No. of Dates between 30, 60 and 90 days from today ...
    By danmaguire in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2021, 05:19 AM
  2. Replies: 3
    Last Post: 05-08-2021, 01:15 AM
  3. Pull out today +/- 28 days
    By jpsx99 in forum Excel General
    Replies: 3
    Last Post: 04-04-2019, 01:20 PM
  4. [SOLVED] Today + 30 Days
    By Pulgasari in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-27-2016, 04:34 PM
  5. Today + 45 days
    By beanzy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2007, 11:20 AM
  6. 25 days previous to today?
    By MaQ in forum Excel General
    Replies: 5
    Last Post: 03-14-2006, 03:00 PM
  7. Add 4 working days to =Today()
    By piranhagirl in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-23-2005, 05:22 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