average by weekdays and sorting?

rasko

New Member
Joined
Mar 24, 2018
Messages
7


hi,
i have a daily total players list, i wanted to make a list and chart, which has number of average players by weekdays (rightside of the picture) in descending order. i used AVERAGE(IF(WEEKDAY($V$4:$V$34)=6;($X$4:$X$34))) and ctrl shift+enter ; but is give a ˝value˝ error, when any cell blank in ($V$4:$V$34);
and i am using 2 small list for get data; the first one, calculate averages by weekdays, second is sorting them with ˝large˝ formula and for to get which day is the best ˝index, match˝ formula...
is it possible in single small list calculate averages(ignores blanks and zeros) and sort them?
(i don´t want to use pivot table)
 
yes sir, you are right,

cell u4 : date (number) formatted as "mmmm yyyy" ; than i could change month with ¨data valitadion¨
column v : date series with formatted numbers,taken start date from u4; if less than 31 days( exp february 28days); it leaves blank with ¸¨
IF(EOMONTH($u$4,0)<(V30+1),"",(V30+1)
column w: weekdays from column v ¸¨ TEXT(V28,"[$-409]dddd"
column x: values, written manually (daily costumers)
column z and aa: day names and average of values by day
second table column aa: taking values from first small table and sorting values with ¨LARGE($AA$4:$AA$10,1
second table column z : determines weekdays in descending order with ¨INDEX($Z$4:$Z$10,MATCH(AA15,$AA$4:$AA$10,0)
there is nothing in cell u5,u6,...

q1: is it possible, in single table in descending order ; averages and weekdays, instead of two small tables?
q2: when i entered the values on column x, for exp 13th of the month,i have only 2 values for monday, but our formula divide 4 for averages ¨
{=AVERAGE(IF($V$4:$V$34<>"",IF(WEEKDAY($V$4:$V$34)=2,($X$4:$X$34))))}¨

i am sure so more practical ways for that table but i am a rookie for excel, i hope i explained now



 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
q1: is it possible, in single table in descending order ; averages and weekdays, instead of two small tables?
That would be possible but I think the formulas would be very large. I think I would stick to the two tables. If you don't like the look of the 2 tables, you could move the top one out to the right and hide those columns.



q2: when i entered the values on column x, for exp 13th of the month,i have only 2 values for monday, but our formula divide 4 for averages
OK, I have addressed that below, but also note that I have changed your formula for column Z in the bottom table. You need that change otherwise if it ever happens that two (or more) days in the top table have an equal average your existing formula would repeat one day and miss out one day in the bottom table.

Try these.

Excel Workbook
UVWXYZAA
41/09/20181/09/2018Saturday38Monday50
52/09/2018Sunday28Tuesday49.5
63/09/2018Monday42Wednesday36
74/09/2018Tuesday59Thursday34.5
85/09/2018Wednesday48Friday30.5
96/09/2018Thursday34Saturday43.66666667
107/09/2018Friday24Sunday35
118/09/2018Saturday35Average39.8125
129/09/2018Sunday37
1310/09/2018Monday58
1411/09/2018Tuesday40Monday50
1512/09/2018Wednesday24Tuesday49.5
1613/09/2018Thursday35Saturday43.66666667
1714/09/2018Friday37Wednesday36
1815/09/2018Saturday58Sunday35
1916/09/2018Sunday40Thursday34.5
2017/09/2018MondayFriday30.5
2118/09/2018TuesdayAverage39.8125
2219/09/2018Wednesday
2320/09/2018Thursday
2421/09/2018Friday
2522/09/2018Saturday
2623/09/2018Sunday
2724/09/2018Monday
2825/09/2018Tuesday
2926/09/2018Wednesday
3027/09/2018Thursday
3128/09/2018Friday
3229/09/2018Saturday
3330/09/2018Sunday
34
Av
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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