Counting Unique Number of Days

Smokeyham

Board Regular
Joined
Feb 1, 2006
Messages
110
I have a table with a large number of readings. Multiple readings are taken per day. I am trying to count the number of each week day on which we have taken readings, for instance "How many Saturdays have we been taking readings on."

I have the dates entered into Column A.

I tried the array formula =SUM(--(WEEKDAY(A1:A200)=7)) Where "7" represents Saturdays, but this gives me very high results. I suspect it is just counting all rows where the day is a Saturday.

Any suggestions?

Many thanks.

Gordon
 

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
3,963
Something like this maybe

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">item</td><td style=";">Date</td><td style=";">Sales</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">Item D</td><td style="text-align: right;;">19-Nov-17</td><td style="text-align: right;;">15</td><td style="text-align: right;;"></td><td style="text-align: right;background-color: #FFFF00;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">Item B</td><td style="text-align: right;;">12-Nov-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">Item A</td><td style="text-align: right;;">13-Oct-17</td><td style="text-align: right;;">18</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">Item D</td><td style="text-align: right;;">06-Oct-17</td><td style="text-align: right;;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">Item D</td><td style="text-align: right;;">11-Nov-17</td><td style="text-align: right;;">17</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">Item C</td><td style="text-align: right;;">19-Nov-17</td><td style="text-align: right;;">19</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">Item D</td><td style="text-align: right;;">26-Sep-17</td><td style="text-align: right;;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">Item D</td><td style="text-align: right;;">27-Nov-17</td><td style="text-align: right;;">21</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">Item C</td><td style="text-align: right;;">03-Dec-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">Item B</td><td style="text-align: right;;">30-Nov-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">Item A</td><td style="text-align: right;;">29-Oct-17</td><td style="text-align: right;;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style=";">Item C</td><td style="text-align: right;;">12-Nov-17</td><td style="text-align: right;;">15</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style=";">Item A</td><td style="text-align: right;;">06-Dec-17</td><td style="text-align: right;;">16</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style=";">Item C</td><td style="text-align: right;;">15-Oct-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style=";">Item B</td><td style="text-align: right;;">02-Nov-17</td><td style="text-align: right;;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style=";">Item C</td><td style="text-align: right;;">23-Sep-17</td><td style="text-align: right;;">17</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style=";">Item B</td><td style="text-align: right;;">23-Sep-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style=";">Item C</td><td style="text-align: right;;">27-Oct-17</td><td style="text-align: right;;">18</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style=";">Item A</td><td style="text-align: right;;">01-Nov-17</td><td style="text-align: right;;">12</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style=";">Item D</td><td style="text-align: right;;">01-Nov-17</td><td style="text-align: right;;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">22</td><td style=";">Item A</td><td style="text-align: right;;">24-Oct-17</td><td style="text-align: right;;">24</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">23</td><td style=";">Item D</td><td style="text-align: right;;">02-Dec-17</td><td style="text-align: right;;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">24</td><td style=";">Item B</td><td style="text-align: right;;">05-Dec-17</td><td style="text-align: right;;">19</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">25</td><td style=";">Item A</td><td style="text-align: right;;">17-Nov-17</td><td style="text-align: right;;">23</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">26</td><td style=";">Item B</td><td style="text-align: right;;">17-Nov-17</td><td style="text-align: right;;">23</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">27</td><td style=";">Item B</td><td style="text-align: right;;">10-Nov-17</td><td style="text-align: right;;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">28</td><td style=";">Item B</td><td style="text-align: right;;">05-Oct-17</td><td style="text-align: right;;">19</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">29</td><td style=";">Item B</td><td style="text-align: right;;">10-Dec-17</td><td style="text-align: right;;">13</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">30</td><td style=";">Item A</td><td style="text-align: right;;">18-Oct-17</td><td style="text-align: right;;">21</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">31</td><td style=";">Item C</td><td style="text-align: right;;">18-Oct-17</td><td style="text-align: right;;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">32</td><td style=";">Item B</td><td style="text-align: right;;">24-Nov-17</td><td style="text-align: right;;">21</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">33</td><td style=";">Item C</td><td style="text-align: right;;">01-Dec-17</td><td style="text-align: right;;">23</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">34</td><td style=";">Item B</td><td style="text-align: right;;">01-Dec-17</td><td style="text-align: right;;">15</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">35</td><td style=";">Item A</td><td style="text-align: right;;">08-Oct-17</td><td style="text-align: right;;">22</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">36</td><td style=";">Item A</td><td style="text-align: right;;">18-Nov-17</td><td style="text-align: right;;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet4</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">E2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$B$2:$B$36,$B$2:$B$36</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$B$2:$B$36,2</font>)=7</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Smokeyham

Board Regular
Joined
Feb 1, 2006
Messages
110
Something like this maybe

</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">E2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$B$2:$B$36,$B$2:$B$36</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$B$2:$B$36,2</font>)=7</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
Thank you! That worked!

One interesting thing is that when I substitute the specified range (=SUMPRODUCT((1/COUNTIF($A$2:$A$349,$A$2:$A$349))*(WEEKDAY($A$2:$A$349,2)=T3))

with a named range (=SUMPRODUCT((1/COUNTIF(ObsCount[[#All],[Date]],ObsCount[[#All],[Date]]))*(WEEKDAY(ObsCount[[#All],[Date]],2)=T2))

I get a syntax error. The reference at the end of the equation (T2 or T3) is a reference to a cell with the day number.

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>T</th><th>U</th><th>V</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Day#</td><td style=";">Day</td><td style=";">Number of Days</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">2</td><td style=";">Monday</td><td style="text-align: right;font-style: italic;color: #333333;;">#VALUE!</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">3</td><td style=";">Tuesday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">4</td><td style=";">Wednesday</td><td style="text-align: right;font-style: italic;color: #333333;;">8</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">5</td><td style=";">Thursday</td><td style="text-align: right;font-style: italic;color: #333333;;">6</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">6</td><td style=";">Friday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">7</td><td style=";">Saturday</td><td style="text-align: right;font-style: italic;color: #333333;;">4</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">1</td><td style=";">Sunday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr></tbody></table><p style="width:9.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">OccupancyRecords</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">ObsCount[[#All],[Date]],ObsCount[[#All],[Date]]</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">ObsCount[[#All],[Date]],2</font>)=T2</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V3</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T3</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V4</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T4</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V5</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T5</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V6</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T6</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V7</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T7</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V8</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T8</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Smokeyham

Board Regular
Joined
Feb 1, 2006
Messages
110
Thank you! That worked!

One interesting thing is that when I substitute the specified range (=SUMPRODUCT((1/COUNTIF($A$2:$A$349,$A$2:$A$349))*(WEEKDAY($A$2:$A$349,2)=T3))

with a named range (=SUMPRODUCT((1/COUNTIF(ObsCount[[#All],[Date]],ObsCount[[#All],[Date]]))*(WEEKDAY(ObsCount[[#All],[Date]],2)=T2))

I get a syntax error. The reference at the end of the equation (T2 or T3) is a reference to a cell with the day number.

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>T</th><th>U</th><th>V</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Day#</td><td style=";">Day</td><td style=";">Number of Days</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">2</td><td style=";">Monday</td><td style="text-align: right;font-style: italic;color: #333333;;">#VALUE!</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">3</td><td style=";">Tuesday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">4</td><td style=";">Wednesday</td><td style="text-align: right;font-style: italic;color: #333333;;">8</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">5</td><td style=";">Thursday</td><td style="text-align: right;font-style: italic;color: #333333;;">6</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">6</td><td style=";">Friday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">7</td><td style=";">Saturday</td><td style="text-align: right;font-style: italic;color: #333333;;">4</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">1</td><td style=";">Sunday</td><td style="text-align: right;font-style: italic;color: #333333;;">7</td></tr></tbody></table><p style="width:9.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">OccupancyRecords</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">ObsCount[[#All],[Date]],ObsCount[[#All],[Date]]</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">ObsCount[[#All],[Date]],2</font>)=T2</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V3</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T3</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V4</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T4</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V5</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T5</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V6</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T6</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V7</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T7</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">V8</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">1/COUNTIF(<font color="Green">$A$2:$A$349,$A$2:$A$349</font>)</font>)*(<font color="Red">WEEKDAY(<font color="Green">$A$2:$A$349,2</font>)=T8</font>)</font>)</td></tr></tbody></table></td></tr></table><br />

Found the solution to the syntax error. If you run across this, just be sure to only choose data within your named column (not including the header row). Here is the updated version of the formula, which works.

=SUMPRODUCT((1/COUNTIF(ObsCount[Date],ObsCount[Date]))*(WEEKDAY(ObsCount[Date],2)=E17)). Notice the absence of "[#ALL]" in the formula.
 

Forum statistics

Threads
1,081,417
Messages
5,358,553
Members
400,503
Latest member
RedSquirrel

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top