Retrieve values in multiple rows and columns

JaSc68

New Member
Joined
Aug 6, 2012
Messages
1
Hi all,

i've got a worksheet "patiënts" where in each row fore some columns (hours) a therapist is defined.
Now i want to generate a new tab where i can see for each therapist the time and the patiënts he/she needs to treat.
From ther i can generate a planning overview
If there is a moment where the therapist needs to treat 2 or 3 patiënts in group, those patiënts (multiple values) should be put in one cell.
I need to work with +/- 300 patiënts and +/- 30 therapists.
Is there anyone who knows how can i achieve this result?
I've put a simple example below.

Tab Patiënts;
First row is header
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Patient
[/TD]
[TD]8:00
[/TD]
[TD]8:30
[/TD]
[TD]9:00
[/TD]
[TD]9:30
[/TD]
[TD]10:00
[/TD]
[/TR]
[TR]
[TD]Pat1
[/TD]
[TD]Therap1[/TD]
[TD]Therap2[/TD]
[TD][/TD]
[TD]Therap2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pat2
[/TD]
[TD]Therap3[/TD]
[TD][/TD]
[TD]Therap1[/TD]
[TD][/TD]
[TD]Therap1[/TD]
[/TR]
[TR]
[TD]Pat3
[/TD]
[TD][/TD]
[TD]Therap4[/TD]
[TD]Therap2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pat4
[/TD]
[TD]Therap3[/TD]
[TD]Therap1[/TD]
[TD][/TD]
[TD]Therap2[/TD]
[TD]Therap3[/TD]
[/TR]
</tbody>[/TABLE]

Result should look like this;
Tab Result
First row is header
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Therapeut
[/TD]
[TD]Time[/TD]
[TD]Patiënt[/TD]
[/TR]
[TR]
[TD]Therap1[/TD]
[TD]8:00[/TD]
[TD]Pat1[/TD]
[/TR]
[TR]
[TD]Therap1[/TD]
[TD]8:30[/TD]
[TD]Pat4[/TD]
[/TR]
[TR]
[TD]Therap1[/TD]
[TD]9:00[/TD]
[TD]Pat2[/TD]
[/TR]
[TR]
[TD]Therap1[/TD]
[TD]10:00[/TD]
[TD]Pat2[/TD]
[/TR]
[TR]
[TD]Therap2[/TD]
[TD]8:30[/TD]
[TD]Pat1[/TD]
[/TR]
[TR]
[TD]Therap2[/TD]
[TD]9:00[/TD]
[TD]Pat3[/TD]
[/TR]
[TR]
[TD]Therap2[/TD]
[TD]9:30[/TD]
[TD]Pat1, Pat4[/TD]
[/TR]
[TR]
[TD]Therap3[/TD]
[TD]8:00[/TD]
[TD]Pat2, Pat4[/TD]
[/TR]
[TR]
[TD]Therap3[/TD]
[TD]10:00[/TD]
[TD]Pat4[/TD]
[/TR]
[TR]
[TD]Therap4[/TD]
[TD]8:30[/TD]
[TD]Pat3[/TD]
[/TR]
</tbody>[/TABLE]

Thanks in advance!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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