Remove specific digits in a number using a basic formula.

Anonymous
2023-05-16T02:28:16+00:00

Greetings I have a 8 digit characters that can begin with 0. I would like to remove the first, third, and fourth character. For example 97000048 would become 70048,

88000266 would be 80266.

Thank you so much,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-16T03:02:02+00:00

    Dear Embry,

    I'm Ibhadighi and i'd happily help you with your question. In this fdorum, we are Microsoft consumers just like yourself.

    You can use a formula that combines the LEFT, MID, and RIGHT functions to remove the first, third, and fourth characters from an 8-digit number. Here’s an example formula that you can use:

    =LEFT(A1,1)&MID(A1,5,1)&RIGHT(A1,3)

    This formula assumes that the 8-digit number is in cell A1. It extracts the first character using the LEFT function, the fifth character using the MID function, and the last three characters using the RIGHT function.

    The & operator concatenates these characters to form the final result.

    For example, if cell A1 contains the number 97000048, the formula will return 70048. If cell A1 contains the number 88000266, the formula will return 80266.

    You can adjust the cell reference in the formula to fit your data.

    Please let me know if this helps or if you have any further questions.

    Best Regards, IBHADIGHI

    Give back to the community. Help the next person with this problem by inicating whether this answer solved your problem.d Click Yes or No at the bottom.

    6 people found this answer helpful.
    0 comments No comments
  2. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2023-05-17T03:02:35+00:00

    Hi,

    In cell B2, enter this formula

    =LET(seq,SEQUENCE(LEN(A2)),TEXTJOIN("",TRUE,INDEX(DROP(MID(A2,SEQUENCE(10,,0),1),1),FILTER(seq,ISERROR(MATCH(seq,{1,3,4},0))),1)))

    hope this helps.

    1 person found this answer helpful.
    0 comments No comments