+ Reply to Thread
Results 1 to 21 of 21

How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear All,

    Once again I am here to ask for help. This time, it is a little more complex.

    I need to import data, to a single file (number 01), from two differents daily files (they are always the same and come by email every day and could be salved .xls or .xlsx, I called them (02) and (03)); and other two files (they are filled out by hand, every day, one with data in three worksheets (04) and the other with only one worksheet (05), they are saved as .xlsx). I can work with all files open, it is not a problem.
    =IFERROR(VLOOKUP(... did not work. I do not have a clue about VBA. I believe the solution involves ISERROR, IFERROR and VLOOKUP, but how? You will realize that the greatest difficulty is the mixed lookup values, cods and dates.

    Please, help!

    Best wishes,

    Ricardo.
    Last edited by rgmatos3; 08-21-2014 at 07:55 PM.

  2. #2
    Registered User
    Join Date
    08-12-2014
    Location
    Việt Nam
    MS-Off Ver
    2007
    Posts
    32

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Hi!
    i understand that you must import data from other places, other excel file.
    This is my opinion, i share file 1 in network(LAN,Internet), and all people will import data in file 1, file 1 will update data automatic.
    I can and if you agrees with me. I will try to help you by teamview. OK

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear Bluesoftsbl2,

    You see, that is possible, but in real life file 02 have 345 values per day; file 03 have 49 values per day; and the other two files have one value per day per worksheet. Besides that, values in file 01 are complete mixed up.
    It must be use IFERRO and VLOOKUP. But how?

    Thanks anyway!

    Ricardo.

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    I don't quite follow the problem but the usage of IFERROR vs ISERROR is:

    With IFERROR you can make a statement, if it's an error do something else

    With ISERROR, you can make a statement and it will return either a TRUE or a FALSE. Because of this, it must be nested within an IF to get result of an IFERROR (this is what needed to be used before IFERROR existed)

    Synax:

    IFERROR(VLOOKUP(A1,B1:B30,2,FALSE),"An Error Happened")


    IF(ISERROR(VLOOKUP(A1,B1:B30,2,FALSE)),"An Error Happened","An Error Didn't happen")
    Or, to make it work like IFERROR
    IF(ISERROR(VLOOKUP(A1,B1:B30,2,FALSE)),"An Error Happened",VLOOKUP(A1,B1:B30,2,FALSE))


    Hope this is in some way useful.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear Speshul,

    I am very glad for your consideration, but the problem lies in the different types of search ranges: codes in columns and dates in lines.
    You must see the exemple, it is hard even to describe.

    Thanks,

    Ricardo.

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Sorry to say this, but it is really hard to even try to help you on this as I don't even see a formula in your file.
    And the way your other files are structured, it will be really hard to come up with a formula.
    Can you change the file's format so the dates repeat in each row?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  7. #7
    Registered User
    Join Date
    08-12-2014
    Location
    Việt Nam
    MS-Off Ver
    2007
    Posts
    32

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Quote Originally Posted by rgmatos3 View Post
    Dear Bluesoftsbl2,

    You see, that is possible, but in real life file 02 have 345 values per day; file 03 have 49 values per day; and the other two files have one value per day per worksheet. Besides that, values in file 01 are complete mixed up.
    It must be use IFERRO and VLOOKUP. But how?


    Thanks anyway!

    Ricardo.
    I know. In my ways, you will do 5 sheet in a workbook, user 1 import in sheet 1, user 2 import in file 2...you will share and mange workbook in my server computer. In this workbook, you will do all fomula then share, so the other people will only import data.
    In addition, you can authorize for the other people, example user 1 only do ịn sheet 1, user 2 only read workbook or do in sheets 2...
    So, you will not use IFERRO and vlookup. I thinks that. and i agree p24leclerc.
    Last edited by bluesoftsbl2; 08-22-2014 at 01:48 PM.

  8. #8
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Pierre,

    Thank you very much! I will show the case:

    Your solution worked just fine for the first two files:

    =IFERROR(VLOOKUP($A4;'C:\Users\RICARDO2\Desktop\PROCV\VLOOKUP\[02_Daily_File_06_01.xlsx]ITG JJJ'!$E$4:$F$13;2;FALSE);(VLOOKUP($A4;'C:\Users\RICARDO2\Desktop\PROCV\VLOOKUP\[03_Another_Daily_File_06_01.xlsx]YJJ!$E$4:$F$6;2;FALSE)))

    01_All_Together.xlsx


    Than, every day, I drag the first cell to the right and replace date 06_day for date 06_day+1. OK.

    The problem: is it possible to use more than one IFERROR? Or something else that could handle values in daily rows? Is it possible to mix up rows and columns?

    Files 01, 02 and 03 are unchangeables, sorry.

    It is more a question, if it is not possible, someone can fill it up by hand, every day.

    Thanks again!

    Ricardo.

  9. #9
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear Bluesoftsbl2,

    IFERROR with VLOOKUP works fine for the first two files. I have tried something like =IFERROR(IFERROR(IFERROR(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...)))))))).
    But it did not work at all.

    Thanks again!

    Ricardo.

  10. #10
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    If you can work with all the files open, try this workbook.
    You just have to copy the formula across your columns and the formula will look at the right data for this date.
    I'm still looking at a formula that can work even of the workbooks are closed but I'n not sure it works.
    Regards
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-12-2014
    Location
    Việt Nam
    MS-Off Ver
    2007
    Posts
    32

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Quote Originally Posted by p24leclerc View Post
    If you can work with all the files open, try this workbook.
    You just have to copy the formula across your columns and the formula will look at the right data for this date.
    I'm still looking at a formula that can work even of the workbooks are closed but I'n not sure it works.
    Regards
    ok my skype is sonktpm2. i will do and up video. I think it is ok. wating for me.

  12. #12
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    After some search, it is impossible to get information from a closed workbook with a formula using the function INDIRECT.

  13. #13
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Since you are arriving the values from vlookups, and your codes are exclusive for respective sheets, and you are looking to manipulate horizontal and vertical criteries,

    You Could Use Sumifs instead of vlookups, you can build your formula criteria either horizontal/vertical easily when you use sumifs

    Sumifs(files1)+sumifs(file2)+etc...

    Try it out and let us know






    Quote Originally Posted by rgmatos3 View Post
    Dear Bluesoftsbl2,

    IFERROR with VLOOKUP works fine for the first two files. I have tried something like =IFERROR(IFERROR(IFERROR(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...));(VLOOKUP(...)))))))).
    But it did not work at all.

    Thanks again!

    Ricardo.
    Click just below left if it helps, Boo?ath?

  14. #14
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Have tried with for first two sheets and getting the expected results, (before drag the date value down in column A of sheet02 and sheet03


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Quote Originally Posted by boopathiraja View Post
    Since you are arriving the values from vlookups, and your codes are exclusive for respective sheets, and you are looking to manipulate horizontal and vertical criteries,

    You Could Use Sumifs instead of vlookups, you can build your formula criteria either horizontal/vertical easily when you use sumifs

    Sumifs(files1)+sumifs(file2)+etc...

    Try it out and let us know
    Last edited by boopathiraja; 08-25-2014 at 04:18 PM.

  15. #15
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Have tried with for first two sheets and getting the expected results, (before drag the date value down in column A of sheet02 and sheet03

    =SUMIFS('[02_Daily_File_06_01-1.xlsx]ITG JJJ'!$F:$F,'[02_Daily_File_06_01-1.xlsx]ITG JJJ'!$E:$E,$A4,'[02_Daily_File_06_01-1.xlsx]ITG JJJ'!$A:$A,B$3)+SUMIFS('[03_Another_Daily_File_06_01-1.xlsx]YJJ'!$F:$F,'[03_Another_Daily_File_06_01-1.xlsx]YJJ'!$E:$E,$A4,'[03_Another_Daily_File_06_01-1.xlsx]YJJ'!$A:$A,B$3)

  16. #16
    Registered User
    Join Date
    08-12-2014
    Location
    Việt Nam
    MS-Off Ver
    2007
    Posts
    32

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Quote Originally Posted by p24leclerc View Post
    If you can work with all the files open, try this workbook.
    You just have to copy the formula across your columns and the formula will look at the right data for this date.
    I'm still looking at a formula that can work even of the workbooks are closed but I'n not sure it works.
    Regards
    I have sent you my youtube link. You can check and see it, pls.

  17. #17
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear Pierre,
    I am terribly sorry. I got really sick the past two weeks, a very strong flu. I saw your INDIRECT solution. Thank you very much, but now I realize that, besides closed files, the values are note completed at once. You see, some of it come by night, some in the dawn, some we had to ask for it by email or phone. I would end up with three or four "-", and I believe that will bring some trouble, because "All together" file it is not the last, but a source which will be used to export data to another file (someone was paid to do it), and finally (I can't image how) will be imported to a corporate website (another fellow was hired).
    It is not my work! I am a chemist!
    I'm really grateful, but it seems me someone will have to complete one by one, by hand every day. Even my boss are a little confused.
    I'm staying with your past solution. It is enough.
    Thank you very much.
    Ricardo.

  18. #18
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Dear boopathiraja,

    I am very sorry, but you see, SUMIFS do not work properly with closed files. I will prefer IFERROR since it works fine in closed or open files.
    Thanks again.

    Ricardo.

  19. #19
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    bluesoftsbl2!!!!
    You are a very helpful chap! God bless you! But I follow orders, my boss asked me for a formula, and I have to come up with one. In fact, Pierre did, last march.
    Thanks again. See your notifications board.
    Thanks again!

  20. #20
    Registered User
    Join Date
    03-04-2014
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    bluesoftsbl2!!!!
    You are a very helpful chap! God bless you! But I follow orders, my boss asked me for a formula, and I have to come up with one. In fact, Pierre did, last march.
    Thanks again!

  21. #21
    Registered User
    Join Date
    08-12-2014
    Location
    Việt Nam
    MS-Off Ver
    2007
    Posts
    32

    Re: How to use VLOOKUP with mixed "look up_values" in multiples files and worksheets?

    Quote Originally Posted by rgmatos3 View Post
    bluesoftsbl2!!!!
    You are a very helpful chap! God bless you! But I follow orders, my boss asked me for a formula, and I have to come up with one. In fact, Pierre did, last march.
    Thanks again!
    Thanks very much! God bless you!
    I hope it will help you and your boss. You can share it to your boss and all other people. It is very good knowledge and so I want all people to know about add-in a-tools.
    And I'm happy to help you now and in the future by add-in a-tools if you want.
    Thanks.

+ 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. Loop Not Reseting "x" Value, Saving Worksheets to PDF files
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2014, 10:02 PM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. Copy data from multiples sheets to specific cells in "summary"
    By sweetboy02125 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2010, 10:05 AM
  4. Will Excel "compare" two worksheets or files?
    By George in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2006, 04:15 AM
  5. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04: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