Remove partial data from cells

palmer41420

New Member
Joined
Aug 16, 2012
Messages
14
Using Excel 2013:

I have a spreadsheet with values in this format. ="10/26"

This is not a calculated value. That is how it extracted from another database. I have over 100,000 values in this format so doing them individually not realistic.

I need a formula or process to extract only the 10. I would like to leave the original column as is and have a column next to it with the new value of 10 in this example.

I previously used Text to Columns but the original value was only 10/26. I can't get Text to Columns to work since there are = and ".

I found several posts using LEFT and SUBSTITUTE functions but could not figure out how to make it work for my situation.

Thanks in advance for your assistance.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Will the values always have that format? If so, and assuming your data starts in A1, in B1 try:

=MID(TRIM(A1),3,2)
 
Last edited:
Upvote 0
Will the values always have that format? If so, and assuming your data starts in A1, in B1 try:

=MID(TRIM(A1),3,2)

Thank you for your quick response.

I should have mentioned that the values will range from =" 0/26" to =" 26/26" so that formula will not work for all of my entries. This range is showing the number correct out of the number possible.

Also, I didn't realize there was a space between " and the first number. I adjusted your formula once I noticed my mistake to make it work for most of my entries.

Any other ideas since counting from the left will not work?
 
Upvote 0
Select the column, Replace "=_ (quote equals space) with nothing then use Text to Columns as you used to.

If there are more spaces, Replace *_ (asterisk space) with nothing instead.

Copy the original column into another column before processing.
 
Last edited:
Upvote 0
Select the column, Replace "=_ (quote equals space) with nothing then use Text to Columns as you used to.

If there are more spaces, Replace *_ (asterisk space) with nothing instead.

Copy the original column into another column before processing.

When I try that, it says it can't find any data to replace. The data displays as 10/26 in the column but when I click the cell it shows =" 10/26" for the value in the formula bar.
 
Upvote 0
Then try this:

Copy the column to process (say, column A), select the next column (B), and paste the copied column with PasteSpecial as Value in column B. Then with column B still selected, Replace /* with nothing. Hope this works now.
 
Upvote 0
Thanks for the suggestions. They all helped me figure it out. I used the suggestion of copying the column and pasting values in a neighboring column. I then used text to columns to separate the data using / as the delimiter.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top