Pricing Grid Lookup Help

mrkris2010

New Member
Joined
Jul 27, 2024
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a cell that is the cost per hour that I'd like to pull in from another sheet. That value will be based on the number of people, month, day of week and number of trucks for which I have a full grid for.
1722104366028.png


In the above scenario, I want the highlighted cell to do a lookup on the Hourly Rate Grid and it would pull in the cost where August, Sunday, 2 laborers and 1 truck intersect. The grid looks like this:
1722104492400.png


How can I get the $164 value automatically pulled into the highlighted cell in the first image?

Thank you in advance for your expertise!
 

Attachments

  • 1722104282258.png
    1722104282258.png
    4.3 KB · Views: 3

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Please test this:

Excel Formula:
=XLOOKUP(N3,D2:J2,FILTER(D12:J22,(C12:C22=N2)*(A12:A22=N5)*(B12:B22=N6)))

where N3 = day of the week, N2 = month, N5 = laborers, N6 = trucks (adjust accordingly)
 
Upvote 0
Please test this:

Excel Formula:
=XLOOKUP(N3,D2:J2,FILTER(D12:J22,(C12:C22=N2)*(A12:A22=N5)*(B12:B22=N6)))

where N3 = day of the week, N2 = month, N5 = laborers, N6 = trucks (adjust accordingly)
The pricing grid is on a separate worksheet called Hourly Pricing Grid - how does the lookup know to look at that worksheet?

As-is, when I pasted the XLOOKUP on Sheet1 (the form), it put 5 vertial 0's. Here is sheet 1 where 7K has the formular you provided.

1722107638064.png
 
Upvote 0
Something like this then:

Excel Formula:
=XLOOKUP(K3,'Hourly Pricing Grid'!D2:J2,FILTER('Hourly Pricing Grid'!D12:J22,('Hourly Pricing Grid'!C12:C22=K2)*('Hourly Pricing Grid'!A12:A22=K5)*('Hourly Pricing Grid'!B12:B22=K6)))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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