Returning yes/no if criteria matches horizontally and vertically

nbressan

New Member
Joined
Jan 28, 2019
Messages
2
Hi All, I have a sheet with names across the top and then training records for each person below their names. What function/formula do I need to use in order to return a yes/no value if a person has completed a particular training course?

Thanks in advance.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Bob,swimming,
Bob, hiking, true
sally, hiking, true
etc...

put a true on the training completed,
then run a pivot table on the data to get your report.
 
Upvote 0
Welcome to the board.

Not sure what your layout is like. One way:

ABCDEFGHIJKL
1AmyBobCindyDanEricaFredNameCourseTaken?
2ExcelxxxxCindyWordYes
3Wordxx
4Powerpointxx
5Accessxx

<tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
K2=IF(INDEX($B$2:$G$5,MATCH(J2,$A$2:$A$5,0),MATCH(I2,$B$1:$G$1,0))="x","Yes","No")

<tbody>
</tbody>

<tbody>
</tbody>



Another:

ABCDEFGHIJKL
1AmyBobCindyDanEricaFredNameCourseTaken?
2ExcelExcelWordAccessWordExcelCindyWordYes
3WordAccess
4PowerpointExcel
5Access

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
K2=IF(COUNTIF(INDEX($B$2:$G$10,0,MATCH(I2,$B$1:$G$1,0)),J2),"Yes","No")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Ranman256 and Eric W, thanks for your help so far.

Eric W, your second option was closer to what I need but when I update the formula to look at the cells I need, I end up with an #N/A. I have included a couple of screenshots examples of what my sheets look like.

Data Sheet
screen-shot-2019-01-29-at-3-26-27-pm_orig.png



Report Sheet
screen-shot-2019-01-29-at-3-26-14-pm_orig.png
 
Upvote 0
Assuming the upper left cell of your examples on each sheet is A1, put this formula in B2 on the Report sheet, and copy down and across as needed:

=IF(COUNTIF(INDEX(Data!$A$2:$Z$20,0,MATCH($A2,Data!$A$1:$Z$1,0)),B$1),"Yes","No")

Change the ranges as appropriate.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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