Ok, this is my sheet below. It's for training purposes at the moment - I need to segregate people as the roles are. There is one Query, one FMT, one D/A, some CH and rest should be placed in main table. Also, I want to grab date, when absence end, if someone is on it, but that's different story.
I know, that went away from the thread topic, but I'm trying to get help, as I was able to get it in the first place
[TABLE="width: 987"]
<TBODY>[TR]
[TD]
Name</SPAN>[/TD]
[TD]
Role</SPAN>[/TD]
[TD]
Absence till</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
2013-05-20</SPAN>[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #1</SPAN>[/TD]
[TD]PO</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]CH</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]
CH</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #2</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]AS</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]#N/A</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #3</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]AAL</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #4</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]TCCom</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #5</SPAN>[/TD]
[TD]AAL</SPAN>[/TD]
[TD="align: right"]2013-05-31</SPAN>[/TD]
[TD][/TD]
[TD]TCCorp</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #6</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]OBT</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #7</SPAN>[/TD]
[TD]D\A</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]PO</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #8</SPAN>[/TD]
[TD]PO</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]FMT</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Person #9</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]Q</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #10</SPAN>[/TD]
[TD]FMT</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD]D\A</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]
Queries</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #11</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]Person #15</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #12</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #13</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]
FMT:</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #14</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]Person #10</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #15</SPAN>[/TD]
[TD]Q</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #16</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]
D\A:</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #17</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]Person #7</SPAN>[/TD]
[/TR]
[TR]
[TD]Person #18</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #19</SPAN>[/TD]
[TD]PO</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #20</SPAN>[/TD]
[TD]PO</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #21</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #22</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #23</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #24</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #25</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #26</SPAN>[/TD]
[TD]TCCom</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #27</SPAN>[/TD]
[TD]OBT</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #28</SPAN>[/TD]
[TD]CH</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #29</SPAN>[/TD]
[TD]AAL</SPAN>[/TD]
[TD="align: right"]2013-05-21</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #30</SPAN>[/TD]
[TD]AS</SPAN>[/TD]
[TD="align: right"]2013-05-20</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #31</SPAN>[/TD]
[TD]TCCorp</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #32</SPAN>[/TD]
[TD]AAL</SPAN>[/TD]
[TD="align: right"]2013-05-20</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person #33</SPAN>[/TD]
[TD]OBT</SPAN>[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL span=4><COL><COL span=3><COL></COLGROUP>[/TABLE]