![]() |
|
#1
|
|||
|
|||
![]()
I have the following cell of text bRef:0261322cRef:0261322TestDate
I want to extract the numbers between bRef: and cRef: ie.0261322 This string is of characters is not always the same length. I am using the formula below but it won't work as it's numbers being returned. Any ideas on how to do this? =MID(N4,FIND("Bref:",N4)+4,(FIND("Cref:",N4)-(FIND("Bref:",N4)+4))) |
#2
|
|||
|
|||
![]()
=mid(n4,find(":",n4)+1,find(":",n4,find(":",n4)+1)-5-find(":",n4))
|
#3
|
|||
|
|||
![]()
I cannot use just the colon as I have many colons in the string. I need to search for the specific text.
|
#4
|
||||
|
||||
![]()
The easy way:
Ctrl+H Replace what :"bRef:" (no quotes) With : (leave empty) Replace All Ctrl+H Replace what :"cRef:*" (no quotes) With : (leave empty) Replace All
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
|||
|
|||
![]()
Then maybe:
=MID(N4,FIND(A1,N4)+LEN(A1)+1,FIND(A2,N4)-LEN(A2)-2) where A1 = bRef and A2 = cRef. |
![]() |
Tags |
substring |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I edit my TOC to reference the section numbers instead of the page numbers??? | mikey386 | Word | 0 | 12-17-2014 02:34 PM |
Search a cell that contains words and numbers and convert the numbers to metric | Carchee | Excel Programming | 36 | 10-08-2014 03:16 PM |
How to change the formatting of numbers without changing the numbers? | sullengirl | Word | 2 | 01-27-2014 03:06 PM |
How do I refer to page numbers, when the numbers change as I prepare the document? | StevenD | Word | 5 | 11-29-2012 12:52 AM |
![]() |
gracie5290 | Word | 1 | 02-02-2012 11:41 PM |