+ Reply to Thread
Results 1 to 3 of 3

Computer's regional format changes function output

  1. #1
    Registered User
    Join Date
    09-26-2016
    Location
    Holland, MI
    MS-Off Ver
    Office 2013
    Posts
    5

    Computer's regional format changes function output

    Hello, I'm having trouble with a document that is used in several countries. It was made in the US and when using the computer's region and language format for English (United States), everything works as expected. Once it is changed or opened with Spanish (Mexico) settings, the VBA function does not output as expected. See the code below. I realize it is needlessly complicated, but it should still be counting correctly. The goal is to summarize a much larger table to show how many items in which phases are complete/overdue/upcoming. As soon as I switch the formats, one cell showing a count of 1 immediately changes to 0 upon recalculating. The issue seems to come from the red text line not reporting as true in the countifs function, but I'm not positive. I know that dates are formatted differently in the US (mm/dd/yyyy) vs. Mexico (dd/mm/yyyy), but I would think as long as they all change together, there wouldn't be a problem. I've been staring at this all morning, can anyone offer some advice?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Computer's regional format changes function output

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-26-2016
    Location
    Holland, MI
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Computer's regional format changes function output

    Okay, I had a lot of desensitization to do, but I can still recreate it with the attached file. To recreate the issue, open the file and switch your computer's regional format settings (Control Panel > Region and Language > Format tab > Format) from English (US) to Spanish (Mexico) and you'll see the dashboard summary at the top change it's calculation. In my mind, this shouldn't be changing.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. format output with text function?
    By jackf-nc in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-10-2017, 12:28 AM
  2. Force Format decimal to (.) regardless of regional settings
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-01-2015, 02:33 PM
  3. Date format and regional settings
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2014, 03:22 AM
  4. Macro to create CSV - Problems with spanish regional format
    By jazodio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2012, 09:31 AM
  5. Regional Date Format
    By Chipcom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2007, 03:26 PM
  6. Date not converting to regional format
    By Bill Sturdevant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2005, 11:05 AM
  7. regional number format
    By sidb in forum Excel General
    Replies: 0
    Last Post: 09-03-2005, 01:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1