LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Format Cell contents as MM

Hello
I have a monthly file My File mm-yyyy.xls. I am trying to reference last
months file using cell C1 (Named month) and indirect.ext using
cell("FILENAME'). The month portion of the formula is evaluating to 01 no
matter the month.
My formula:
=INDIRECT.EXT("'"&LEFT(CELL("FILENAME",A1),FIND("-",CELL("FILENAME",A1))-3)&TEXT((MO-1),"MM")&"-"&YR&".xls]Monthly Summary'!$"&"b$37")

What should I change in TEXT((MO-1) so it will evaluate to the previous
month. I realize that January will be a problem and plan on manually
entering the values unless some one has a suggestion for that too.

Thanks!!!
 
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
Conditional format if change to contents of cell Sunnyskies Excel Discussion (Misc queries) 2 June 18th 08 10:50 AM
How do I format one cell based on contents in another cell in Exce janet686 Excel Discussion (Misc queries) 2 April 13th 07 06:20 PM
Can I format a row based on the contents of one cell? Kirsty Excel Discussion (Misc queries) 1 May 23rd 06 02:57 PM
Conditionally format one cell for contents of another? Basher Bates Excel Worksheet Functions 2 May 6th 06 07:39 PM
Copying format to a new cell, w/o overwriting destination cell contents James C Excel Discussion (Misc queries) 1 October 18th 05 08:02 PM


All times are GMT +1. The time now is 02:01 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"