Hi,
I've been lurking for a long time and have usually found a solution, but this is my first time posting. I'm basically trying to turn a data-table that lists where there are staffing gaps on a hospital's ward, in a list of where those gaps are.
So the data table looks something like that (going up to 30 wards on the X axis; identified through the number of staff they should have minus the number of staff they do), call this 'Sheet 1':
[TABLE="width: 500"]
<tbody>[TR]
[TD]Role
[/TD]
[TD]Shift
[/TD]
[TD]Ward 1
[/TD]
[TD]Ward 2
[/TD]
[TD]Ward 3
[/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Late
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Late
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Late
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]Twilight RN Gap
[/TD]
[TD]Twilight
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]Twilight HCA Gap
[/TD]
[TD]Twilight
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Early
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Early
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Early
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And I want to convert this into a table like this, call this 'Sheet 2':
[TABLE="width: 500"]
<tbody>[TR]
[TD]Shift
[/TD]
[TD]Role
[/TD]
[TD]Ward
[/TD]
[TD]Agency
[/TD]
[TD]Name
[/TD]
[/TR]
[TR]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[/TR]
</tbody>[/TABLE]
Which I would basically want to populate to say this (below), where it would create a list in columns A-C, and then a nurse would then manually input the agency and name of whomever they've assigned to fill that gap and this would then show that gap in a separate dashboard. 'Sheet 2' populated, i.e. what I want it to look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Shift
[/TD]
[TD]Role
[/TD]
[TD]Ward
[/TD]
[TD]Agency
[/TD]
[TD]Name
[/TD]
[/TR]
[TR]
[TD]Late
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][manual]
[/TD]
[TD][manual]
[/TD]
[/TR]
[TR]
[TD]Twilight
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Early
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Late
[/TD]
[TD]RN
[/TD]
[TD]Ward 2
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.
[/TD]
[TD]etc.
[/TD]
[TD]etc.
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ultimately this creates a log of where there are gaps, and the nurses can input names and agencies against this, creating a log of where there are gaps and who's filling them. I then use an IF statement to use this to populate a separate dashboard (but I can handle this part, as it's comparatively simple).
I can't figure out how/if to convert the data from 'Sheet 1' into the table in 'Sheet 2', if anyone can help, please?
I've been lurking for a long time and have usually found a solution, but this is my first time posting. I'm basically trying to turn a data-table that lists where there are staffing gaps on a hospital's ward, in a list of where those gaps are.
So the data table looks something like that (going up to 30 wards on the X axis; identified through the number of staff they should have minus the number of staff they do), call this 'Sheet 1':
[TABLE="width: 500"]
<tbody>[TR]
[TD]Role
[/TD]
[TD]Shift
[/TD]
[TD]Ward 1
[/TD]
[TD]Ward 2
[/TD]
[TD]Ward 3
[/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Late
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Late
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Late
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]Twilight RN Gap
[/TD]
[TD]Twilight
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Night
[/TD]
[TD][/TD]
[TD][/TD]
[TD]-1
[/TD]
[/TR]
[TR]
[TD]Twilight HCA Gap
[/TD]
[TD]Twilight
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RN Gap
[/TD]
[TD]Early
[/TD]
[TD]-1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AP Gap
[/TD]
[TD]Early
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HCA Gap
[/TD]
[TD]Early
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And I want to convert this into a table like this, call this 'Sheet 2':
[TABLE="width: 500"]
<tbody>[TR]
[TD]Shift
[/TD]
[TD]Role
[/TD]
[TD]Ward
[/TD]
[TD]Agency
[/TD]
[TD]Name
[/TD]
[/TR]
[TR]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[TD]x
[/TD]
[/TR]
</tbody>[/TABLE]
Which I would basically want to populate to say this (below), where it would create a list in columns A-C, and then a nurse would then manually input the agency and name of whomever they've assigned to fill that gap and this would then show that gap in a separate dashboard. 'Sheet 2' populated, i.e. what I want it to look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Shift
[/TD]
[TD]Role
[/TD]
[TD]Ward
[/TD]
[TD]Agency
[/TD]
[TD]Name
[/TD]
[/TR]
[TR]
[TD]Late
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][manual]
[/TD]
[TD][manual]
[/TD]
[/TR]
[TR]
[TD]Twilight
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Early
[/TD]
[TD]RN
[/TD]
[TD]Ward 1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Late
[/TD]
[TD]RN
[/TD]
[TD]Ward 2
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.
[/TD]
[TD]etc.
[/TD]
[TD]etc.
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ultimately this creates a log of where there are gaps, and the nurses can input names and agencies against this, creating a log of where there are gaps and who's filling them. I then use an IF statement to use this to populate a separate dashboard (but I can handle this part, as it's comparatively simple).
I can't figure out how/if to convert the data from 'Sheet 1' into the table in 'Sheet 2', if anyone can help, please?