LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
KR KR is offline
external usenet poster
 
Posts: 11
Default PC date format (M, MM vs. MMM) messes up formula...

We have over 200 Excel files on a server (for different areas of the
company) that include the formula below. Our computers, by default, have the
windows date setting of M/d/yyyy (or some may have MM/dd/yyyy?). Our
organization just changed policy to avoid day/month vs month/day confusion
with dates, and now all PCs must have the month spelled out, such as
MMM-dd-yyyy or dd-MMM-yyyy.

The problem is that when a PC's system date setting is changed to MMM
instead of MM or M, the following formula no longer works. The original
intent of the formula is to identify all entries that were made in the
current quarter, and sum up the totals

{=SUM(IF(TRUNC((MONTH(A$12:A38)-1)/3,0)+1=TRUNC((MONTH(NOW())-1)/3,0)+1,F$12
:F38,0))}

Where Column A has the date the entry was made, and Column F has the value
being summed.

I used "evaluate formula" and it comes up with #value for MONTH(A$12:A38)
when the system setting is MMM, but calculates fine when using MM or M

Unfortunately, the data being pushed into column A (from a userform) may
have to segue over to MMM format as well for compliance to the policy, so in
addition to finding a way to make the formula work when the machine system
setting is changed, I need the formula to work under either system setting,
and also regardless of the format of Column A.

Our users are all using Excel 2003, on either Win2000 or WinXP.

Any suggestions would be _greatly_ appreciated!!
Thanks,
Keith
--
The enclosed questions or comments are entirely mine and don't represent the
thoughts, views, or policy of my employer. Any errors or omissions are my
own.


 
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
Sort messes up pictures hdille Excel Discussion (Misc queries) 1 March 23rd 10 12:00 PM
link messes with text format Hernan Excel Discussion (Misc queries) 0 December 26th 07 08:59 PM
auto-filter messes up the formulas Drew2006 Excel Discussion (Misc queries) 1 September 6th 06 08:58 AM
saving messes up my command buttons eyecalibrate[_9_] Excel Programming 0 May 7th 06 12:16 PM
I need today's date returned as date format in formula CMIConnie Excel Discussion (Misc queries) 2 February 23rd 06 04:38 PM


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