#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula

Dear All

I have a cell which contains quite a long reference number. The Number is
divided up into 5 sections, a " / " being the separator.

How do I extract what is between the 2nd "/" and the 3rd "/" ?

Heres hoping you can help.

Cheers

Darren

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula

Try this

=MID(A1,FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),2))+1,FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),3))-FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),2))-1)

Mike

"dazoloko via OfficeKB.com" wrote:

Dear All

I have a cell which contains quite a long reference number. The Number is
divided up into 5 sections, a " / " being the separator.

How do I extract what is between the 2nd "/" and the 3rd "/" ?

Heres hoping you can help.

Cheers

Darren

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula

Thanks Mike

Works a Treat

Mike H wrote:
Try this

=MID(A1,FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),2))+1,FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),3))-FIND(CHAR(7),SUBSTITUTE(A1,"/",CHAR(7),2))-1)

Mike

Dear All

[quoted text clipped - 8 lines]

Darren


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"