VLOOKUP across Multiple Sheets
I am trying to have a cross reference that looks across 3 different sheets. I have been successful getting it to work with just two sheets, but when i add the third, it comes back "INCORRECT ARGUMENT SET". Any help is appreciated. Here is my formula
=IFERROR(VLOOKUP([Employee Email]@row, {Supervisors 1 Range 1}, 2, 0), VLOOKUP([Employee Email]@row, {Supervisors 2 Range 1}, 2, 0), VLOOKUP([Employee Email]@row, {Supervisors 3 Range 3}, 2, 0))
Best Answers
-
Paul Newcome ✭✭✭✭✭✭
Apologies. I missed that 3rd VLOOKUP in there. Yes. You need another IFERROR.
=IFERROR(IFERROR(VLOOKUP([Employee Email]@row, {Supervisors 1 Range 1}, 2, 0), VLOOKUP([Employee Email]@row, {Supervisors 2 Range 1}, 2, 0)), VLOOKUP([Employee Email]@row, {Supervisors 3 Range 3}, 2, 0))
thinkspi.com
-
Paul Newcome ✭✭✭✭✭✭
Yes. It would be the same syntax for the IFERROR portions. You would just replace VLOOKUP with INDEX/MATCH.
thinkspi.com
Answers
-
Paul Newcome ✭✭✭✭✭✭
WHat is the formula you are using that is throwing the error?
thinkspi.com
-
DW1 ✭✭✭✭
IFERROR only has two options; the initial formula to evaluate, and what to do if that initial formula results in an error. You are adding a 3rd choice here, which is incompatible with the IFERROR function.
You can use a combination of IF statements, ISERROR, and IFERROR to accomplish this.
IF(ISERROR(VLOOKUP([Employee Email]@row, {Supervisors 1 Range 1}, 2, 0)), IFERROR(VLOOKUP([Employee Email]@row, {Supervisors 2 Range 1}, 2, 0), VLOOKUP([Employee Email]@row, {Supervisors 3 Range 3}, 2, 0))
-
@Paul NewcomeIt seems to be the last VLOOKUP that is in the formula I originally posted. I think it may have to do with adding additional IFERROR function, but haven't been able to resolve it.
-
Paul Newcome ✭✭✭✭✭✭
Apologies. I missed that 3rd VLOOKUP in there. Yes. You need another IFERROR.
=IFERROR(IFERROR(VLOOKUP([Employee Email]@row, {Supervisors 1 Range 1}, 2, 0), VLOOKUP([Employee Email]@row, {Supervisors 2 Range 1}, 2, 0)), VLOOKUP([Employee Email]@row, {Supervisors 3 Range 3}, 2, 0))
thinkspi.com
-
@Paul NewcomeYou are a lifesaver! That worked. Due to the amount of cells allowed (100,000), I also had to remove some columns that contained additional data. But it worked!
@DW1I tried your method as well but it's giving me the 100,000 cell limit error message and won't display the values. Not sure why. I appreciate your solution and time as well.
-
Paul Newcome ✭✭✭✭✭✭
If you are running into the cells referenced limit, I suggest switching over to INDEX/MATCH. You only pull in the columns you are referencing instead of every column in between. You are also not restricted to which order the columns are in.
=INDEX({Column To Pull From}, MATCH(value_to_match_on, {Column To Match In}, 0))
thinkspi.com
-
@Paul NewcomeCan INDEX/MATCH also be setup with the IFERROR function as well to achieve looking up values from the 3 sheets? I appreciate your help.
-
Paul Newcome ✭✭✭✭✭✭
Yes. It would be the same syntax for the IFERROR portions. You would just replace VLOOKUP with INDEX/MATCH.
thinkspi.com
-
@Paul NewcomeI hate to keep bothering you but I can't seem to figure out the INDEX MATCH on my own. I am able to create the formula for looking at just one sheet and it works, but when I introduce the IFERROR and multiple sheets, it won't work. I'm sure it's some minor thing I am doing wrong, but I am stuck. Here is the formula I have tried:
=IFERROR(IFERROR(INDEX({Supervisor 1 ID}, MATCH([Email Address]@row, {Email Address}, 0)), INDEX({Supervisor 2 ID}, MATCH([Email Address]@row, {Email Address}, 0)), INDEX({Supervisor 3 ID}, MATCH([Email Address]@row, {Email Address}, 0)))
-
Paul Newcome ✭✭✭✭✭✭
I believe you may have some out of place parenthesis. Think of it this way... You want to wrap the ENTIRE first IFERROR in the second IFERROR.
First IFERROR:
=IFERROR(.................)
Now wrap that whole thing in the second
=IFERROR(IFERROR(.................), .....)
My suggestion is to write out the first INDEX/MATCH in its entirety. Then wrap that in the first IFERROR including the second INDEX/MATCH.
Now leave the cell. Just click out of it and go somewhere else for a minute.
When you come back to it, you want to add the next IFERROR to the beginning then go all the way to the end and add your comma, add in your INDEX/MATCH, then close it out.
thinkspi.com
-
bncole21 ✭
Good afternoon!
I attempted to use this template to create a multiple cross-sheet reference. It works for the first three sheets but everything after the first three makes the formula unparseable.
Any chance I can get some help? I have a handful more to add after this (a total of 36 sheets) but I wanted to try and get these first nine working first.
Thanks!
Formula:
=IFERROR(IFERROR(VLOOKUP([Service Order #]@row, {EIM1}, 2, 0), VLOOKUP([Service Order #]@row, {EIM2}, 2, 0)), VLOOKUP([Service Order #]@row, {EIM3}, 2, 0)), VLOOKUP([Service Order #]@row, {EIM4}, 2, 0), VLOOKUP([Service Order #]@row, {EIM5}, 2, 0), VLOOKUP([Service Order #]@row, {EIM6}, 2, 0), VLOOKUP([Service Order #]@row, {EIM7}, 2, 0), VLOOKUP([Service Order #]@row, {EIM8}, 2, 0), VLOOKUP([Service Order #]@row, {EIM9}, 2, 0)))
(As mentioned, the first three references work and then it dies :( )
-
Paul Newcome ✭✭✭✭✭✭
-
bncole21 ✭
My goodness, that took some playing around, but I got it!! Thank you!!!
The woes of not being an excel master but using intermediate functions
-
Paul Newcome ✭✭✭✭✭✭
Help Article Resources
Categories
Try this:<\/p>
=IF([Date of Site Survey (Product)]@row <> \"//www.santa-greenland.com/community/discussion/comment/\", IF(TODAY() > [Date of Site Survey (Product)]@row, \"yes\", \"no\"))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":106277,"type":"question","name":"Help creating formula to update inventory automatically","excerpt":"The following is our brochure requests sheet. Right now we manually update our inventory each time we receive a request. Here is a snapshot of the new inventory sheet. I'd like to create a formula that automatically subtracts 100 from Spanish Qty each time the Request Completed is checked, the Request Denied column is…","categoryID":322,"dateInserted":"2023-06-09T16:17:37+00:00","dateUpdated":null,"dateLastComment":"2023-06-09T18:12:07+00:00","insertUserID":161705,"insertUser":{"userID":161705,"name":"Christina S.","url":"https:\/\/community.smartsheet.com\/profile\/Christina%20S.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-09T18:07:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161705,"lastUser":{"userID":161705,"name":"Christina S.","url":"https:\/\/community.smartsheet.com\/profile\/Christina%20S.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-09T18:07:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":35,"score":null,"hot":3372664184,"url":"https:\/\/community.smartsheet.com\/discussion\/106277\/help-creating-formula-to-update-inventory-automatically","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106277\/help-creating-formula-to-update-inventory-automatically","format":"Rich","tagIDs":[204,219,254],"lastPost":{"discussionID":106277,"commentID":379911,"name":"Re: Help creating formula to update inventory automatically","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379911#Comment_379911","dateInserted":"2023-06-09T18:12:07+00:00","insertUserID":161705,"insertUser":{"userID":161705,"name":"Christina S.","url":"https:\/\/community.smartsheet.com\/profile\/Christina%20S.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-09T18:07:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/FMANSEYA9OS3\/mm-brochures-request-sheet-png.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"MM-Brochures-Request-Sheet.PNG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-09T18:11:32+00:00","dateAnswered":"2023-06-09T17:51:51+00:00","acceptedAnswers":[{"commentID":379899,"body":"