In cell A1 i have the value ABC123.
I want to remove the 123.
Can you tell me how to do this?
Thanks!
Dave
In cell A1 i have the value ABC123.
I want to remove the 123.
Can you tell me how to do this?
Thanks!
Dave
Link may help
http://www.excelforum.com/showthread.php?t=619035
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
no, i'm looking to delete the 123 and just leave abc
Try this macro. Select cells and run
VBA NoobPlease Login or Register to view this content.
Takes hours to run that mate. I'm working on 60,000 rows or so.
Good morning davehunter
Well, you could always do it manually.Takes hours to run that mate
You have to remember that just because Microsoft have given you 64,000 rows you don't have to use all of them. If you have 60,000 rows, X number of columns and Y number of sheets then maybe Access is the right tool for the job.
Any type of macro is going to take a while to affect 60,000 rows in Excel 'cos of the way data is stored. It's a number cruncher - not a database.
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
Select the range.Originally Posted by davehunter
Press Ctrl+H
Find What: 1
Replace With: <leave it blank>
Press Replace All
Then change
Find what: 2 and press Replace All
and so on for all numbers (i-e 3, 4, 5, 6, 7, 8 and 9).
It will take not more than 20 seconds.
starguy
Tahir Aziz
PAKISTAN
https://www.facebook.com/businessexcel
__________________
Forum Rules (read before you post)
Links to the world of Excel
I have a cell A1 with value ABC123.
I have been provided with a function that will extract the numbers from this cell, and enter them as required.
In cell B1 if I enter =RemoveTexts(A1) the value 123 is left. Spot on.Please Login or Register to view this content.
I am now trying to do the opposite.
In C1 I want ABC to appear. Would IsText or something similar allow me to do this with the above function.
Thanks in advance.
Dave
Last edited by davehunter; 10-29-2007 at 04:32 PM.
Tryas this is a Boolean function.Please Login or Register to view this content.
Martin
Just returns 0Originally Posted by mrice
Please remember to follow the rules below by avoiding duplicate posts (Still not resolved this one) and post to the correct group
see if this mod works for you
Note will also be slow if used on 60000 rows
VBA NoobPlease Login or Register to view this content.
Last edited by VBA Noob; 10-29-2007 at 06:57 PM.
Originally Posted by VBA Noob
Thats brilliant thanks!
Dave
This function can be used to extract numbers from an alphanumeric cell:
Please Login or Register to view this content.
Think you mean this does
VBA NoobPlease Login or Register to view this content.
This will extract numbers i.e. keep them:
This will remove numbers i.e. keep text:Please Login or Register to view this content.
sortedPlease Login or Register to view this content.
Perfect, thank you so much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks