Very quick simple Excel query
Author
Discussion

Orchid1

Original Poster:

906 posts

139 months

Monday 12th March 2018
quotequote all
In column A I have a list of different dates, in column B I also have a list of different dates.

All I want to happen is if the date in column B is more than 30 days after the date in column A it says TRUE in column C or FALSE if it isn't.

I know it's a conditional formatting job but I just can't seem to get the right formula which I know is going to be very simple.

Any help very much appreciated thanks.

stargazer30

1,722 posts

197 months

Monday 12th March 2018
quotequote all
Excel sees dates as number so it should be simple;
=IF(B1-A1>30,TRUE,FALSE)

There are dedicated date manipulation formula too but for this you should not need them as long as A and B columns have correctly formatted dates and excel is seeing them as dates and not text.

kiethton

14,678 posts

211 months

Monday 12th March 2018
quotequote all
=IF(B1-A1>30,"True", "False")

Orchid1

Original Poster:

906 posts

139 months

Monday 12th March 2018
quotequote all
stargazer30 said:
Excel sees dates as number so it should be simple;
=IF(B1-A1>30,TRUE,FALSE)

There are dedicated date manipulation formula too but for this you should not need them as long as A and B columns have correctly formatted dates and excel is seeing them as dates and not text.
That worked perfectly thank you. I knew it was simple!

toasty

8,427 posts

251 months

Monday 12th March 2018
quotequote all
=DAYS(B1,A1)>30

AW111

9,674 posts

164 months

Monday 12th March 2018
quotequote all
stargazer30 said:
Excel sees dates as number so it should be simple;
=IF(B1-A1>30,TRUE,FALSE)

There are dedicated date manipulation formula too but for this you should not need them as long as A and B columns have correctly formatted dates and excel is seeing them as dates and not text.
The IF is redundant.
=(B1-A1)>30




andygo

7,426 posts

286 months

Monday 12th March 2018
quotequote all
AW111 said:
The IF is redundant.
=(B1-A1)>30
Beat me to it, given about 30 years I would have worked it out.

Cheers,

A bloke that can hardly spell Exshell Excel, never mind use it!