+ Reply to Thread
Results 1 to 11 of 11

Averaging Values with N/A's

  1. #1
    Registered User
    Join Date
    10-26-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Averaging Values with N/A's

    Hey everyone,

    So I have a quick question. I created this table that's calculating averages of averages.

    Essentially, I am taking a number (like 5) in one column and multiplying by an average I calculating somewhere else in the sheet (say 2.67)

    Now, there are many rows that have numbers like this ex: 5 and 2.67, 32 and 5.43, 70 and 4.02, so on so forth.

    The issue is, some of the rows have N/A's in the second column because there is no data to calculate an average.

    Is there a way to disclude those N/A's from my formula where I'm essentially taking an average of the average values? Here's the equation...sorry it's a bit long. Let me know if there's a better way to write that as well.

    =((E260*D260)+(E261*D261)+(E262*D262)+(E263*D263)+(E264*D264)+(E265*D265)+(E266*D266)+(E267*D267)+(E268*D268)+(E269*D269)+(E270*D270)+(E271*D271)+(E272*D272)+(E273*D273)+(E274*D274)+(E275*D275))/D277

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Averaging Values with N/A's

    Welcome to the forum.

    You could do this:

    IFNA(E260*D260,0)

    Or use AVERAGEIFS, maybe.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-26-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: Averaging Values with N/A's

    Hopefully this works...
    Attached Images Attached Images

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Averaging Values with N/A's

    There are instructions at the top of the page explaining how to attach your sample workbook. I did not ask for a picture of it.

  5. #5
    Registered User
    Join Date
    10-26-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: Averaging Values with N/A's

    Apologies. I will figure out how to do that.
    Last edited by 12sarah96; 10-26-2020 at 11:10 AM. Reason: Attaching File

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Averaging Values with N/A's

    I shall repeat again:

    There are instructions at the top of the page explaining how to attach your sample workbook.

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

    Re: Averaging Values with N/A's

    ??? Is this what you wanted?

    =SUMPRODUCT(D2:D17,C2:C17)/C19
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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 2403
    Posts
    43,984

    Re: Averaging Values with N/A's

    The file was there... and now it has gone!!

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

    Re: Averaging Values with N/A's

    Here's the suggested formula in your vanishing file...
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-26-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    4

    Re: Averaging Values with N/A's

    Hey Glenn!

    yes, that's exactly what I needed. Thank you for taking a look at the sheet.

    Sorry, I deleted it! I thought I didn't post it correctly, but it turns out I did.

    First post and was just trying figure out the ropes.

    Appreciate the help!

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

    Re: Averaging Values with N/A's

    LoL.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Averaging Data values, but only the values on WORKDAYS (no weekend/holidays)
    By Alphabex in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-02-2015, 06:02 PM
  2. averaging values if a certain name is next to it
    By cobra0798 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2014, 04:07 PM
  3. Replies: 12
    Last Post: 09-04-2013, 03:55 PM
  4. Averaging only certain values
    By MasonSinclair in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2012, 05:26 AM
  5. Averaging values based on seperate column values
    By beng404 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2011, 10:07 AM
  6. Averaging every set of four values
    By Sharief in forum Excel General
    Replies: 6
    Last Post: 12-05-2009, 10:27 AM
  7. Replies: 0
    Last Post: 08-29-2005, 07:45 AM

Tags for this Thread

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