+ Reply to Thread
Results 1 to 4 of 4

How do you average a column if another column's cells say "Yes"

Hybrid View

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    17

    How do you average a column if another column's cells say "Yes"

    How do you average a column if another column's cells say "Yes".

    So if column A says Yes it counts the amount in column B.

    I have attached a spreadsheet as an example.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How do you average a column if another column's cells say "Yes"

    This should do it:

    Formula: copy to clipboard
    =AVERAGEIF(A2:A18,"yes",B2:B18)
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    01-12-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    17

    Re: How do you average a column if another column's cells say "Yes"

    That's great.

    Thank you for your quick response.

    Rachael

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do you average a column if another column's cells say "Yes"

    Hi and welcome to the forum

    Formula: copy to clipboard
    =AVERAGEIF(A2:A18,"Yes",B2:B18)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] How can I copy "=Average(A1:A2)" and paste as "=Average(A3:A4)" in next space in column?
    By matt_m_is_me in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-27-2014, 11:02 AM
  2. Macro to copy cells from workbook,where column C is = "num1" AND Column D ="num2"
    By jarious87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 03:30 PM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. [SOLVED] Average cells in column B that have value "Test" in column A
    By gammaman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2012, 09:33 PM
  5. Copy value from column "X" paste into Column "Y" - visible cells
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2012, 05:46 AM

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