Forum Discussion
nickie115
Oct 25, 2021Copper Contributor
match and equals in seperate sheets
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 col...
Riny_van_Eekelen
Oct 25, 2021Platinum Contributor
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.
- nickie115Oct 25, 2021Copper ContributorI 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
- Riny_van_EekelenOct 25, 2021Platinum Contributor
nickie115 Perhaps the attached file will help,
- nickie115Oct 25, 2021Copper ContributorThank 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])