ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help Programming Limit Constraint (https://www.excelbanter.com/excel-programming/369113-help-programming-limit-constraint.html)

Suz84[_2_]

Help Programming Limit Constraint
 

Hey All,

Just a quick question. I have a function called -IndexSim- and woul
like to set an IF statement so that it is inbetween two values
-UpperRange- and -LowerRange-. I have used the following:


VBA:
If IndexSim(Cnt) = LowerRange And IndexSim(Cnt) <= UpperRange Then

Is this correct, as I don't think it produces the outcome I want?

Please advise,

Many thanks,

Suz8

--
Suz8
-----------------------------------------------------------------------
Suz84's Profile: http://www.excelforum.com/member.php...fo&userid=3618
View this thread: http://www.excelforum.com/showthread.php?threadid=56741



All times are GMT +1. The time now is 12:06 PM.

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