ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   nested if (https://www.excelbanter.com/excel-programming/354606-nested-if.html)

[email protected][_2_]

nested if
 
Hi, if I have 10 cells numbered 1 to 10, and I want to tell if the last
3 values are smaller then each other, how do I do this. If a10a9 and
a9a8 answer = 1.
Regards Robert


Paul987[_11_]

nested if
 

If(and(a10<A9,A9<A8,A8<A7),1,"")


--
Paul987
------------------------------------------------------------------------
Paul987's Profile: http://www.excelforum.com/member.php...o&userid=24850
View this thread: http://www.excelforum.com/showthread...hreadid=517366


Tom Ogilvy

nested if
 
or for just 3 values with the last (A10) the largest:

=If(and(a10A9,A9A8),1,"")


--
Regards,
Tom Ogilvy


"Paul987" wrote in
message ...

If(and(a10<A9,A9<A8,A8<A7),1,"")


--
Paul987
------------------------------------------------------------------------
Paul987's Profile:

http://www.excelforum.com/member.php...o&userid=24850
View this thread: http://www.excelforum.com/showthread...hreadid=517366




[email protected][_2_]

nested if
 
Thanks for your reply, this is great.
Regards Robert



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

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