Find Column Heading Based on criteria in 2 rows

ootkhopdi

Board Regular
Joined
Sep 30, 2013
Messages
68
hi all

i have a table with more than 100 rows and 100 columns

in this table upper most 3 rows are having column titles.

i want to get column heading of particular column,
in which row 2 value and row 4 value is equal to criteria

any help
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Re: Find Column Heading Based on cretera in 2 rows

in which row 2 value and row 4 value is equal to criteria
If J2 and J3 are the criteria, A1:H1 Column headers
try
Code:
=INDEX($A$1:$H$1,SUMPRODUCT((J2=B2:H2)*(J3=B4:H4)*COLUMN(B1:H1)))
 
Last edited:
Upvote 0
Re: Find Column Heading Based on cretera in 2 rows

Thanks Novic , But your solution is not given answer,
i think , my problem is not clear.

please see table as

S.No.
Ankur
RakeshShyam
Answer: First Non Zero Value on
Monday
TuesdayWednusdaythursdatFridayMondayTuesdayWednusdaythursdatFridayMondayTuesdayWednusdaythursdatFridayMondayTuesday
1
003120116311201ShyamRakesh
2
0026
51664064216RakeshRakesh
3
0004
00416604251ShyamRakesh
4
2623
61451516060AnkurAnkur
53034
46054411520AnkurShyam

<colgroup><col style="mso-width-source:userset;mso-width-alt:1393;width:29pt" width="39"> <col style="mso-width-source:userset;mso-width-alt:1962; width:41pt" width="55" span="2"> <col style="mso-width-source:userset;mso-width-alt:2673;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:1991;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:1507;width:32pt" width="42"> <col style="mso-width-source:userset;mso-width-alt:1962; width:41pt" width="55" span="2"> <col style="mso-width-source:userset;mso-width-alt:2673;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:1991;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:1507;width:32pt" width="42"> <col style="mso-width-source:userset;mso-width-alt:1962; width:41pt" width="55" span="2"> <col style="mso-width-source:userset;mso-width-alt:2673;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:1991;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:1507;width:32pt" width="42"> <col style="mso-width-source:userset;mso-width-alt:2588;width:55pt" width="73"> <col style="mso-width-source:userset;mso-width-alt:2730;width:58pt" width="77"> </colgroup><tbody>
</tbody>
hope now can understand my problme...
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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