MID Function is Letter or Number

MTSDavid

New Member
Joined
Nov 17, 2015
Messages
13
Hello I am fairly new to formula in Excel

Is is possible to use the MID function to find out if say character 6 is a letter (A,B,C etc) or a numeral (1,2,3,4 etc)

in the example below the letter could be any of the 26 letters of the alphabet
and numbers could be any 0 - 9

12516VBRAKAK


1254516VBRAKAK

1ST line has 5 numbers then changes to Alphabet
2nd line as 7 numerals the chances to alphabet

thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi, you can use this to determine if the 6th character is a number (TRUE) or not (FALSE).

=ISNUMBER(0+MID(A1,6,1))
 
Upvote 0
Hello

thanks for the reply, unfortunately it does not work, could this be because the cell contents are not seen as number?


David
 
Upvote 0
Hello

thanks for this suggestion, this does work, what does the 0+ actually do to the formula?

David
 
Upvote 0
what does the 0+ actually do to the formula?

Hi, MID() will always return text so ISNUMBER() will always return FALSEE without some extra steps to convert the value it returns to a number. With Excel, if we perform a mathematical operation on text that looks like a number Excel will automatically convert it to a number - the "0+" step performs this operation.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top