How to check if first character in a cell is a letter or number in Excel?
This article is talking about checking if the first character in a cell is a letter or number in Excel. Please do as follows.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
You can apply the following formulas to check if the first character in a cell is a letter or number in Excel.
1. Select a blank cell for placing the checking result, then enter formula =IF(ISERR(LEFT(A2,1)*1),"letter","number") into the Formula Bar, and then press the Enter key. See screenshot:
Note: In the formula, A2 is the cell contains the value you need to check.
2. Keep selecting the result cell, drag the Fill Handle down until all corresponding cells are checked.
You will get a result which displayed as letter if the cell value begins with letter. Otherwise, you will get the result displayed as number as below screenshot shown.
Note: If the first character of specified cell is a special character, please apply the following formula =IF(A2="","",IF(AND(CODE(LEFT(A2,1))>=48,CODE(LEFT(A2,1))<=57),"Number",IF(OR(AND(CODE(LEFT(A2,1))>=65,CODE(LEFT(A2,1))<=90),AND(CODE(LEFT(A2,1))>=97,CODE(LEFT(A2,1))<=122)),"Letter","Other"))) to get the results. See screenshot:
- How to check if a certain range name exists in Excel?
- How to check if a cell value is between two values in Excel?
- How to check if cell begins or ends with a specific character in Excel?