ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   microsoft excel 2007 (https://www.excelbanter.com/excel-worksheet-functions/183890-microsoft-excel-2007-a.html)

confusious

microsoft excel 2007
 
How do I fomulate "2 years but less than 4 years" using nested if/and?

OssieMac

microsoft excel 2007
 
The following returns TRUE if A1 is equal to or greater than 2 and equal or
less than 4.

=IF(AND(A1=2,A1<=4),TRUE,FALSE)
--
Regards,

OssieMac


"confusious" wrote:

How do I fomulate "2 years but less than 4 years" using nested if/and?


BoniM

microsoft excel 2007
 
If cell A1 contained number of years:
=IF(AND(A1=2,A1<4),...

if cell A1 contains a date and you're comparing to todays date:
=IF(AND(TODAY()-A1=730,TODAY()-A1<1461),...


Confusious" wrote:

How do I fomulate "2 years but less than 4 years" using nested if/and?


Tyro[_2_]

microsoft excel 2007
 
Read a book on elementary Excel?

"confusious" wrote in message
...
How do I fomulate "2 years but less than 4 years" using nested if/and?





All times are GMT +1. The time now is 07:47 AM.

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