Results 1 to 6 of 6

Thread: Averageif specific cells rather than a range
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Apr 2018
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Averageif specific cells rather than a range

    I am trying to create an averageif formula but rather than for a range, a specific set of cells:

    A1, A5, A7

    I thought it would be as follows:

    =averageif((A1, A5, A7), "<>"))

    But this returns #Value!

    Any advice or help would be much appriciated.

    Iain.

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,190
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Averageif specific cells rather than a range

    Why not just use Average
    =average(A1, A5, A7)
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    New Member
    Join Date
    Apr 2018
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Averageif specific cells rather than a range

    Quote Originally Posted by Fluff View Post
    Why not just use Average
    =average(A1, A5, A7)
    Thanks for the reply.

    My cells on occasions will all be blank and if I used the formula above this returns #DIV/0!

    Any ideas on how to get around this?

    Iain.

  4. #4
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,190
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Averageif specific cells rather than a range

    How about
    =IFERROR(AVERAGE(A1, A5,A7),"no values")
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  5. #5
    New Member
    Join Date
    Apr 2018
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Averageif specific cells rather than a range

    Quote Originally Posted by Fluff View Post
    How about
    =IFERROR(AVERAGE(A1, A5,A7),"no values")
    Thanks. That worked a treat. Much appriciated. Iain.

  6. #6
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,190
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Averageif specific cells rather than a range

    You're welcome & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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