#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default If formula

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then I need it
to return as blank. If false (no date in that range), then I want it to
return "Yes".


Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default If formula

Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")


"hmsawyer" wrote:

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then I need it
to return as blank. If false (no date in that range), then I want it to
return "Yes".


Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default If formula

That doesn't work either. I'm still getting #VALUE. Thanks.

"Mike" wrote:

Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")


"hmsawyer" wrote:

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then I need it
to return as blank. If false (no date in that range), then I want it to
return "Yes".


Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If formula

Try it this way:

=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

Hope this helps.

Pete

On Mar 24, 10:50*pm, hmsawyer
wrote:
That doesn't work either. *I'm still getting #VALUE. *Thanks.



"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")


"hmsawyer" wrote:


This formula is not working. *Can you please help me correct it?


=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")


If any cell in the line has a date of 4/1/08-4/31/08 entered, then I need it
to return as blank. *If false (no date in that range), then I want it to
return "Yes".


Thank you.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default If formula

That is better, but it is only returning Yes even when there are dates in
April in the line.

Any other thoughts?

"Pete_UK" wrote:

Try it this way:

=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

Hope this helps.

Pete

On Mar 24, 10:50 pm, hmsawyer
wrote:
That doesn't work either. I'm still getting #VALUE. Thanks.



"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")


"hmsawyer" wrote:


This formula is not working. Can you please help me correct it?


=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")


If any cell in the line has a date of 4/1/08-4/31/08 entered, then I need it
to return as blank. If false (no date in that range), then I want it to
return "Yes".


Thank you.- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If formula

I suppose you are getting "Yes" with dates of 1st April? You need to amend
the first part of the formula so that it is "=", i.e.:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

It would be a bit easier to modify for other months if you change it further
to this:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,5,1))0,"","Yes")

i.e. the first date is the 1st of the month you are interested in, the
second date is the first of the next month, and both COUNTIFs are now
looking at "=" the date.

Hope this helps.

Pete


"hmsawyer" wrote in message
...
That is better, but it is only returning Yes even when there are dates in
April in the line.

Any other thoughts?

"Pete_UK" wrote:

Try it this way:

=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

Hope this helps.

Pete

On Mar 24, 10:50 pm, hmsawyer
wrote:
That doesn't work either. I'm still getting #VALUE. Thanks.



"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")

"hmsawyer" wrote:

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then
I need it
to return as blank. If false (no date in that range), then I want
it to
return "Yes".

Thank you.- Hide quoted text -

- Show quoted text -





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default If formula

That works! Thank you so much!!!!

"Pete_UK" wrote:

I suppose you are getting "Yes" with dates of 1st April? You need to amend
the first part of the formula so that it is "=", i.e.:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

It would be a bit easier to modify for other months if you change it further
to this:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,5,1))0,"","Yes")

i.e. the first date is the 1st of the month you are interested in, the
second date is the first of the next month, and both COUNTIFs are now
looking at "=" the date.

Hope this helps.

Pete


"hmsawyer" wrote in message
...
That is better, but it is only returning Yes even when there are dates in
April in the line.

Any other thoughts?

"Pete_UK" wrote:

Try it this way:

=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

Hope this helps.

Pete

On Mar 24, 10:50 pm, hmsawyer
wrote:
That doesn't work either. I'm still getting #VALUE. Thanks.



"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")

"hmsawyer" wrote:

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then
I need it
to return as blank. If false (no date in that range), then I want
it to
return "Yes".

Thank you.- Hide quoted text -

- Show quoted text -





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default If formula

This works, but now I think it would be better if instead of all the cells
saying "yes" now, only to go to yes after the end of that particular month.

So it would remain blank until 5.1.08, at which time the data would
automatically populate for April. (I changed the blank for a false arguement
to "no".)

Thanks again for all of your help.

"Pete_UK" wrote:

I suppose you are getting "Yes" with dates of 1st April? You need to amend
the first part of the formula so that it is "=", i.e.:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

It would be a bit easier to modify for other months if you change it further
to this:

=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,5,1))0,"","Yes")

i.e. the first date is the 1st of the month you are interested in, the
second date is the first of the next month, and both COUNTIFs are now
looking at "=" the date.

Hope this helps.

Pete


"hmsawyer" wrote in message
...
That is better, but it is only returning Yes even when there are dates in
April in the line.

Any other thoughts?

"Pete_UK" wrote:

Try it this way:

=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")

Hope this helps.

Pete

On Mar 24, 10:50 pm, hmsawyer
wrote:
That doesn't work either. I'm still getting #VALUE. Thanks.



"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")

"hmsawyer" wrote:

This formula is not working. Can you please help me correct it?

=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")

If any cell in the line has a date of 4/1/08-4/31/08 entered, then
I need it
to return as blank. If false (no date in that range), then I want
it to
return "Yes".

Thank you.- Hide quoted text -

- Show quoted text -





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If formula

You're welcome - thanks for feeding back.

Pete

On Mar 25, 1:14*pm, hmsawyer
wrote:
That works! *Thank you so much!!!!



"Pete_UK" wrote:
I suppose you are getting "Yes" with dates of 1st April? You need to amend
the first part of the formula so that it is "=", i.e.:


=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")


It would be a bit easier to modify for other months if you change it further
to this:


=IF(COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,"="&DATE(2008,5,1))0,"","Yes")


i.e. the first date is the 1st of the month you are interested in, the
second date is the first of the next month, and both COUNTIFs are now
looking at "=" the date.


Hope this helps.


Pete


"hmsawyer" wrote in message
...
That is better, but it is only returning Yes even when there are dates in
April in the line.


Any other thoughts?


"Pete_UK" wrote:


Try it this way:


=IF(COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,1)) -
COUNTIF('Employee Attendance'!3:3,""&DATE(2008,4,30))0,"","Yes")


Hope this helps.


Pete


On Mar 24, 10:50 pm, hmsawyer
wrote:
That doesn't work either. *I'm still getting #VALUE. *Thanks.


"Mike" wrote:
Try this.
=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/2008"),'Employee
Attendance'!3:3<DATEVALUE("4/31/2008")),"","Yes")


"hmsawyer" wrote:


This formula is not working. *Can you please help me correct it?


=IF(AND('Employee Attendance'!3:3DATEVALUE("4/1/08"),'Employee
Attendance'!3:3<DATEVALUE("4/31/08")),"","Yes")


If any cell in the line has a date of 4/1/08-4/31/08 entered, then
I need it
to return as blank. *If false (no date in that range), then I want
it to
return "Yes".


Thank you.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"