Paul at GTS

Board Regular
Joined
May 17, 2004
Messages
51
Hi,

I have the data as below which shows personel availability for 5/1/2020, I would like to create a column with concurrent data for personnel that do not have status as "Away"

<table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>W</th><th>X</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">22</td><td style=";">Sunday Away</td><td style="text-align: right;;">05/01/2020</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">23</td><td style=";">A</td><td style=";">Away</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">24</td><td style=";">B</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">25</td><td style=";">C</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">26</td><td style=";">D</td><td style=";">Away</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">27</td><td style=";">E</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">28</td><td style=";">F</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">29</td><td style=";">G</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">30</td><td style=";">H</td><td style=";">Away</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">31</td><td style=";">I </td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">32</td><td style=";">J</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">33</td><td style=";">K</td><td style=";">Away</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">34</td><td style=";">L</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">35</td><td style=";">M</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">36</td><td style=";">N</td><td style=";"></td></tr></tbody></table><p style="width:8.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Table Build</p>

Concurrent data as below :

<table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>X</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">39</td><td style="text-align: right;;">05/01/2020</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">40</td><td style=";">B</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">41</td><td style=";">C</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">42</td><td style=";">E</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">43</td><td style=";">F</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">44</td><td style=";">G</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">45</td><td style=";">I</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">46</td><td style=";">J</td></tr></tbody></table><p style="width:8.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Table Build</p>

Any ideas ?
 
Last edited by a moderator:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
Have you considered using Filters to filter in/out the values you want?
 

Paul at GTS

Board Regular
Joined
May 17, 2004
Messages
51
Thanks Joe4

I tried filtering but due to the way the raw data is supplied if I apply a filter all subsequent columns are affected which is not what I need. Below is how I would like the data to behave :

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>W</th><th>X</th><th>Y</th><th>Z</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">21</td><td style=";">Away Dates</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">22</td><td style="text-align: right;;"></td><td style=";">05/01/2020</td><td style="text-align: right;;">12/01/2020</td><td style="text-align: right;;">19/01/2020</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">23</td><td style=";">A</td><td style=";">Away</td><td style=";">Away</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">24</td><td style=";">B</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">25</td><td style=";">C</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">26</td><td style=";">D</td><td style=";">Away</td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">27</td><td style=";">E</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">28</td><td style=";">F</td><td style=";"></td><td style=";"></td><td style=";">Away</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">29</td><td style=";">G</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">30</td><td style=";">H</td><td style=";">Away</td><td style=";">Away</td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">31</td><td style=";">I </td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">32</td><td style=";">J</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">33</td><td style=";">K</td><td style=";">Away</td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">34</td><td style=";">L</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">35</td><td style=";">M</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">36</td><td style=";">N</td><td style=";"></td><td style=";"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">37</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">38</td><td style=";">Whos Available</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">39</td><td style="text-align: right;;"></td><td style="text-align: right;;">05/01/2020</td><td style="text-align: right;;">12/01/2020</td><td style="text-align: right;;">19/01/2020</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">40</td><td style="text-align: right;;"></td><td style=";">B</td><td style=";">B</td><td style=";">A</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">41</td><td style="text-align: right;;"></td><td style=";">C</td><td style=";">C</td><td style=";">B</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">42</td><td style="text-align: right;;"></td><td style=";">E</td><td style=";">D</td><td style=";">C</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">43</td><td style="text-align: right;;"></td><td style=";">F</td><td style=";">E</td><td style=";">D</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">44</td><td style="text-align: right;;"></td><td style=";">G</td><td style=";">F</td><td style=";">E</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">45</td><td style="text-align: right;;"></td><td style=";">I</td><td style=";">G</td><td style=";">G</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">46</td><td style="text-align: right;;"></td><td style=";">J</td><td style=";">I</td><td style=";">H</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">47</td><td style="text-align: right;;"></td><td style=";">L</td><td style=";">J</td><td style=";">I</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">48</td><td style="text-align: right;;"></td><td style=";">M</td><td style=";">K</td><td style=";">J</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">49</td><td style="text-align: right;;"></td><td style=";">N</td><td style=";">L</td><td style=";">K</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">50</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">M</td><td style=";">L</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">51</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">N</td><td style=";">M</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">52</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">N</td></tr></tbody></table><p style="width:8.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Table Build</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" >
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,129,275
Messages
5,635,235
Members
416,848
Latest member
Excel DG

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
Top