Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sheila
 
Posts: n/a
Default finding part of fole path

OK, here is what i have. I have a muisc list that I get from file
names from a playlist. i get the artist name and the song name from
the path of the file using playlist files (txt format), Now i want
the album name too. File name goes something like this:

d:\Music\Beatles\Rubber Soul\Beatles - Drive My Car.mp3

Album name is Rubber Soul and is always the last "path" entry before
the file name. Is there a formula that I can use to get "Rubber
Soul"??

TIA

Sheila
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default finding part of fole path

Hi!

Kind of ugly:

=MID(A1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1))+1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))-1-FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1)))

Biff

"sheila" wrote in message
...
OK, here is what i have. I have a muisc list that I get from file
names from a playlist. i get the artist name and the song name from
the path of the file using playlist files (txt format), Now i want
the album name too. File name goes something like this:

d:\Music\Beatles\Rubber Soul\Beatles - Drive My Car.mp3

Album name is Rubber Soul and is always the last "path" entry before
the file name. Is there a formula that I can use to get "Rubber
Soul"??

TIA

Sheila



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sheila
 
Posts: n/a
Default finding part of fole path

kind of ugly but works just fine Biff, thanks very much.

Sheila



On Sat, 3 Dec 2005 23:56:46 -0500, "Biff"
wrote:

Hi!

Kind of ugly:

=MID(A1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1))+1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))-1-FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1)))

Biff

"sheila" wrote in message
.. .
OK, here is what i have. I have a muisc list that I get from file
names from a playlist. i get the artist name and the song name from
the path of the file using playlist files (txt format), Now i want
the album name too. File name goes something like this:

d:\Music\Beatles\Rubber Soul\Beatles - Drive My Car.mp3

Album name is Rubber Soul and is always the last "path" entry before
the file name. Is there a formula that I can use to get "Rubber
Soul"??

TIA

Sheila



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default finding part of fole path

You're welcome. Thanks for the feedback!

Biff

"sheila" wrote in message
...
kind of ugly but works just fine Biff, thanks very much.

Sheila



On Sat, 3 Dec 2005 23:56:46 -0500, "Biff"
wrote:

Hi!

Kind of ugly:

=MID(A1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1))+1,FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))-1-FIND("~",SUBSTITUTE(A1,"\","~",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))-1)))

Biff

"sheila" wrote in message
. ..
OK, here is what i have. I have a muisc list that I get from file
names from a playlist. i get the artist name and the song name from
the path of the file using playlist files (txt format), Now i want
the album name too. File name goes something like this:

d:\Music\Beatles\Rubber Soul\Beatles - Drive My Car.mp3

Album name is Rubber Soul and is always the last "path" entry before
the file name. Is there a formula that I can use to get "Rubber
Soul"??

TIA

Sheila





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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use a cell value as part of a link's path name? Dave Excel Discussion (Misc queries) 1 October 4th 05 08:33 AM
I need help with an "If" Statement Whayne Excel Worksheet Functions 3 July 20th 05 09:25 PM
Part Number/Qty Consolidations [email protected] Excel Discussion (Misc queries) 2 February 6th 05 09:21 PM
How do link to a remote worksheet using the path value in a field? Michael T. Links and Linking in Excel 3 December 11th 04 08:45 AM
How do link to a remote field but use the path from a stored field Michael T. Excel Discussion (Misc queries) 1 December 10th 04 12:18 AM


All times are GMT +1. The time now is 05:57 PM.

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

About Us

"It's about Microsoft Excel"