Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default how to use wild card in if funtion

Hello

i have a question regards to using wild card in IF function

A
APPLE 1
APPLE A
APPLE 2
APPLE B

i wrote a formula like that would sort ablove like this
b2=APPLE NUMBER
b3=APPLE LETTER
b4=APPLE NUMBER
and etc.

thank you much!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default how to use wild card in if funtion

We can test the last character with ISNUMBER()

=LEFT(A1,LEN(A1)-1) & IF(ISNUMBER(--RIGHT(A1,1)),"NUMBER","LETTER")

and copy down
--
Gary''s Student - gsnu200767


"doyree" wrote:

Hello

i have a question regards to using wild card in IF function

A
APPLE 1
APPLE A
APPLE 2
APPLE B

i wrote a formula like that would sort ablove like this
b2=APPLE NUMBER
b3=APPLE LETTER
b4=APPLE NUMBER
and etc.

thank you much!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default how to use wild card in if funtion

Gary,

thank you very much for the formula
but how about when those digits or letters at the end has more than 1?
say
apple 123
apple ab
apple 1234
etc

thank you!!!

"Gary''s Student" wrote:

We can test the last character with ISNUMBER()

=LEFT(A1,LEN(A1)-1) & IF(ISNUMBER(--RIGHT(A1,1)),"NUMBER","LETTER")

and copy down
--
Gary''s Student - gsnu200767


"doyree" wrote:

Hello

i have a question regards to using wild card in IF function

A
APPLE 1
APPLE A
APPLE 2
APPLE B

i wrote a formula like that would sort ablove like this
b2=APPLE NUMBER
b3=APPLE LETTER
b4=APPLE NUMBER
and etc.

thank you much!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default how to use wild card in if funtion

=LEFT(A1,6) & IF(ISNUMBER(--RIGHT(A1,LEN(A1)-6)),"NUMBER","LETTER")

Note that the number 6 in the above formula is where the space is. If you
had an arbitrary word instead of APPLE, then we would use the FIND() function
to locate that space.
--
Gary''s Student - gsnu200767


"doyree" wrote:

Gary,

thank you very much for the formula
but how about when those digits or letters at the end has more than 1?
say
apple 123
apple ab
apple 1234
etc

thank you!!!

"Gary''s Student" wrote:

We can test the last character with ISNUMBER()

=LEFT(A1,LEN(A1)-1) & IF(ISNUMBER(--RIGHT(A1,1)),"NUMBER","LETTER")

and copy down
--
Gary''s Student - gsnu200767


"doyree" wrote:

Hello

i have a question regards to using wild card in IF function

A
APPLE 1
APPLE A
APPLE 2
APPLE B

i wrote a formula like that would sort ablove like this
b2=APPLE NUMBER
b3=APPLE LETTER
b4=APPLE NUMBER
and etc.

thank you much!!

Reply
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
Wild Card Vlookups [email protected] Excel Discussion (Misc queries) 2 January 7th 08 07:27 PM
wild card in sumproduct BNT1 via OfficeKB.com Excel Worksheet Functions 3 November 26th 07 04:10 AM
Wild Card Search roy.okinawa Excel Worksheet Functions 4 January 30th 06 10:42 PM
Wild card * Herman Excel Worksheet Functions 0 October 21st 05 01:39 PM
Wild Card and Dates hkslater Excel Worksheet Functions 2 November 12th 04 09:16 PM


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

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

About Us

"It's about Microsoft Excel"