Bit stuck - am I using LOOKUP incorrectly?

peggrif

New Member
Joined
Dec 6, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi,

I work for a volunteer organisation that sends products on to other organisations. We're trying to find a formula that, when you typed the name of a place we're sending the product to into a table, it would look up that place in a different table and tell you what type of place it is. I thought that LOOKUP would do that, but it isn't working and I'm not sure why. I'm a bit of a beginner using Excel but very keen to learn.

So essentially there's a list of destinations for the product, and what type of destination they are, which looks like this (Table 1):
DestinationType
BinWaste
Charity OneCharity
Charity TwoCharity
Company OneCommercial
but is quite a lot longer (about 20 organisations and two types of waste).

Then there's a separate table which looks like this (Table 2):
DateDestinationAmount sent
10/6/21Charity Two10
10/6/21Bin20
11/6/21Charity One5
12/6/21Company One7
which is on a different page of the same spreadsheet.

We want to add an extra column to Table 2, which would be called 'Destination Type'. It would take the organisation in the 'Destination' column of table 2, and look for it in the 'destination' column of table 1. It would then check which 'type' that destination corresponds to in Table 1.

The formula we thought would work is this: =LOOKUP([@Destination],Table1[Destinations],Table1[Types]). However it doesn't work - it keeps classifying destinations as the wrong types, and we can't understand why. Please can you give me advice on what formula we should be using? Thank you.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi & welcome to MrExcel.
Try
Excel Formula:
=XLOOKUP([@Destination],Table1[Destinations],Table1[Types],"",0).
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top