![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: houston, tx
Posts: 4
|
hi, id like to write what is perhaps a custom function - and perhaps an existing function or macro - to scan a cell, character by character.
for instance, the cell might contain: HAPPINESSVILLE 2880244-2378, RHUBARB i'd like to be able to delete everything but the number, and there are certain cases in which everything after the numbering starts AND before the comma should be retained. the heart of the matter is: im just trying to determine the simplest way to "scan" a string in a cell, character by character, and to implement simple conditionals based on that. thanks in advance, rs |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Care to give a bit more examples along with expected results?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|