Hi,
Thank you in advance if anyone has time to help me with this.
I use 'vlookup' to look up a table where
-Lookup_value is a date formatted as English (United States) Type
14-Mar-01 -
and the column in the
-Table_Array is also formatted as English (United States) Type
14-Mar-01 -
I am in the UK and I get the desired results from the look up but when
my colleague in the US tries, he gets results where the month and day
seem to be transposed - even though the cells have been formatted as US
dates.
Can anyone throw any light on this please.
Thanks.--
manse
------------------------------------------------------------------------
manse's Profile: www.excelforum.com/member.php...oamp;userid=22866
View this thread: www.excelforum.com/showthread...hreadid=502034Hi Manse,
You don't format as UK or USA, you format as quot;dd-mmm-yyyyquot; or quot;dd-mm-yyquot; or
whatever.
But this is just formatting; the underlying value is what is used in the
VLOOPKUP (normally, but unfortunately you didn't give us your formula); that
is always the number of days since 1-1-1900 (roughly).
So the VLOOKUP should work.
There used to be an issue with formatting dates in older versions of Excel,
I don't know about recent versions: if the formatting happened to be the
standard date for your system, Excel just remembered quot;Standard datequot; and so
on the other system used the Standard date of *that* system, no matter what
you originally specified. But again, the VLOOKUP should work, UNLESS there
is a TIME part involved, which may be present, but not show.
What is the formula of your VLOOKUP? What are the input values? What if you
format them as General? What result did you expect and what did you get
instead?--
Kind regards,
Niek Otten
quot;mansequot; gt; wrote in
message ...
gt;
gt; Hi,
gt;
gt; Thank you in advance if anyone has time to help me with this.
gt;
gt; I use 'vlookup' to look up a table where
gt;
gt; -Lookup_value is a date formatted as English (United States) Type
gt; 14-Mar-01 -
gt;
gt; and the column in the
gt;
gt; -Table_Array is also formatted as English (United States) Type
gt; 14-Mar-01 -
gt;
gt; I am in the UK and I get the desired results from the look up but when
gt; my colleague in the US tries, he gets results where the month and day
gt; seem to be transposed - even though the cells have been formatted as US
gt; dates.
gt;
gt; Can anyone throw any light on this please.
gt;
gt; Thanks.
gt;
gt;
gt; --
gt; manse
gt; ------------------------------------------------------------------------
gt; manse's Profile:
gt; www.excelforum.com/member.php...oamp;userid=22866
gt; View this thread: www.excelforum.com/showthread...hreadid=502034
gt;
Thanks Niek,
It seems as though the problem does lie with the 'system.'
My regional settings in my Control Panel are English (United Kingdom)
and the spreadsheet was created on my computer using this setting. The
setting of my colleague is English (United States) so when his copy of
the spreadsheet sees 10/03/2003, it returns the values for the 3rd
October instead of 10th March.
For obvious reasons I am not keen to change my regional settings
'globally' on my computer but I wonder if there is a way to test this
(all the results point toward this being the problem).
Example:
I enter 8-Mar-02 and my US colleague gets results for 3-Aug-02
I enter 26-Jun-03 and my US colleague gets #VALUE! (as there is no 26th
month)
Since most people using this spreadsheet will be in the US, I would
then like to be able to re-create the spreadsheet in 'US format' so it
works correctly for them.
Many thanks again for your help with this.--
manse
------------------------------------------------------------------------
manse's Profile: www.excelforum.com/member.php...oamp;userid=22866
View this thread: www.excelforum.com/showthread...hreadid=502034The international settings shouldn't be a problem; Excel stores dates in a
language-independent way.
Problems can occur when you manipulate dates in VBA, when you convert (back)
to text, or when you simulate dates using numbers or text, not using Excel's
built-in date features.
Can you give examples of your table, impute date, formula and results?
--
Kind regards,
Niek Otten
quot;mansequot; gt; wrote in
message ...
gt;
gt; Thanks Niek,
gt;
gt; It seems as though the problem does lie with the 'system.'
gt;
gt; My regional settings in my Control Panel are English (United Kingdom)
gt; and the spreadsheet was created on my computer using this setting. The
gt; setting of my colleague is English (United States) so when his copy of
gt; the spreadsheet sees 10/03/2003, it returns the values for the 3rd
gt; October instead of 10th March.
gt;
gt; For obvious reasons I am not keen to change my regional settings
gt; 'globally' on my computer but I wonder if there is a way to test this
gt; (all the results point toward this being the problem).
gt;
gt; Example:
gt;
gt; I enter 8-Mar-02 and my US colleague gets results for 3-Aug-02
gt;
gt; I enter 26-Jun-03 and my US colleague gets #VALUE! (as there is no 26th
gt; month)
gt;
gt; Since most people using this spreadsheet will be in the US, I would
gt; then like to be able to re-create the spreadsheet in 'US format' so it
gt; works correctly for them.
gt;
gt; Many thanks again for your help with this.
gt;
gt;
gt; --
gt; manse
gt; ------------------------------------------------------------------------
gt; manse's Profile:
gt; www.excelforum.com/member.php...oamp;userid=22866
gt; View this thread: www.excelforum.com/showthread...hreadid=502034
gt;
- Jan 12 Mon 2009 20:48
VLOOKUP using date problem
close
全站熱搜
留言列表
發表留言