XLookup HELP!!

OKCIrish

New Member
Joined
Dec 3, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Can someone help me with my XLOOKUP formula please? I thought I had it laid out correctly, but it seems like it doesn't like my text values I have in the tables. I've looked and read the help section to figure it out, but I am not getting anywhere. Both of these tables here are on two different tabs. What I am trying to do is on the first table (Customer) is select a dropdown of customers and then XLOOKUP would look at the customer chosen, and then change the pricings depending on the customer. The pricing sheet is on another tab/table called job type.

Standard Pricing Copy.xlsx
ABCD
1Customer
2
3
4General Inspection
5Inspection TypePriceCharge Type
6Misc. Subs - DS1 CAT 3-5 Inspection#VALUE!
7Misc. Subs - DS1 CAT 2 Inspection#VALUE!
8NonMag Connection - DS1 CAT 2#N/A
9NonMag Sub - DS1 CAT 3-5 #VALUE!
10HWDP - DS1 CAT 2 Inspection#VALUE!
11HWDP - DS1 CAT 3-5 Inspection#VALUE!
12DC - DS1 CAT 2 Inspection#VALUE!
13DC - DS1 CAT 3-5 Inspection#VALUE!
14DP Range II - DS1 CAT 3 Inspection#VALUE!
15DP Range II - DS1 CAT 4 Inspection#VALUE!
16DP Range II - DS1 CAT 4 + Black Light#VALUE!
17DP Range II - DS1 CAT 5 Inspection#VALUE!
18DP Range III - DS1 CAT 3 Inspection#VALUE!
19DP Range III - DS1 CAT 4 Inspection#VALUE!
20DP Range III - DS1 CAT 4 + Black Light#VALUE!
21DP Range III- DS1 CAT 5 Inspection#VALUE!
22Drill Pipe Rig Minimum#N/A
23MPI Per Ft#VALUE!
24LPI Per Ft#VALUE!
25Blacklight Connection#N/A
26Clean/Visual Connection#N/A
27Post Inspeciton - DS1 CAT 2#VALUE!
28Post Inspection - Field Lathe Reface#VALUE!
295" Mud Motor DS1 CAT 3-5 Inspection#VALUE!
306 1/2" Mud Motor DS1 CAT 3-5 Inspection#VALUE!
318" Mud Motor DS1 CAT 3-5 Inspection#VALUE!
328" Mud Motor DS1 CAT 3-5 Inspection - Stators Only#VALUE!
33Mud Motor DS1 CAT 3-5 Inspection#VALUE!
Price Sheet
Cell Formulas
RangeFormula
B6:B33B6=XLOOKUP(A2,Customer,XLOOKUP([@[Inspection Type]],Customer_Pricing[Job Type],Customer_Pricing[Rig 3]))
Named Ranges
NameRefers ToCells
Customer='Customer Price Sheet'!$1:$1B6:B33
Cells with Data Validation
CellAllowCriteria
A2List='Customer Price Sheet'!$A$303#


Standard Pricing Copy.xlsx
ABCDEFGHIJKL
1Job TypeStandard PriceRig 1Rig 2Rig 3Rig 4Rig 5Rig 6Rig 7Rig 8Rig 9Rig 10
2Misc. Subs - DS1 CAT 3-5 Inspection$ 65.00$ 65.00$ 47.00$ 55.00$ 65.00
3Misc. Subs - DS1 CAT 2 Inspection$ 23.00$ 40.00
4NonMag Sub - DS1 CAT 2
5NonMag Sub - DS1 CAT 3-5
6HWDP - DS1 CAT 2 Inspection$ 18.00$ 31.00$ 32.00$ 40.00
7HWDP - DS1 CAT 3-5 Inspection$ 75.00$ 100.00$ 85.00$ 75.00$ 85.00$ 52.00$ 75.00
8DC - DS1 CAT 2 Inspection$ 18.00$ 31.00$ 16.00$ 40.00
9DC - DS1 CAT 3-5 Inspection$ 65.00$ 80.00$ 68.00$ 55.00$ 70.00
10DP Range II - DS1 CAT 3 Inspection$ 19.00$ 19.00$ 15.50$ 18.00$ 18.00$ 13.50$ 17.00
11DP Range II - DS1 CAT 4 Inspection$ 25.00$ 32.00$ 25.00$ 22.00$ 24.00$ 24.00$ 21.00
12DP Range II - DS1 CAT 4 + Black Light$ 49.00$ 30.00
13DP Range II - DS1 CAT 5 Inspection$ 35.00$ 40.00$ 37.50$ 40.00
14DP Range III - DS1 CAT 3 Inspection$ 25.00$ 24.00$ 17.00$ 23.00
15DP Range III - DS1 CAT 4 Inspection$ 31.00$ 30.00$ 24.00$ 29.00
16DP Range III - DS1 CAT 4 + Black Light$ 35.00
17DP Range III- DS1 CAT 5 Inspection$ 41.00$ 45.00$ 39.00$ 45.00
Customer Price Sheet
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try this formula: (Also if you have not, format those ranges as tables)
Excel Formula:
=INDEX(Table2,MATCH([@[Inspection Type]],Table2[Job Type],0),MATCH([@[Charge Type]],Table2[#Headers],0))

Remember to change Table 2 to the actual table name (Can be found under the Design tab when selecting the range).
 
Upvote 0
How about:
(Assuming you put one of the Rig references in A2)
Excel Formula:
=XLOOKUP([@[Inspection Type]],Customer_Price[Job Type],XLOOKUP($A$2,Customer_Price[#Headers],Customer_Price),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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