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!

Dates in excel

maxamos
maxamos Posts: 104 Forumite
I'm having trouble getting excel to recognise dates, I'm using this formula to create a value but it doesn't seem to work

=IF($E2-NOW()<=$K2,$J2,)

I've formatted the E2 cell as a date but it keeps bringing up a #VALUE error in the cell with this formula.

Anyone got any ideas why

Thanks

Max

Comments

  • Chippy_Minton
    Chippy_Minton Posts: 3,339 Forumite
    What values are in E2, K2 and J2?

    What are you trying to do?
  • maxamos
    maxamos Posts: 104 Forumite
    Thanks for the reply

    I'm trying to set up a scheduling sheet for tasks i.e if there is only 30 days left between todays date and the date in e2 flag up red if there are 37 days to go show yellow. k2 is the amount of days before warning becomes relevant so if today minus the date in e2 is greater than this there is nothing to be shown, j2 is a similar formula but just refines on the dates to show either red or yellow depending on how close we are to todays date.

    I have just worked out though that excel is inputting the dates in e2 in the American style of month, day then year and this is where the problem is coming from is there any way I can change this.

    Thanks

    Max
  • maxamos
    maxamos Posts: 104 Forumite
    I feel rather silly now, my computer was still set up with American English as default.

    All sorted

    Cheers

    Max
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.5K Banking & Borrowing
  • 253.7K Reduce Debt & Boost Income
  • 454.5K Spending & Discounts
  • 245.5K Work, Benefits & Business
  • 601.4K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.4K 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.