Home

Lookup / Indirect / match?

%3CLINGO-SUB%20id%3D%22lingo-sub-848475%22%20slang%3D%22en-US%22%3ELookup%20%2F%20Indirect%20%2F%20match%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848475%22%20slang%3D%22en-US%22%3E%3CP%3E%3CU%3E%3CSTRONG%3EBackground%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3EThere%20is%20a%20database%20of%201000's%20of%20rows%2C%20each%20with%20a%20unique%20reference%20number.%20These%20are%20distributed%20in%20different%20tabs%20(40%2B%20tabs!)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3ETask%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3EExport%20the%20information%20relating%20to%20just%20400%20(ish)%20of%20these%20reference%20numbers%20(Vlookup%20value)%2C%20without%20Ctrl%20%2B%20F%20(workbook)%20paste%20reference%20number%2C%20select%20row%2C%20copy%20and%20paste%20for%20each%20reference%20number!%20Each%20of%20the%20tabs%20contain%20similar%20information%20but%20do%20not%20carry%20an%20exact%20format%20copy%26nbsp%3B%20i.e%20each%20tab%20has%20the%20same%20column%20headers%2C%20but%20in%20one%20tab%20it%20would%20be%20on%20%22O%22%20column%2Cbut%20in%20another%20in%20column%20%22M%22.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20thinking%20along%20the%20lines%20of%20a%20Vlookup%20%2B%20Indirect%20%2B%20Match%20for%20the%20column%20headers%20of%20required%20info%20but%20i%20cannot%20seem%20to%20wrap%20my%20brain%20around%20it!%20If%20there%20is%20anyone%20who%20has%20a%20firmer%20grasp%20than%20i%2C%20the%20help%20would%20be%20greatly%20appreciated!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-848475%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETraining%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-848521%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20%2F%20Indirect%20%2F%20match%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848521%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407172%22%20target%3D%22_blank%22%3E%40Cashworth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eyou%20can%20use%20match%20to%20find%20on%20which%20column%20your%20header%20is.%20it%20will%20return%20a%20number.%20and%20also%20use%20the%20same%20match%20formula%20to%20return%20row%20number%20of%20the%20cell%20which%20has%20the%20value%20you%20need.%20and%20combine%20these%20with%20offset%20or%20index%20formula.%20ofset%20formula%20requires%20a%20reference%20cell%20that%20you%20will%20move%2C%20number%20of%20rows%20and%20number%20of%20columns.%20so%20in%20ofsset%20you%20need%20to%20decrease%20the%20result%20value%20of%20the%20match%20formula%20by%201.%20and%20use%201%20in%20width%20and%20height%20to%20return%20at%20least%20one%20cell%3C%2FP%3E%3CP%3Ein%20index%20you%20need%20to%20select%20the%20range%20of%20all%20the%20table%20and%20then%20add%20match%20results%20to%20row%20and%20column%20areas.%20This%20will%20return%20the%20intersecting%20cell.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-848559%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20%2F%20Indirect%20%2F%20match%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848559%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232473%22%20target%3D%22_blank%22%3E%40erol%20sinan%20zorlu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20response!%20%3A)One%20problem%20with%20the%20task%20i%20have%20a%20list%20of%20references%20to%20look%20up%20across%20many%20worksheet%20tabs%20(i%20think%2050%2B%20different%20worksheets%20in%20one%20workbook).%20Would%20this%20method%20have%20to%20be%20repeated%20with%20all%20references%2C%20for%20all%20tabs%3F%20i%20would%20consolidate%20the%20data%20to%20make%20one%20look%20up%20area%20but%20not%20all%20the%20information%20is%20stored%20in%20consistent%20columns%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20the%20response%2C%20set%20off%20a%20new%20trail-of-thought!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-849123%22%20slang%3D%22en-US%22%3ERe%3A%20Lookup%20%2F%20Indirect%20%2F%20match%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849123%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407172%22%20target%3D%22_blank%22%3E%40Cashworth%3C%2FA%3E%26nbsp%3Bhello%2C%3C%2FP%3E%3CP%3Ethere%20are%20several%20ways%20to%20merge%20data.%20the%20easiest%20way%20seems%20to%20be%20the%20power%20query%20however%20my%20experience%20with%20it%20is%20limited.%20With%20this%20functionality%20you%20can%20create%20tables%20(insert%20table)%20for%20all%20the%20information%20on%20all%20the%20tabs%20and%20then%20join-transform%20these%20tables.%20and%20use%20the%20final%20data%20in%20index-match%20formulas.%20I%20am%20sure%20there%20is%20also%20a%20query%20to%20find%20any%20data%20you%20wish%20however%20it%20uses%20a%20language%20called%20M%20language%20which%20I%20do%20not%20have%20any%20experience.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Cashworth
New Contributor

Background

There is a database of 1000's of rows, each with a unique reference number. These are distributed in different tabs (40+ tabs!)

 

Task

Export the information relating to just 400 (ish) of these reference numbers (Vlookup value), without Ctrl + F (workbook) paste reference number, select row, copy and paste for each reference number! Each of the tabs contain similar information but do not carry an exact format copy  i.e each tab has the same column headers, but in one tab it would be on "O" column,but in another in column "M". 

 

I was thinking along the lines of a Vlookup + Indirect + Match for the column headers of required info but i cannot seem to wrap my brain around it! If there is anyone who has a firmer grasp than i, the help would be greatly appreciated! 

 

Thanks,

3 Replies

@Cashworth 

you can use match to find on which column your header is. it will return a number. and also use the same match formula to return row number of the cell which has the value you need. and combine these with offset or index formula. ofset formula requires a reference cell that you will move, number of rows and number of columns. so in ofsset you need to decrease the result value of the match formula by 1. and use 1 in width and height to return at least one cell

in index you need to select the range of all the table and then add match results to row and column areas. This will return the intersecting cell.

@erol sinan zorlu 

Thanks for the response! One problem with the task i have a list of references to look up across many worksheet tabs (i think 50+ different worksheets in one workbook). Would this method have to be repeated with all references, for all tabs? i would consolidate the data to make one look up area but not all the information is stored in consistent columns

 

Thanks again for the response, set off a new trail-of-thought!  

 

 

@Cashworth hello,

there are several ways to merge data. the easiest way seems to be the power query however my experience with it is limited. With this functionality you can create tables (insert table) for all the information on all the tabs and then join-transform these tables. and use the final data in index-match formulas. I am sure there is also a query to find any data you wish however it uses a language called M language which I do not have any experience.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies