![]() |
|
#1
|
|||
|
|||
![]()
Hi,
I'm looking for a formula which helps me to extract text from a text string. ie: GBGD.6251.700001.netpay GBGD.6251.700001.paye GBGD.6251.700001.NI GBGD.6251.700008.pension contribution GBGD.6251.700020.EER GBGD.6251.700021.EEE And I'd like to extract only 700001,700008,700020& 700021. I've looked at MID,LEN ect but not sure how i can use those formula for this purpose. Can someone help me? I also attached the Excel example. Many thanks |
#2
|
|||
|
|||
![]()
With your data in A2:B7 enter in C2:
=--MID(A2,FIND(".",A2,FIND(".",A2)+1)+1,FIND(".",A2,F IND(".",A2,FIND(".",A2)+1)+1)-FIND(".",A2,FIND(".",A2)+1)-1) Copy down. |
#3
|
|||
|
|||
![]() Quote:
Just wondering why "--"? Many thanks |
#4
|
||||
|
||||
![]()
Or
Data Text to columns Fixed width Insert break lines In the last window select "Do not import" for the unnecessary columns
__________________
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
|
|||
|
|||
![]()
Or
=TRIM(LEFT(RIGHT(SUBSTITUTE(D4,".",REPT(" ",100)),200),100)) |
#6
|
|||
|
|||
![]() Quote:
Many thanks |
#7
|
||||
|
||||
![]()
There's more than one way to skin a cat
![]()
__________________
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 |
#8
|
|||
|
|||
![]()
All the more reason they have nine lives....
![]() |
#9
|
|||
|
|||
![]()
It's called a double unary and it's used to convert true/false to 1/0
This may be a good place to start with an explanation... Double Unary |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kirkm | Word VBA | 7 | 09-11-2016 06:13 PM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
How to extract only numbers from a STRING? | Learner7 | Excel | 3 | 07-02-2013 06:25 AM |
Extract numbers from a text string | aleale97 | Excel | 4 | 02-10-2011 10:33 AM |
Extract from String using Wildcard | whousedmy | Word | 0 | 05-21-2009 01:35 AM |