Using IFerror with Left formula to separate numbers from text

Emma Leigh 20 Reputation points
2025-02-05T10:01:12.54+00:00

I have an excel spreadsheet connected to an MS form and the MS form has options to choose for each question which pulls through into an excel table for example: -

1 - Doesn't understand Excel

Each answer always starts with either 1, 2, 3, 4 or Absent, followed by text as shown in the example above. Using a formula I would like to extract the number, in this example the "1" to a column to the right of the text.

The formula =LEFT(A2,1) works and brings back the number but for those answered with "Absent" instead of including a number I would like the column to be blank.

I have tried =IFERROR(LEFT,A2,1),"") but this is bringing back A into the column.

How can I formulate it so I just receive the numbers and leave the column blank for those that say "Absent"?

Thank you!!

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,763 questions
0 comments No comments
{count} votes

Accepted answer
  1. riny 260 Reputation points
    2025-02-05T12:38:56.61+00:00

    Try this:

    =IFERROR(LEFT(A2,1)*1,"")

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.