Add a condition to formula

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
I want to add a condition column headers to this formula
=INDEX($J$2:$J$14; MATCH(1;INDEX(($A$2:$A$14=A2)*($B$2:$B$14=B2); 0; 1); 0))

CODENAME maxLowest ValuePrev CloseTop PrevLower Prev
TASIA10579.110552.510579.110614.110551.8224859251881548917310552.479610585.3810478.34
TBFSIB22315.222156.422315.222392.922156.42983901880960107922156.414122330.6821889.48
1010C20.420.520.3720.620.3213981343758182.320.4220.520.2
1020D35.836.335.9336.435.7133231248019290.235.7336.635.6
1030E29.629.429.4129.629.31289003796487.929.429.828.9
1040F5050.7550.345149.61744968859296.2550.795150.25
1050G38.237.738.238.737.733939413023813.437.4538.436.8
1060H6059606158.541028024470740.558.6360.2558
1080I32.732.432.6932.932.481671226643985.832.293332.1
1090J49.149.348.9849.848.879745139275828.749.4949.748.9
1120K72.57272.372.7572198408514364593871.8772.570.5
1140L48.348.248.3148.748.162949130503107.648.0148.548
1150M20.5520.220.520.620.152108608442760440920.1820.2520

<colgroup><col><col><col span="5"><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,
Maybe something along '=INDEX(Whole_Range,MATCH(1,INDEX((Column_B=B2)*(Column_A=A2),0),0),MATCH(Cell_Reference_for_headers,Headers_Range,0))
Would that be what you referred to?
 
Upvote 0
Fantastic, Mister "cyrilbrd"
The formula works like a charm.
Thank you very much
More importantly, the answer, of interest in reply
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,734
Members
449,466
Latest member
Peter Juhnke

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