#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.


=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula

I'd use this syntax:

=IF(AND(H5date(2008,9,24),H5<date(2008,9,24)),"ok ","xx")

But there aren't going to be any dates that are bigger than 9/24/2008 and
smaller than 9/24/2008 at the same time. (Maybe a typo???)



olives wrote:

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.

=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Formula

according to your formula you have contradicted yourself:

H5 is greater than 24th Sept and H5 is less than 24th Sept ????
Select the date you require in say another cell eg H6
Try this =if(and(H5H6,H5<H6),"OK","XX")

"olives" wrote:

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.


=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula

I need the formula to acknowledge the expiration date. Formula states "if
the expired column is greater than the expiration date than it is "ok" - if
it is less than it is "xx".

Dave I tried your suggestion and it worked with the expiration date of
1/1/2009, but not for the expiration date of 10/15/2005.

Thanks everyone for helping me to resolve this.
--
Olives


"leerem" wrote:

according to your formula you have contradicted yourself:

H5 is greater than 24th Sept and H5 is less than 24th Sept ????
Select the date you require in say another cell eg H6
Try this =if(and(H5H6,H5<H6),"OK","XX")

"olives" wrote:

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.


=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula

Maybe it's just:

=if(h6date(2005,10,15),"ok","xx")

I'm not sure why the formula would work for one date, but not another.

You may want to share the formulas you used.

olives wrote:

I need the formula to acknowledge the expiration date. Formula states "if
the expired column is greater than the expiration date than it is "ok" - if
it is less than it is "xx".

Dave I tried your suggestion and it worked with the expiration date of
1/1/2009, but not for the expiration date of 10/15/2005.

Thanks everyone for helping me to resolve this.
--
Olives

"leerem" wrote:

according to your formula you have contradicted yourself:

H5 is greater than 24th Sept and H5 is less than 24th Sept ????
Select the date you require in say another cell eg H6
Try this =if(and(H5H6,H5<H6),"OK","XX")

"olives" wrote:

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.


=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula

Dave you're the greatest! This formula worked. Thanks a million for all
your help :-)
--
Olives


"Dave Peterson" wrote:

Maybe it's just:

=if(h6date(2005,10,15),"ok","xx")

I'm not sure why the formula would work for one date, but not another.

You may want to share the formulas you used.

olives wrote:

I need the formula to acknowledge the expiration date. Formula states "if
the expired column is greater than the expiration date than it is "ok" - if
it is less than it is "xx".

Dave I tried your suggestion and it worked with the expiration date of
1/1/2009, but not for the expiration date of 10/15/2005.

Thanks everyone for helping me to resolve this.
--
Olives

"leerem" wrote:

according to your formula you have contradicted yourself:

H5 is greater than 24th Sept and H5 is less than 24th Sept ????
Select the date you require in say another cell eg H6
Try this =if(and(H5H6,H5<H6),"OK","XX")

"olives" wrote:

I entered the following formula in my spreadsheet - in the Expired column,
and it is not working. Is this not the right formula to use with dates.


=IF(AND(H59/24/2008,H5<9/24/2008),"ok","xx")



Expired Insured Type of Insurance Expiration Date

xx Company X General Liability 1/1/2009
xx Company X Workers Compensation 10/15/2005
--
Olives


--

Dave Peterson

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 01:51 PM.

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

About Us

"It's about Microsoft Excel"