Identify whether a column entry starts with a letter or a number

O177812

Board Regular
Joined
Apr 16, 2015
Messages
94
Office Version
  1. 365
  2. 2021
I am looking for a formula that I can add to a Custom Column to determine if each line in Column1 begins with a letter or a number.

I tried the below but it is not working:

= try if Value.Is(Number.From([Column1]), type number) then "number" else "not" otherwise "not"

Assistance is greatly appreciated.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Please try this:
Book1
ABC
1abcdefghijklmnopqrstuvwxyz
2123456789
3
4ladjf lajflakdjflafjLetter
5123Number
6A123Letter
71wwwdddNumber
8,87aj!Not
Sheet2
Cell Formulas
RangeFormula
C4:C8C4=IF(IFERROR(SEARCH(LEFT(A4,1),Alphabet),0)>0,"Letter",IF(IFERROR(SEARCH(LEFT(A4,1),Numbers),0)>0,"Number","Not"))
Named Ranges
NameRefers ToCells
Alphabet=Sheet2!$C$1C4:C8
Numbers=Sheet2!$C$2C4:C8
 
Upvote 0
To test if it begins with a number:

Power Query:
= try if Value.Is(Number.From(Text.Start([Column1], 1)), type number) then "number" else "not" otherwise "not"
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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