Formula - match going down, then across

The Ruff Report

New Member
Joined
Jun 17, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Not sure if I'm wording the title great.

I want to be able to input Item# in cell J1, Price in cell J2, and have the Rebate associated with that price to return in cell J3.

In other words, find the Item# in column A, then go across that row until the price is matched. The price could be in column B, column N, column Z etc.
 

Attachments

  • jpeg2.png
    jpeg2.png
    11.8 KB · Views: 12

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:
Excel Formula:
=LET(f,FILTER(B2:G15,A2:A15=J1),INDEX(f,XMATCH(J2,f)+1))
 
Upvote 0
Solution
Works perfect Cubist. Took me a few minutes to adapt to my real world file. Thank you very much.

I have never used LET before. Sigh....always so much to learn
 
Upvote 0
The LET function actually isn't necessary. It just allows you to store a calculation as a variable in your formula to avoid repetition.
It helps keep the formula shorter, by removing redundant calculations.

See: LET function - Microsoft Support
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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