INDEX MATCH, based on 2 columns

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Hi all

I am trying to look up the value in column I when:

Value in A2 matches Column G in "DataTab"

Value C1 (constant as column header) matches Column E in "DataTab"

DataTab
Column E (Add/Remove)Column FColumn G (Reference)Column HColumn I
Removeabcdef12345xxxxxxxxCircle
Addabcdef12345xxxxxxxxCircular
Removeghijkl12346xxxxxxxxRectangle
Addghijkl12346xxxxxxxxRectangular

and then on the sheet I want the results displayed
Column A (Reference)Column B (Data_1)Column C (REMOVE)Column D (ADD)
12345abcdefCircleCircular
12346ghijklRectangleRecttangular
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
not sure i understand fully

=index( 'data tab'!$I$2:$I$100, match( $A2&C$1, 'data tab'!$G$2:$G$100& 'data tab'!$E$2:$E$100,0))

so brings back column I based on the header ADD or REMOVE and the value in column A matching column G

but not sure about data_1 - is that another match needed ?

will column F always have the same value in for both remove and add
so you have abcdef for both remove and add for a2 and a3 =12345


see below

Book9
ABCD
1ReferenceData_1REMOVEADD
212345abcdefCircleCircular
312346ghijklRectangleRectangular
Sheet2
Cell Formulas
RangeFormula
B2B2=INDEX( data!$F$2:$F$100, MATCH( A2&$C$1, data!$G$2:$G$100& data!$E$2:$E$100,0))
C2:D3C2=INDEX( data!$I$2:$I$100, MATCH( $A2&C$1, data!$G$2:$G$100& data!$E$2:$E$100,0))


Book9
ABCDEFGHIJ
1Add/RemoveColumn FReferenceColumn HColumn I
2Removeabcdef12345xxxxxxxxCircle
3Addabcdef12345xxxxxxxxCircular
4Removeghijkl12346xxxxxxxxRectangle
5Addghijkl12346xxxxxxxxRectangular
data


also on a share - BUT only for few days

will reread the question so maybe an edit - or new post
 
Upvote 0
Solution

Forum statistics

Threads
1,215,136
Messages
6,123,246
Members
449,093
Latest member
Vincent Khandagale

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