Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or, a UDF
=gsm(G17,"BNF:","ID:") Function gsm(rng, FT, ST) gsm = Trim(Split(Split(rng, FT)(1), ST)(0)) End Function -- Don Guillett Microsoft MVP Excel SalesAid Software "Rick Rothstein" wrote in message ... Try this... BeneficiaryName = Trim(Split(Split(BankRecordText, "BNF:")(1), "ID:")(0)) where BankRecordText is the text you posted. -- Rick (MVP - Excel) "Curious" wrote in message ... This is a record from bank statement: WIRE TYPE:FX OUT DATE:081104 TIME:1701 ET TRN:2008103100323691 FX:GBP 92.83 1.624484 BNF:ZEN INTERNET LTD ID:29366585 BNF BK:NATWEST BANK ID:SC010744 PMT DET:0000002005115610FROM JUPITERRESEARCH PRO-FORMA NUMBER 6290280 I want to use Function or Code to get ZEN INTERNET LTD, that is the words between BNF and ID. Beneficiary's name could be 2, words, 3 words, 4 words, so that there is no pattern. How could I do this? Please advise. Thanks a lot! H.Z.. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
second word in a string | Excel Discussion (Misc queries) | |||
Matching CELL text (full word) to full word in string in another | Excel Programming | |||
How do I extract a word from a string? | Excel Programming | |||
WORD-DELIMITED string vba macro for excel/word | Excel Programming | |||
identify a word in a string then change the format of that word | Excel Programming |