ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date in formula (https://www.excelbanter.com/excel-programming/405376-date-formula.html)

Eucalypta

Date in formula
 
Dear readers,

Cel B4 contains a date (format 11-01-08), Cel L4 contains order#, Cel Q4
contains formula =IF(AND(B4NOW()-60);L4="";"Alarm!!!")

I was trying to get the word Alarm if the date in B4 is at least today+2
months. The formula returns a value TRUE. I want the cel Q4 to be empty as
long as the
condition is not met. Can anyone please tell me how to let Excel know what I
want? Thanks in advance.
--


Nigel[_2_]

Date in formula
 
=IF(AND(B4NOW()-60,L4=""),"Alarm!!!","")

--

Regards,
Nigel




"Eucalypta" wrote in message
...
Dear readers,

Cel B4 contains a date (format 11-01-08), Cel L4 contains order#, Cel Q4
contains formula =IF(AND(B4NOW()-60);L4="";"Alarm!!!")

I was trying to get the word Alarm if the date in B4 is at least today+2
months. The formula returns a value TRUE. I want the cel Q4 to be empty as
long as the
condition is not met. Can anyone please tell me how to let Excel know what
I
want? Thanks in advance.
--



Niek Otten

Date in formula
 
=IF(AND(B4NOW()+60,L4=""),"Alarm!!!","")

Gives alarm if B4 is more than 60 days later than today and L4 is empty. If you meant L4 not empty, change L4="" to L4<""

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Eucalypta" wrote in message ...
| Dear readers,
|
| Cel B4 contains a date (format 11-01-08), Cel L4 contains order#, Cel Q4
| contains formula =IF(AND(B4NOW()-60);L4="";"Alarm!!!")
|
| I was trying to get the word Alarm if the date in B4 is at least today+2
| months. The formula returns a value TRUE. I want the cel Q4 to be empty as
| long as the
| condition is not met. Can anyone please tell me how to let Excel know what I
| want? Thanks in advance.
| --
|



Eucalypta

Date in formula
 
Hi Niek,

Thanks for the response. I indeed want the Alarm when L4 is empty.
KG, Eucalypta
--


"Niek Otten" wrote:

=IF(AND(B4NOW()+60,L4=""),"Alarm!!!","")

Gives alarm if B4 is more than 60 days later than today and L4 is empty. If you meant L4 not empty, change L4="" to L4<""

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Eucalypta" wrote in message ...
| Dear readers,
|
| Cel B4 contains a date (format 11-01-08), Cel L4 contains order#, Cel Q4
| contains formula =IF(AND(B4NOW()-60);L4="";"Alarm!!!")
|
| I was trying to get the word Alarm if the date in B4 is at least today+2
| months. The formula returns a value TRUE. I want the cel Q4 to be empty as
| long as the
| condition is not met. Can anyone please tell me how to let Excel know what I
| want? Thanks in advance.
| --
|




Eucalypta

Date in formula
 
Hi Nigel,

thank you for your kind response.

KG, Eucalypta
--
A smile will carry you around the wordl


"Nigel" wrote:

=IF(AND(B4NOW()-60,L4=""),"Alarm!!!","")

--

Regards,
Nigel




"Eucalypta" wrote in message
...
Dear readers,

Cel B4 contains a date (format 11-01-08), Cel L4 contains order#, Cel Q4
contains formula =IF(AND(B4NOW()-60);L4="";"Alarm!!!")

I was trying to get the word Alarm if the date in B4 is at least today+2
months. The formula returns a value TRUE. I want the cel Q4 to be empty as
long as the
condition is not met. Can anyone please tell me how to let Excel know what
I
want? Thanks in advance.
--




All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com