Flitering + logical tests

altuss

New Member
Joined
Feb 7, 2018
Messages
1
Dear all,

I have been doing the following problem:

I have a table
[TABLE="width: 320"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]Name [/TD]
[TD]Training[/TD]
[TD]welcome[/TD]
[TD]day[/TD]
[TD]night[/TD]
[/TR]
[TR]
[TD]mark[/TD]
[TD]welcome[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]mark[/TD]
[TD]two[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]mark[/TD]
[TD]day[/TD]
[TD] [/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]mark[/TD]
[TD]some[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Polyak[/TD]
[TD]day[/TD]
[TD] [/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Polyak[/TD]
[TD]night[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Polyak[/TD]
[TD]one[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Polyak[/TD]
[TD]two[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]avril[/TD]
[TD]day[/TD]
[TD] [/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]avril[/TD]
[TD]night[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]

So in the main field whenever the training for a person matches one the three trainings names in the header row, it returns one.
I want to have only one row for a person, but so that all the trainings he/she did will be dispayed in the same row with 1 (and not having 3 rows with mark), like this:
Name Welcome Day Night
Mark 1 1
Polyak 1 1
Avril 1 1

Can somebody help me with the formulas needed for such an operation in excel?

I was thinking of doing something like while the name is still mark, check matching the header columns with trainings row, and return one if they match.

I would be very thankful!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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