I have cells with content such as "104684 - DIGITAL CAMERA." I need to extract the number and place it into another cell. Any assistance with a formula would be most appreciated, please.
Thank you.
I have cells with content such as "104684 - DIGITAL CAMERA." I need to extract the number and place it into another cell. Any assistance with a formula would be most appreciated, please.
Thank you.
Try this:
=TRIM(LEFT(A1,FIND("-",A1)-1))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
You need to give a few samples perhaps attach a workbook as per the yellow banner. for what you have given
left(a1,search(" ",a1,1)-1) would work as it is just the characters before the first space
or left(a1,search(" ",a1,1)-1) *1 to turn it into a number
this may not be representative of all your data tho
Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks