Count down formula

F

Foss

Hi there,

I need to write a formula that tells me the amount of weeks and days before
the 20th of next month.

Has anyone got such a formula they could pass me? I had a quick look but
it's too hot for my poor little mind to function today!

Any pointers much appreciated..

Cheers,
Foss
 
S

Sandy Mann

Foss,

If there is a reference date in a cell, (say A1), try:

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)>20),20)-A1

If you want it to be independent of any reference cell then try:

=DATE(YEAR(TODAY()),MONTH(TODAY())+(DAY(TODAY())>20),20)-TODAY()

in each case format the cell as General. If today's date is the 20th then
the formula will show zero

--
HTH

Sandy
[email protected]
Replace@mailinator with @tiscali.co.uk
 
P

Peo Sjoblom

One way

=DATE(YEAR(TODAY()),MONTH(TODAY())+(DAY(TODAY())>20),20)-TODAY()

--
Regards,

Peo Sjoblom

(No private emails please)
 
F

Foss

Sandy,

Thanks very much, the second one was just what I was after and I've kept
hold of the first as it'll be useful later on!

Cheers,
Foss
 
Top