Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm just trying to figure out the easiest way to just pull the text out of cells that have both text and numbers to leave just the number. (the letters are indiscriminately placed in the cell so I can't just chop off the beginning or end). I could do multiple incarnations of Selection.Replace like this: Selection.Replace What:="A", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False Selection.Replace What:="B", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False Selection.Replace What:="C", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False Selection.Replace What:="D", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False etc. to Z But I thought I'd ask to see if someone could provide me with a more elegant solution (like using an array). I googled for a better solution but to no avail. tia |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why are 1/2 my numbers imported as text and the rest as numbers? | Excel Discussion (Misc queries) | |||
Extract numbers from cell with Text and Numbers | New Users to Excel | |||
remove text from cell containing numbers | Excel Discussion (Misc queries) | |||
How can I remove diff. numbers from a cell combined with text | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |