Return a value form a cell

cronk

New Member
Joined
Jan 30, 2006
Messages
8
I have a table with dates on the top of several columns with multiple rows of questions listed below on the most left column. If the question is answered yes, under the one of several date headings, I need a formula to return the date from that top row when the question is answered yes. The question could be answered yes more than once and I only want the most recent date.
 
Great (things are always better when data is sorted...)

Try

=LOOKUP(2,1/(B2:J2="Yes"),B1:J1)

B1:J1 = your dates
B2:J2 = your answers
 
Upvote 0
Cronk,

Or try this array formula (Ctrl+Shift+Enter and not only Enter):

=LARGE(--(B2:P2="Yes")*($B$1:$P$1),1)

Markmzz
 
Upvote 0

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