Formula to check the header name and return the cell data for a specific row

bb19august

New Member
Joined
Feb 1, 2019
Messages
18
Excel formula for the following condition given in the table

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]F1[/TD]
[TD]F2[/TD]
[TD]F3[/TD]
[TD]R1[/TD]
[TD]R2[/TD]
[TD]R3[/TD]
[TD]Check[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]F1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]R3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]F2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]R3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

"Check" column has the header name to be verified and return the cell value in row in the "Results" column
If the cell is blank for a specific header then return '0"
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Re: Need help with a formula to check the header name and return the cell data for a specific row

How about


Excel 2013/2016
ABCDEFGH
1F1F2F3R1R2R3CheckResult
2121121F11
3122122R32
4122F22
5111R30
Dashboard
Cell Formulas
RangeFormula
H2=INDEX($A$2:$F$5,ROWS($1:1),MATCH(G2,$A$1:$F$1,0))
 
Upvote 0
Re: Need help with a formula to check the header name and return the cell data for a specific row

Perfecto. Result as expected. Thank you so much for your time and help
 
Upvote 0
Re: Need help with a formula to check the header name and return the cell data for a specific row

Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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