ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Statement (https://www.excelbanter.com/excel-worksheet-functions/14518-if-statement.html)

Geeoff

IF Statement
 
Hi, I am trying to get this IF statement to work. Here is the thing...

=if(B:B=(1-34),"***",if(B:B=(35-48),"$$$",if(B:B=(49-54),"###","Nothing")))

As you can see in my formula, I can't figure out the way to have Excel
recognize the "value range" as a number (i.e. range of values --
B:B=(1-34)). Can you please tell me the best way to achieve this? Perhaps a
different function? Thanks for helping me out.

CLR

=IF(AND(MIN(B:B)=1,MAX(B:B)=34),"***",IF(AND(MIN(B :B)=35,MAX(B:B)=48),"$$$",
IF(AND(MIN(B:B)=49,MAX(B:B)=54),"###","Nothing")))

All one string...........watch out for the wordwrap...........

Vaya con Dios,
Chuck, CABGx3


"Geeoff" wrote in message
...
Hi, I am trying to get this IF statement to work. Here is the thing...


=if(B:B=(1-34),"***",if(B:B=(35-48),"$$$",if(B:B=(49-54),"###","Nothing")))

As you can see in my formula, I can't figure out the way to have Excel
recognize the "value range" as a number (i.e. range of values --
B:B=(1-34)). Can you please tell me the best way to achieve this?

Perhaps a
different function? Thanks for helping me out.





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

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