seperate items in a cell

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
826
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have the following in cells A1:a200:
abced=12345
efghi=12222
japfr=566232556
the amount of letters before the = sign is always the same, only the length of the number changes
Could I have a macro delete the letters and = sign and leave only the numbers, either in A or in B?
I only gave 3 examples because i didn't want to use up too much room :laugh:

Mike
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

As there is only 200 rows, a formula solution would be in B1 and copied down:

=RIGHT(A1,FIND("=",A1)-1)

HTH
Ian
 
Upvote 0
Hi crook_101
The formula works good until the length of numbers change after the = sign. Also, I had to change the "1" to delete some of the text.


Mike :confused:
 
Upvote 0
You could also use the Replace feature...

  • Select your cells A1:A200
  • Select from the menu; Edit\ Replace (Ctrl+H)
    • Replace what: *=
    • Replace with: < leave blank >
    • Replace All
 
Upvote 0
Thank you all for the help :biggrin:
I didn't know that I could use "find/replace" that way.

Mike :beerchug:
 
Upvote 0
variation

Excel Workbook
AB
15japfr=566232556566232556
1602154685japfr=25572557
17japfr=566232558566232558
18japfr=566232559566232559
19japfr=566232560566232560
20llsdjdjfjhfriroeojapfr=566232561566232561
21japfr=566232562566232562
22japfr=566232563566232563
23japfr=566232564566232564
24japfr=566232565566232565
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

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