Solved

simple formula but cannot get it work.

Posted on 2016-10-20
5
50 Views
Last Modified: 2016-10-20
the following is example of the data i have

i want to do a logical test to check whether the last 5 chars of cell string is numeric or text.

i do this =IF(ISTEXT(RIGHT(A2,5)+0),"Text","Numeric")  but it does not work.  


Column A
564654/AJJDNFD
8789788/5654554
0
Comment
Question by:excelismagic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 251 total points
ID: 41851908
=IF(NOT(ISNUMBER(--RIGHT(A2,5))),"Text","Numeric")
0
 
LVL 52

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 83 total points
ID: 41851913
Hi,

pls try
=IF(ISNUMBER(RIGHT(A2,5)+0),"Numeric","Text")

Open in new window

Regards
0
 
LVL 31

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 83 total points
ID: 41851919
Another one....
=IF(ISERROR(RIGHT(A2,5)+0),"Text","Numeric")

Open in new window

0
 
LVL 24

Assisted Solution

by:Brian B
Brian B earned 83 total points
ID: 41852048
The formulae above all seem to work. The issue was your proposed formula didn't allow for the fact that adding a number to text produces a #value error. So applying that to your formula, any time your LEFT()+0 function should have returned text, you got an error, which is not text. Thus ISTEXT() returned FALSE and thus you IF() function returned "numeric".
0
 
LVL 3

Author Closing Comment

by:excelismagic
ID: 41852132
thank you all.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question