+ Reply to Thread
Results 1 to 10 of 10

Average Formula but does not include blank fields

  1. #1
    Registered User
    Join Date
    08-09-2020
    Location
    USA
    MS-Off Ver
    Microsoft Office 365 Pro Plus
    Posts
    13

    Average Formula but does not include blank fields

    I need a formula that shows the average of c6+d6+F6+g6+i6+j6+l6+m6+o6+p6+r6+s6+u6+v6 BUT if the field is blank it does not include in the calculation in y6

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Formula but does not include blank fields

    ?? Blanks are ignored.

    =AVERAGE(C6:D6,F6:G6,I6:J6,L6:M6,O6:P6,R6:S6,U6:V6)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-09-2020
    Location
    USA
    MS-Off Ver
    Microsoft Office 365 Pro Plus
    Posts
    13

    Re: Average Formula but does not include blank fields

    Yes, for example: O6:V6 has no data so that formula calculates that as a 0 but its not 0 as the data has just not occurred yet - Daily pull of info

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Formula but does not include blank fields

    I don't understand. In the file I uploaded, the blank values were not counted in calculating the average. The average of 1, 2 and a pile of blanks is 1.5

    SHOW me in a sample file what is going wrong.

  5. #5
    Registered User
    Join Date
    08-09-2020
    Location
    USA
    MS-Off Ver
    Microsoft Office 365 Pro Plus
    Posts
    13

    Re: Average Formula but does not include blank fields

    ok i figured out what i was explaining wrong. I have three data points divided by day. I need the formula to add the three data points together but should only count that as ONE days worth of data. Right now its trying to divide by 21 instead of 7. i think i got the attachment to work
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Formula but does not include blank fields

    Please remove the password protection and repost. Where is the formula to be found?

  7. #7
    Registered User
    Join Date
    08-09-2020
    Location
    USA
    MS-Off Ver
    Microsoft Office 365 Pro Plus
    Posts
    13

    Re: Average Formula but does not include blank fields

    Z6:Z21 is where the formula should be found. Sorry about the PW - thought i took that off
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Formula but does not include blank fields

    Your sheet does not tally with your explanation. The formula is averaging REGULAR hours. If that's what you want... and you want to ignore blanks and zeros (your explanation is FAR from clear!!!), you need:

    =AVERAGEIFS(D6:X6,$D$5:$X$5,"Regular",D6:X6,"<>0")

    copied down.

  9. #9
    Registered User
    Join Date
    08-09-2020
    Location
    USA
    MS-Off Ver
    Microsoft Office 365 Pro Plus
    Posts
    13

    Re: Average Formula but does not include blank fields

    Ill try and explain a different way -

    FRIDAY
    Regular MANAGER SHIFT SMART
    25 25 25

    I need these three numbers added together and count as one days worth of data = 75 for Friday.

    SATURDAY
    REGULAR MANAGER SHIFT SMART
    25 25 25
    =75

    SUNDAY
    REGULAR MANAGER SHIFT SMART
    NO DATA NO DATA NO DATA


    Average should be (75+75)/2=75. Its currently doing 75/6 as there are 6 data points.

    (D6:F6)+(G6:I6) ect. all the way through V6:X6 added together divided by 7 maximum and less if there is no data in the cells.

    I do have it listed currently as just regular time as I could not figure out how to get this formula to work.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Average Formula but does not include blank fields

    I don't see that scenario shown anywhere in your sample sheet. (I've added it in row 21).

    If this were me, I think I would add a column to each day, and have that sum the other three values for that day. =IF(SUM(D6:F6)=0,"",SUM(D6:F6)) in a newly inserted G6. Repeat for the other 7 days of the week. Then, this average formula would be =AVERAGE(G6, K6, O6,...) [see column AI].

    Would you be allowed to insert that helper column into each days block of cells, or would such a thing be forbidden?
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Blank out zeros but to include Average formula also???
    By conks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2015, 12:24 PM
  2. Replies: 3
    Last Post: 09-01-2014, 05:56 PM
  3. [SOLVED] Include only filtered data in an average formula
    By Consty1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2013, 09:59 AM
  4. Replies: 15
    Last Post: 03-16-2012, 07:45 PM
  5. Average Formula - Include zeros
    By arvin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-07-2010, 02:09 PM
  6. Replies: 17
    Last Post: 06-27-2006, 08:40 AM
  7. Replies: 0
    Last Post: 03-03-2006, 03:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1