Share via

excel formula - find and remove all text after "char" if it exists not working if "char" doesn't exist

Anonymous
2022-04-27T22:34:09+00:00

Hi all

I have what I thought would be a very basic Excel formula to remove all text after a certian character, but I get the #VALUE! error if the character doesn't exist and I can't work out how to resolve.

In my case I want to I want to remove all characters after "("

This is a samle of a couple of the cells and what I want to see:

existing column cleaned colum

joe brown (343464) joe brown

fred smith fred smith

the formula I'm using is:

=LEFT(E5,FIND("(",E5)-2)

the problem is that if "(" does not exist e.g. in the fred smith row, I get #VALUE! error, I have tried using =IF(FIND("(",E3)>1,"1","0") but that gives the same error.

How can I resolve this?

Thanks

Microsoft 365 and Office | Excel | For business | 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

Answer accepted by question author

  1. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2022-04-27T23:16:02+00:00

    Hi,

    Try this

    =iferror(LEFT(E5,FIND("(",E5)-2),E5)

    Hope this helps.

    10+ people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-04-27T23:42:15+00:00

    Hi sossie07_33,

    First, my pleasure to assist you.

    As per your description, please refer to below screenshot and see if its help:

    I appreciate your understanding and stay safe!!

    Best regards

    Waqas Muhammad

    1 person found this answer helpful.
    0 comments No comments