Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 230587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:51:43+00:00 2026-05-11T19:51:43+00:00

i’m automating excel, using the macro system as a guide to what i should

  • 0

i’m automating excel, using the macro system as a guide to what i should do through automation. When i format a column as a date, the macro generated a NumberFormat for the column to be:

[$-409]m/d/yy h:mm AM/PM;@

i’m trying to decipher what this really means. i gather from googling, that the values in the square brackets are a “condition”, and that if the condition:

$-409

is met, then it will use the NumberFormat

m/d/yy h:mm AM/PM

if not, it uses the NumberFormat

@

The references i find say that the number format “@” is a Text Placeholder

So my questions are:

  1. What is the conditional $-409 testing? Is it comparing something against -409 (i.e. negative four hundred and nine), and if so, what is the dollar sign it’s comparing against?

  2. If the conditional fails, and it resorts to the Text Placeholder “at-sign”, what does it show as?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:51:43+00:00Added an answer on May 11, 2026 at 7:51 pm

    To clarify what others have said:

    The [$-409] is a locale code, given in hexadecimal. Prefixing a date with a certain locale code determines what is shown when you use the various date time format codes. For example using the date

    November 28, 1973 11:28:13 AM

    as an example for the following table:

    Format Code  409 (English United States)  804 (Chinese PRC)
    ===========  ===========================  =================
    m            11                           11
    mm           11                           11
    mmm          Nov                          十一月
    mmmm         November                     十一月
    d            27                           27
    dd           27                           27
    ddd          Mon                          二
    dddd         Monday                       星期二
    y            73                           73
    yy           73                           73
    yyy          1973                         1973
    yyyy         1973                         1973
    AM/PM        AM                           上午
    

    So in the end the same format code with two different locale identifiers, gives different results:

    [$-409]mmmm dd yyyy  h:mm AM/PM
    November 27 1973  11:28 AM
    
    
    [$-804]mmmm dd yyyy  h:mm AM/PM
    十一月 27 1973  11:28 上午
    

    Since finding a list of locale codes is like pulling teeth, here are some references:

    Language Identifier Constants and Strings (Primary source, archive.is)

    Windows Locale Codes Sorted by Locale (archive.is)

    Windows Locale Codes Sorted by Locale (archive.org, archive.is)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check the Windows Event Log to ensure that the Worker… May 11, 2026 at 8:48 pm
  • Editorial Team
    Editorial Team added an answer The SQL Wikipedia entry briefly describes some history: During the… May 11, 2026 at 8:48 pm
  • Editorial Team
    Editorial Team added an answer Use a smart pointer such as boost:shared_ptr , boost:scoped_ptr is… May 11, 2026 at 8:48 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.