+ Reply to Thread
Results 1 to 4 of 4

refer multiple external csv files returns #VALUE! error in vlookup function

Hybrid View

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    refer multiple external csv files returns #VALUE! error in vlookup function

    I have a master excel sheet,abc.xls and I need it to refer to columns found in 2 other csx files:def.csv and ghj.csv.I tried using the VLOOKUP function:

    =VLOOKUP(F2,[def.csv]def!R2C15:R439C15+[ghi.csv]ghi!R2C9:R1248C9,1,FALSE)

    where F2 is a column in abc.xls and R2C15:R439C15 are the rows referred in def.csv and R2C9:R1248C9 are the rows referred in ghi.csv.However,when I tried this formula in the master copy(abc.xls),it returns a #VALUE! error.As I am not too sure on how to refer to multiple external csv files,could anybody guide me on how to modify this formula?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: refer multiple external csv files returns #VALUE! error in vlookup function

    You have to use two separate vlookups in this case.

    If the Result is Text Data
    Formula: copy to clipboard
    =VLOOKUP(F2,[def.csv]def!R2C15:R439C15,1,FALSE)&VLOOKUP(F2,[ghi.csv]ghi!R2C9:R1248C9,1,FALSE)


    If the Result is Numeric
    Formula: copy to clipboard
    =VLOOKUP(F2,[def.csv]def!R2C15:R439C15,1,FALSE)+VLOOKUP(F2,[ghi.csv]ghi!R2C9:R1248C9,1,FALSE)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: refer multiple external csv files returns #VALUE! error in vlookup function

    I tried the formula given(data is text),but it still returns #VALUE! in the cells.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: refer multiple external csv files returns #VALUE! error in vlookup function

    Formula: copy to clipboard
    =VLOOKUP(F2,[def.csv]def!R2C15:R439C15,1,FALSE)&VLOOKUP(F2,[ghi.csv]ghi!R2C9:R1248C9,1,FALSE)
    The above formula won't get #VALUE! but it may get #N/A when there is no match is found in any of the formula.

    The below one won't get #N/A also
    Formula: copy to clipboard
    =IF(isna(VLOOKUP(F2,[def.csv]def!R2C15:R439C15,1,FALSE)),"",VLOOKUP(F2,[def.csv]def!R2C15:R439C15,1,FALSE))&if(isna(VLOOKUP(F2,[ghi.csv]ghi!R2C9:R1248C9,1,FALSE)),"",VLOOKUP(F2,[ghi.csv]ghi!R2C9:R1248C9,1,FALSE))

+ 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