+ Reply to Thread
Results 1 to 3 of 3

Returning the average of cells, based on the value of cells in a previous column

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Returning the average of cells, based on the value of cells in a previous column

    As the title states:

    I would like to return the average of a number of cells in a column, but only the cells that are next to a cell in a previous column, that displays a 1.

    My explanation is terrible, but the following example displays how simple the actual problem is:

    Question.xlsx

    I was thinking of using VLOOKUP() in combination with AVERAGE() but am having difficulties.

    Cheers

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Returning the average of cells, based on the value of cells in a previous column

    Just use

    =AVERAGEIF(B:B,1,C:C)

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Returning the average of cells, based on the value of cells in a previous column

    Thanks!

    I feel a bit ashamed, this was such an easy solution!

    Thanks for the quick reply!

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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