LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Curalice
 
Posts: n/a
Default Get different numbers to return text??


In Col A, I have a list of 3 digit numbers eg:
110
111
112
113
115
116
120
Some numbers begin with 1, some with 2, 3 or 4.

I have two formula problems:

In Col B I want a formula to return "case 1, if the number begins with
1, "case 2" if 2, etc.
I tried variations of this formula but it I am missing something.
=IF((LEFT(A1)="4","case 4",""),(LEFT(A1)="3","case
3",""),(LEFT(A1)="2","case 2",""),(LEFT(A1)="1","case 1",""))

In Col C I want a similar result, except that "case 5", "case 6" etc.
would be correct for a mix of numbers, eg "case 5" would be the answer
for, say, any of 110 trrough 115, 315, 330, 410 or 411.

I hope that is clear. I am sure this is simple, but I am confused and
appreciate the help.
Thanks.


--
Curalice
------------------------------------------------------------------------
Curalice's Profile: http://www.excelforum.com/member.php...o&userid=28600
View this thread: http://www.excelforum.com/showthread...hreadid=503036

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When entering numbers as text jmcme Excel Discussion (Misc queries) 1 August 1st 05 10:15 PM
Convert text to numbers vipa2000 Excel Worksheet Functions 3 August 1st 05 09:01 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Match Last Occurrence of two numbers and Return Date Sam via OfficeKB.com Excel Worksheet Functions 6 April 5th 05 12:40 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"