how do I extract only certain data from a cell?
One possible problem... an entry like this: Oops 183AB18801
Rick
"Ragdyer" wrote in message
...
Try this:
=MID(A1,MIN(FIND({15,16,17,18,19,20000},A1&1516171 81920000)),5)
And copy down as needed.
This should work - as long as there are no spaces within the actual 5
digit
invoice number itself.
--
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Stan in South Africa" <me@there wrote in message
...
Office 2003, Win XP Pro.
I am presented with a worksheet containing dozens of cells in which is
contained data of different lengths. eg
Zippohat 52131123Sa011880702
Baker 18164
Renatsainv17247
15592 Inv
Each contains an invoice number, as follows:
18807
18164
17247
15592
These invoice numbers range between 15000 and 20000
Is there any way to extract only the invoice number from each cell.
|