match and equals in seperate sheets

%3CLINGO-SUB%20id%3D%22lingo-sub-2881880%22%20slang%3D%22en-US%22%3Ematch%20and%20equals%20in%20seperate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2881880%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%202%20sheets.%3C%2FP%3E%3CP%3EIn%20the%20main%20sheet%20I%20have%20a%20column%20with%20ordernumbers%20and%20one%20blanc%20column%20that%20i%20want%20the%20invoice%20number%20in.%3C%2FP%3E%3CP%3EIn%20the%20other%20sheet%20I%20have%20the%20ordernumber%20and%20in%20the%20next%20column%20I%20have%20the%20invoice%20number.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20want%20the%20blanc%20column(invoice%20number%20column)%20in%20the%20main%20sheet%2C%20to%20be%20filled%20with%20the%20invoicenumbers%20that%20equals%20to%20the%20ordernumbers%20thats%20next%20to%20it.%20Is%20this%20possible%3F%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2881880%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2881907%22%20slang%3D%22en-US%22%3ERe%3A%20match%20and%20equals%20in%20seperate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2881907%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1195323%22%20target%3D%22_blank%22%3E%40nickie115%3C%2FA%3E%26nbsp%3BIf%20you%20have%20only%20one%20invoice%20number%20per%20order%20in%20the%20%22other%20sheet%22%20you%20can%20use%20VLOOKUP%20or%20XLOOKUP%20(if%20your%20Excel%20version%20supports%20it.%20If%2C%20on%20the%20other%20hand%2C%20you%20have%20multiple%20invoice%20numbers%20for%20the%20same%20order%2C%20you'll%20need%20something%20more%20sophisticated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2882003%22%20slang%3D%22en-US%22%3ERe%3A%20match%20and%20equals%20in%20seperate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2882003%22%20slang%3D%22en-US%22%3EI%20have%20one%20invoice%20number%20per%20order%20but%20i%20have%20multiple%20orders%20in%20the%20main%20sheet.%20I'm%20kind%20of%20lost%20what%20columns%20i%20should%20mark%20as%20what%20if%20I%20use%20VLOOKUP%20or%20XLOOKUP%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2882031%22%20slang%3D%22en-US%22%3ERe%3A%20match%20and%20equals%20in%20seperate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2882031%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1195323%22%20target%3D%22_blank%22%3E%40nickie115%3C%2FA%3E%26nbsp%3BPerhaps%20the%20attached%20file%20will%20help%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I have 2 sheets.

In the main sheet I have a column with ordernumbers and one blanc column that i want the invoice number in.

In the other sheet I have the ordernumber and in the next column I have the invoice number.

 

So I want the blanc column(invoice number column) in the main sheet, to be filled with the invoicenumbers that equals to the ordernumbers thats next to it. Is this possible?? 

 

5 Replies

@nickie115 If you have only one invoice number per order in the "other sheet" you can use VLOOKUP or XLOOKUP (if your Excel version supports it. If, on the other hand, you have multiple invoice numbers for the same order, you'll need something more sophisticated.

I have one invoice number per order but i have multiple orders in the main sheet. I'm kind of lost what columns i should mark as what if I use VLOOKUP or XLOOKUP

@nickie115 Perhaps the attached file will help,

Thank you but what do you write after vlookup?

What is our search key? is it our invoicenumber or ordernumber?

Which range is it? Is it the invoice number/ordernumber?

What is the index and how is it sorted?

VLOOKUP(search_key, range, index, [is_sorted])

@nickie115 Have you looked at the formulae in my example? Google for VLOOKUP and/or XLOOKUP. There are many tutorials on line. Better at explaining than what I can write up here in a few minutes.