Multi variable lookup / reverse hlookup

kneebone

New Member
Joined
Apr 14, 2008
Messages
4
Hi There,

I'm trying to get data ready to move from Excel into a database & I have thousands of rows/columns like the following. For each unique RequestID, I need to return the Year the transaction occurred. Appreciate any guidance!
excel example.PNG
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

A couple of other ways too ..

22 09 22.xlsm
ABCDEFG
1
220182019202020212022
3A3
4B5
5C9
6
7
8A20182018
9B20192019
10C20212021
Get Heading
Cell Formulas
RangeFormula
C8:C10C8=FILTER(C$2:G$2,C3:G3<>"")
D8:D10D8=LOOKUP(9^9,C3:G3,C$2:G$2)
 
Upvote 0
Enter the following array formula at C17 i..e. press ctrl+shift+enter and copy down up to cell C26.
Excel Formula:
=INDEX(3:3,MAX(COLUMN(3:3)*(3:3<>"")))
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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