+ Reply to Thread
Results 1 to 7 of 7

Vlookup for multiple excel files : dates are in 'number' format

  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    28

    Vlookup for multiple excel files : dates are in 'number' format

    Hello,

    With some help, I am able to create a Vlookup for multiple excel files.
    However, I still have a problem if I work with dates. Instead of having the data in 'data format', excel always give me a 'number format'.

    Someone have an idea how I can change it to 'data format'?

    Vlookup.xlsx File 1.xlsx File 2.xlsx File 3.xlsx


    Many thanks,
    Rgds,
    Mathieu
    Last edited by mathieuv; 07-05-2013 at 03:17 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Vlookup for multiple excel files : dates are in 'number' format

    try vlookup() *1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    03-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Vlookup for multiple excel files : dates are in 'number' format

    I have tried:

    =IFERROR(VLOOKUP(A5;'[File 1.xlsx]Sheet1'!$A$2:$D$4;3;0)*1;"")&IFERROR(VLOOKUP(A5;'[File 2.xlsx]Sheet1'!$A$2:$D$4;3;0)*1;"")&IFERROR(VLOOKUP(A5;'[File 3.xlsx]Sheet1'!$A$2:$D$4;3;0)*1;"")

    =IFERROR(VLOOKUP(A3*1;'[File 1.xlsx]Sheet1'!$A$2:$D$4;3;0);"")&IFERROR(VLOOKUP(A3*1;'[File 2.xlsx]Sheet1'!$A$2:$D$4;3;0);"")&IFERROR(VLOOKUP(A3*1;'[File 3.xlsx]Sheet1'!$A$2:$D$4;3;0);"")

    =IFERROR(VLOOKUP(A4;'[File 1.xlsx]Sheet1'!$A$2:$D$4;3;0);"")*1&IFERROR(VLOOKUP(A4;'[File 2.xlsx]Sheet1'!$A$2:$D$4;3;0);"")*1&IFERROR(VLOOKUP(A4;'[File 3.xlsx]Sheet1'!$A$2:$D$4;3;0);"")*1


    They give me the same result, data is still in 'number format'.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup for multiple excel files : dates are in 'number' format

    Take control of the output.


    =YourCurrentVlookupFormulas (that result in getting a date value from one of the sheets).

    Now format that number back into a date display of your choosing.

    1) Just format the CELL with the date value desired.

    or

    2) =TEXT(YourCurrentVlookupFormulas, "MM/DD/YYYY")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    03-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Vlookup for multiple excel files : dates are in 'number' format

    Thanks for your help JBeaucaire, really appreciate it

    But I cannot follow your first step.

    I have entered following code:
    =TEXT(IFERROR(VLOOKUP(A2;'C:\Users\verkenm\Desktop\[File 1.xlsx]Sheet1'!$A$2:$D$4;3;0);"")&IFERROR(VLOOKUP(A2;'C:\Users\verkenm\Desktop\[File 2.xlsx]Sheet1'!$A$2:$D$4;3;0);"")&IFERROR(VLOOKUP(A2;'C:\Users\verkenm\Desktop\[File 3.xlsx]Sheet1'!$A$2:$D$4;3;0);"");"DD/MM/YYYY")

    Now it's in a data format, but the year is not visible. You can see it in attachment.

    Vlookup.xlsx

  6. #6
    Registered User
    Join Date
    03-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Vlookup for multiple excel files : dates are in 'number' format

    I have found it, it's JJJJ instead of YYYY.
    Many thanks!!

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup for multiple excel files : dates are in 'number' format

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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