+ Reply to Thread
Results 1 to 13 of 13

Trying to make a formula to fetch data related to a matched value in separate workbooks.

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Trying to make a formula to fetch data related to a matched value in separate workbooks.

    So the problem is that I have two workbooks: one has a set of identifying values which are a subset of one of the sets of values in the second and I need to match them up. In addition I need to take the values two columns to the right of the matched values in the second workbook and put them in the first.

    Here is what my formula looks like now.

    =IF(A5=VLOOKUP(A5,'[WBOOK2]Sheet1'!$A:$A,1,TRUE),INDEX('[WBOOK2]Sheet1'!,MATCH(A5,'[WBOOK2]Sheet1'!$A:$A,0),3),"NF")

    Whenever I try to run it an error message comes up and highlights the match function name. I urgently need some help with this. :s
    Last edited by domwell; 12-20-2013 at 09:54 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Need some assistance with my formula

    '[WBOOK2]Sheet1'!

    I think that bit is your problem before the match function. There is no cell reference.

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need some assistance with my formula

    Thanks but no success. Just returns a #N/A :/

  4. #4
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need some assistance with my formula

    Sorry, fixed the title.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Hi,

    Did you read yudlugar's post? You must have a range reference for the INDEX.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Can you upload workbooks with examples of the data please, I think that may be where the problem lies?

  7. #7
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Here are the attatched files, so in this case it would be the same except we replace [WBOOK2] with [example] right?Dominic.xlsxexample.xlsx

  8. #8
    Registered User
    Join Date
    12-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Domwell, you need to use the =TRIM function on the data in your first workbook and then the problem is solveable.

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    What should the result be in C5 of the example worksheet?

  10. #10
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Thanks a bunch, that worked it out. I'll be on the lookout for that in the future.

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Your formula references something called:

    Dash8RotablesFinalv1.1xlsx

    I'm curious - I have never heard of the file extension .1xlsx - can you tell me what kind of file that is?

    Regards

  12. #12
    Registered User
    Join Date
    12-20-2013
    Location
    Port-Of-Spain ,Trinidad
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    Once I trimmed the data in the first sheet and added the reference for the index functio nit worked out.

  13. #13
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Trying to make a formula to fetch data related to a matched value in separate workbook

    domwell, the reason I asked was I think that maybe you could just use:
    =IF(ISERROR(VLOOKUP(trim(A5),'[WBOOK2]Sheet1'!$A:$C,3,FALSE)),"NF",VLOOKUP(trim(A5),'[WBOOK2]Sheet1'!$A:$C,3,FALSE))

    I didn't quite follow what your formula was trying to do so asked what the result should be - your method seems overly complicated.

+ 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. Formula Assistance
    By rhinoc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 08:23 AM
  2. Formula assistance
    By megan7775 in forum Excel General
    Replies: 3
    Last Post: 05-23-2011, 08:50 AM
  3. Formula Assistance
    By Dawn V in forum Excel General
    Replies: 10
    Last Post: 03-31-2008, 11:32 AM
  4. Formula Assistance Please
    By yukon_phil in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-19-2006, 11:00 AM
  5. Formula assistance
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 01:25 AM

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