Ignore blanks for a SUM

Rex987456

New Member
Joined
Sep 11, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Trying to get the formula to ignore any blank results in columns B thru I for in the various days to get a proper average return. Can't figure out how to incorporate <>"" to make it work.

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
332024ThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturday
34Interval Start TimeM-FMondayTuesdayWednesdayThursdayFridaySaturdaySunday 8/29/20248/30/20248/31/20249/1/20249/2/20249/3/20249/4/20249/5/20249/6/20249/7/20249/8/20249/9/20249/10/20249/11/20249/12/20249/13/20249/14/20249/15/20249/16/20249/17/20249/18/2024#########9/20/2024#########
35AverageAverageAverageAverageAverageAverageAverageAverage
361200-010059.883.355.633.333.391.776.783.310067100756750100100100100100100674050755033100100
370100-020056.966.733.333.354.287.550.066.767100100100100100100501001001001000100100050
380200-030050.566.7100.033.38.356.387.533.307510001001001003350505010010010010050100100
390300-040029.450.016.733.350.00.075.00.01001005050100100100100100
400400-050036.316.741.733.360.425.075.033.375100502550100006710010010050100100
410500-060069.166.766.791.756.368.875.033.3100100100100100100100100100100100100251001007575
420600-070064.733.383.3100.037.575.055.080.610010010010010010010010020675010001007510010050100
430700-080074.766.777.486.178.666.358.866.791507550100885860466050100911001006940100541006410060
440800-090092.588.191.7100.092.590.970.143.3100645580100100100801007738100751009010062136410010010010088
450900-100076.677.4100.057.270.079.713.310.110086215851006667751737310086338818137510020807116
461000-110076.574.785.764.877.778.539.441.5100893067771004488254122791001003310010366957509010077
471100-120070.891.941.466.254.296.933.972.41008815100861427171004632100101000100886901007110010067
481200-130063.281.183.118.042.989.237.781.182705896210090100445582913123100201001005814678782
491300-140064.690.978.527.249.577.569.969.622606089918044501005460826730861008960100897405077
501400-150064.774.381.424.165.374.861.575.1393333869375255786315483693178808286461001788100100
511500-160069.373.067.847.668.584.788.295.267505310077335536100100100831008071891008659708100100100
521600-170070.887.970.482.655.864.698.193.3100679289912278082100918010010036171001009389708893100
531700-180047.854.034.968.045.340.297.996.77665929080195938910010027477942321001005539672555100
541800-190050.763.850.858.842.143.367.995.2682530100731002050894286192163204610010010031943013100
551900-200048.659.354.832.658.538.359.986.77150331005047401002410010050185033466360781008293344
562000-210058.943.843.654.080.563.881.370.1608038537864682448882442556100561007510100608075100
572100-220070.962.387.347.282.571.251.582.692739752982090674073738042609057100861001008856100
582200-230085.373.6100.095.294.266.787.5100.07714501003810086100100100100100100100100861001008310010010067100
592300-240094.191.7100.091.7100.087.570.066.710050100100100100751001001001001001001001008010075100100100100
60765935717555315460535366636748704864697449617273
Sheet1
Cell Formulas
RangeFormula
J33:AG33J33=TEXT(J34, "dddd")
B36:B59B36=SUM((WEEKDAY($J$34:$EI$34,2)<6)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)<6)*($J$34:$EI$34<>"")))
C36:C59C36=SUM((WEEKDAY($J$34:$EI$34,2)=1)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=1)*($J$34:$EI$34<>"")))
D36:D59D36=SUM((WEEKDAY($J$34:$EI$34,2)=2)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=2)*($J$34:$EI$34<>"")))
E36:E59E36=SUM((WEEKDAY($J$34:$EI$34,2)=3)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=3)*($J$34:$EI$34<>"")))
F36:F59F36=SUM((WEEKDAY($J$34:$EI$34,2)=4)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=4)*($J$34:$EI$34<>"")))
G36:G59G36=SUM((WEEKDAY($J$34:$EI$34,2)=5)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=5)*($J$34:$EI$34<>"")))
H36:H59H36=SUM((WEEKDAY($J$34:$EI$34,2)=6)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=6)*($J$34:$EI$34<>"")))
I36:I59I36=SUM((WEEKDAY($J$34:$EI$34,2)=7)*($J36:$EI36)/SUM(1*(WEEKDAY($J$34:$EI$34,2)=7)*($J$34:$EI$34<>"")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J60:AG60Expression=WEEKDAY(J$2:EI$2,2)>5textNO
J36:AF59Expression=WEEKDAY(J$2:EI$2,2)>5textNO
J33:AG35Expression=WEEKDAY(J$2:EI$2,2)>5textNO
J33:AG59Expression=WEEKDAY(J$2:EI$2,2)>5textNO
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this:

Cell Formulas
RangeFormula
B36:B59B36=AVERAGEIFS($J36:$AG36,$J$33:$AG$33,"<>Saturday",$J$33:$AG$33,"<>Sunday")
C36:I59C36=AVERAGEIFS($J36:$AG36,$J$33:$AG$33,C$34)
 
Upvote 0

Forum statistics

Threads
1,221,560
Messages
6,160,492
Members
451,652
Latest member
Ofnieee

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