We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel help

Gers
Gers Posts: 13,368 Forumite
Part of the Furniture 10,000 Posts Photogenic Name Dropper
Morning.

I'd appreciate some technical help with an Excel spreadsheet please.

Col A has a date in which is ahead - i.e. 16/11/16

I would like a formula which highlights, in Col B, when the date has two months to go before the Col A date is reached.

I need to warn students of the impending end of their registration (and encouorage them to do some blooming work!)

Can it be done? I've tried conditional formatting but can't work it out.

Thanks

Comments

  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    If you want to base it on todays date, you can use something like :-
    =if(a2-today()<=60,"Y","")

    This will put a Y in the relevant cell if there's 60 days or less than the date you've entered to go.

    You can then conditionally format that.
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • [Deleted User]
    [Deleted User] Posts: 0 Newbie
    Holiday Haggler
    edited 22 June 2016 at 10:50AM
    Do you mean you just want to subtract 2 months from the value in a cell?

    You'd use a function like this:

    =EDATE(A1,-2)

    Then make sure you set the format of the output column as a date format, or it'll just show a weird numeric version of the date

    You can turn that into a True/false if you add a condition:

    =IF( TODAY() < EDATE(K7,-2), "TRUE", "FALSE")

    Then throw on a bit of conditional formatting to highlight stuff
  • Gers
    Gers Posts: 13,368 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    rmg1 wrote: »
    If you want to base it on todays date, you can use something like :-
    =if(a2-today()<=60,"Y","")

    This will put a Y in the relevant cell if there's 60 days or less than the date you've entered to go.

    You can then conditionally format that.

    Thanks, though I won't be using todays date but different dates, mostly from 2015.
    Do you mean you just want to subtract 2 months from the value in a cell?

    You'd use a function like this:

    =EDATE(A1,-2)

    Then make sure you set the format of the output column as a date format, or it'll just show a weird numeric version of the date

    You can turn that into a True/false if you add a condition:

    =IF( TODAY() < EDATE(K7,-2), "TRUE", "FALSE")

    Then throw on a bit of conditional formatting to highlight stuff

    Thanks very much both of you, your help is appreciated.

    Off to have a go!
  • Gers
    Gers Posts: 13,368 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    Do you mean you just want to subtract 2 months from the value in a cell?

    You'd use a function like this:

    =EDATE(A1,-2)

    Then make sure you set the format of the output column as a date format, or it'll just show a weird numeric version of the date

    You can turn that into a True/false if you add a condition:

    =IF( TODAY() < EDATE(K7,-2), "TRUE", "FALSE")

    Then throw on a bit of conditional formatting to highlight stuff

    Brilliant - that worked perfectly (the first option).

    Many thanks.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.3K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.3K Spending & Discounts
  • 245.3K Work, Benefits & Business
  • 601.1K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.2K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.