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

I have a large number of spreadsheets that are saved each month in a
particular directory. On each of the spreadsheets I would like the name of
the month to display. I believe the formula is =Mid(€śfilename€ť) to extract
the name from the filepath etc, but I cannot figure out how to automatically
make the whole name of the month appear. I know that the actual month starts
at character 85 and that immediately after the name of the month there is a
€ś\€ť. Is it possible give the information above for someone to help? TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 355
Default =Mid Formula

Chris can you post your entire file name?

"Chris waller" wrote:

I have a large number of spreadsheets that are saved each month in a
particular directory. On each of the spreadsheets I would like the name of
the month to display. I believe the formula is =Mid(€śfilename€ť) to extract
the name from the filepath etc, but I cannot figure out how to automatically
make the whole name of the month appear. I know that the actual month starts
at character 85 and that immediately after the name of the month there is a
€ś\€ť. Is it possible give the information above for someone to help? TIA

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default =Mid Formula


Perhaps

=MID(S,85,FIND("\",S,85)-85)

Where S is the string containing the file information.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




On Fri, 13 Feb 2009 10:57:20 -0800, Chris waller
wrote:

I have a large number of spreadsheets that are saved each month in a
particular directory. On each of the spreadsheets I would like the name of
the month to display. I believe the formula is =Mid(“filename”) to extract
the name from the filepath etc, but I cannot figure out how to automatically
make the whole name of the month appear. I know that the actual month starts
at character 85 and that immediately after the name of the month there is a
“\”. Is it possible give the information above for someone to help? TIA

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default =Mid Formula

Sandy,

I cannot post the full name as it is at work and I will not be there until
Monday, but I will try to remember and post it on Monday evening.

"Sandy" wrote:

Chris can you post your entire file name?

"Chris waller" wrote:

I have a large number of spreadsheets that are saved each month in a
particular directory. On each of the spreadsheets I would like the name of
the month to display. I believe the formula is =Mid(€śfilename€ť) to extract
the name from the filepath etc, but I cannot figure out how to automatically
make the whole name of the month appear. I know that the actual month starts
at character 85 and that immediately after the name of the month there is a
€ś\€ť. Is it possible give the information above for someone to help? TIA

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default =Mid Formula

Chip,

Thanks for that. I will give it a go on Monday. Thanks once again.

"Chip Pearson" wrote:


Perhaps

=MID(S,85,FIND("\",S,85)-85)

Where S is the string containing the file information.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




On Fri, 13 Feb 2009 10:57:20 -0800, Chris waller
wrote:

I have a large number of spreadsheets that are saved each month in a
particular directory. On each of the spreadsheets I would like the name of
the month to display. I believe the formula is =Mid(€śfilename€ť) to extract
the name from the filepath etc, but I cannot figure out how to automatically
make the whole name of the month appear. I know that the actual month starts
at character 85 and that immediately after the name of the month there is a
€ś\€ť. Is it possible give the information above for someone to help? TIA


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 01:10 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"