DATE question

H

Harvey Waxman

Can you help?

I get a #VALUE! error with:

=IF(NOW()=DATEVALUE(E29),$B$27,"")

I want to enter the value of B27 if today's date is equal to the date in E29.

Thanks
-
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me
 
M

macropod

Hi Harvey,

Apart from ensuring you've got a *string* representing a date in E29, you'll
probably get better results with:
=IF(TODAY()=DATEVALUE(E29),$B$27,"")
I suspect, however, that E29 already has a *value* represented as a date or
date & time, in which case:
=IF(TODAY()=E29,$B$27,"")
for a date, or
=IF(TODAY()=INT(E29),$B$27,"")
for a date & time, should do.

Cheers
 
H

Harvey Waxman

CyberTaz said:
Assuming the date is entered in E20 as a date (not as a serial number) this
should work:

=IF(E1=TODAY(),C1,"")

It is a date. I'll try, thanks
 
H

Harvey Waxman

macropod said:
Hi Harvey,

Apart from ensuring you've got a *string* representing a date in E29, you'll
probably get better results with:
=IF(TODAY()=DATEVALUE(E29),$B$27,"")

I should have tried that
I suspect, however, that E29 already has a *value* represented as a date or
date & time, in which case:
=IF(TODAY()=E29,$B$27,"")
for a date, or
=IF(TODAY()=INT(E29),$B$27,"")
for a date & time, should do.

Many thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

restrict calculation 1
keyboard shortcuts 2
sheet size 18
update 2
Formula needed 2
sort question 2
Where is my error? 7
Frequency question 5

Top