Author Topic: Excel question  (Read 1221 times)

tiermat

  • According to Jane, I'm a Unisex SpaceAdmin
Excel question
« on: 28 April, 2008, 01:57:07 pm »
I have a excel spreadsheet that contains a load of figures and some dates.

I need to, in a seperate column, compare two dates (col F and col J), and if the date in col J is more than 7 days after the date in col F then indicate so, if not then leave the cell blank.  I need to do this for each of 17 rows (which is obviously an easy copy 'n' paste)

I have no idea where to start with writing the macro, any ideas?
I feel like Captain Kirk, on a brand new planet every day, a little like King Kong on top of the Empire State

Re: Excel question
« Reply #1 on: 28 April, 2008, 02:05:20 pm »
Put a formula in an empty cell in the row (example is for row 2):

=if(J2-F2>7, "late","")

This will show 'late' if the dates differ by more than 7 days, otherwise it will be blank.

tiermat

  • According to Jane, I'm a Unisex SpaceAdmin
Re: Excel question
« Reply #2 on: 28 April, 2008, 02:06:00 pm »
Cool, that worked, thanks...

yACF FTW again :)
I feel like Captain Kirk, on a brand new planet every day, a little like King Kong on top of the Empire State