# Solved Excel Vlookup over multiple sheets January 29, 2014 at 02:50:40
Specs: Windows XP
 I am looking to do something similar to a Vlookup, but I have 9 sheets through which I want excel to look. Basically, I have a list of names with data that carries through 9 sheets, and then a shorter summary of specific names. I need to get the data on to the summary sheet for each name. Any help would be much appreciated, thanks. See More: Excel Vlookup over multiple sheets

#1 January 29, 2014 at 10:02:39
 I'm a bit confused.I see 3 possible scenarios based on your question and I don't know which one you have:1 - Data for each name can be found on all 9 sheets and you want all of it brought into the summary sheet.2 - Data for each name can be found on 1 or more of the 9 sheets and you want all of it brought into the summary sheet.3 - Data for each name can be found on only 1 sheet, but you don't know which one and you want it brought into the summary sheet.For scenarios 1 and 2, where data might be found on multiple sheets, how do you want the data to appear on the summary sheet? In one cell? In multiple contigious cells? In a seperate column from each sheet, like a table? Something else?

Report •

#2
January 31, 2014 at 06:03:25
 Thanks for your reply. The scenario that applies here is the third one.... Any ideas? I have 9 sheets to look through. Can it be done?

Report •

#3 January 31, 2014 at 08:31:45
 I hope you are using Excel 2007 or later. If not, this solution will not work for you.Since you are looking to return data from a single sheet, the solution is fairly simple. Long, but fairly simple.The formula at the bottom of this post will look through 9 sheets (Sheet2:Sheet10) and return the data from the first sheet where the lookup_value is found. In this example, the formula searches A2:A10 on each sheet and returns a value from B2:B10 on that same sheet. If the lookup_value is not found on any sheet, the formula will return a blank cell. Obviously, the formula will need to be modified to fit your specific situation.It is nothing more than a Nested IF using the ISNA function to determine if VLOOKUP found the lookup_value on a given sheet.Perhaps starting with a shorter version would help. This formula searches 2 ranges on the same sheet, just to make the formula easier to read. If the first VLOOKUP returns a #N/A error, meaning that value wasn't found in A1:A3, the first IF will be TRUE and the next VLOOKUP will be tested. If that VLOOKUP also returns a #N/A error, the second IF will be TRUE and a blank cell will be returned. On the other hand, if any IF does not return a #N/A error, that means the value has been found and the formula will skip to the FALSE argument for that IF and actually do the VLOOKUP, returning the requested value.The trick it to keep the VLOOKUPs in the correct sheet order so the value_if_false argument for each IF matches up. Basically you count "up" through the sheets for the IF functions and then "down" through the sheets for the actual VLOOKUP's in the value_if_false arguments.Let me know if you need a more detailed explanation.=IF(ISNA(VLOOKUP(C1,\$A\$1:\$B\$3,2,0)),IF(ISNA(VLOOKUP(C1,\$A\$6:\$B\$8,2,0)),"",VLOOKUP(C1,\$A\$6:\$B\$8,2,0)),VLOOKUP(C1,\$A\$1:\$B\$3,2,0))Here is the expanded version to search 9 sheets:=IF(ISNA(VLOOKUP(B1,Sheet2!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet3!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet4!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet5!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet6!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet7!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet8!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet9!\$A\$2:\$B\$10,2,0)),IF(ISNA(VLOOKUP(B1,Sheet10!\$A\$2:\$B\$10,2,0)),"",VLOOKUP(B1,Sheet10!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet9!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet8!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet7!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet6!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet5!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet4!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet3!\$A\$2:\$B\$10,2,0)),VLOOKUP(B1,Sheet2!\$A\$2:\$B\$10,2,0))message edited by DerbyDad03

Report •

Related Solutions

#4
January 31, 2014 at 11:11:33
 thank you very much for this - it is for something at work so i will try it out on monday and let you know how it goes. thank you for the help!

Report •

#5
February 3, 2014 at 02:28:15
 it worked! thank you very very much- really helped me out with this!

Report •
{"ft_lang_label":"__label__en","ft_lang_prob":0.8595786,"math_prob":0.9687555,"size":4159,"snap":"2020-24-2020-29","text_gpt3_token_len":1281,"char_repetition_ratio":0.1944645,"word_repetition_ratio":0.09090909,"special_character_ratio":0.30079347,"punctuation_ratio":0.18970448,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9895453,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-09T02:12:31Z\",\"WARC-Record-ID\":\"<urn:uuid:4e586b51-f81a-42f3-a6b7-bd3ea4239f20>\",\"Content-Length\":\"40714\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:163b26b8-7220-4beb-9ad0-e52605dd2f9e>\",\"WARC-Concurrent-To\":\"<urn:uuid:2b9e945c-e2b5-4367-8b4a-94d42c17ea17>\",\"WARC-IP-Address\":\"50.28.76.68\",\"WARC-Target-URI\":\"https://www.computing.net/answers/office/excel-vlookup-over-multiple-sheets/18909.html\",\"WARC-Payload-Digest\":\"sha1:OLQ7J2HSW7PVX57UD3AXA7LBTO7Z4I6W\",\"WARC-Block-Digest\":\"sha1:3AS5C43AYKJLVSFQ7DML4XEDRVI4UN2X\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655897844.44_warc_CC-MAIN-20200709002952-20200709032952-00236.warc.gz\"}"}