Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Formula to display all characters after the minus sign 1

Status
Not open for further replies.

LGMan

MIS
Aug 27, 2003
233
GB
Hi, I currently have cell values that look like 'AB-HOWDOYOU' however I only need to show the characters after the "-" so in this example that would be "HOWDOYOU"
I've been able to get around using a =Right(A2,8) type formula.

However I'd like something more robust in case the next load of data has 9 characters.

Any pointers?

Thanks
 
Try: =RIGHT(A2,LEN(A2)-FIND("-",A2))

This will return all the characters after the first - character.

cheers
 
Thanks for the prompt reply with a useful formula that does exactly what I needed. I've also found the Text to Column option which I can incorporate into a macro if needed.
Cheers :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top