+ Reply to Thread
Results 1 to 6 of 6

conditional average of 2 data columns

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: conditional average of 2 data columns

    in most of the cases the data is in the same location on both sheets. There are about 15 data columns on each sheet and 3 categorization columns (data1 data2 ..... data15 category1 category2 category3). names of the sheets are survey1 and survey2 . there are multiple sheets in the workbook but only 2 data worksheets

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: conditional average of 2 data columns

    If there are only 2 sheets then the easiest way would be like this...

    With the data located in the same range on each sheet, A2:B5...

    On some other sheet:

    A1 = Yes
    A2 = No

    Enter this formula in B1 and copy down to B2:

    =(SUMIF(Survey1!B$2:B$5,A1,Survey1!A$2:A$5)+SUMIF(Survey2!B$2:B$5,A1,Survey2!A$2:A$5))/(COUNTIF(Survey1!B$2:B$5,A1)+COUNTIF(Survey2!B$2:B$5,A1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Need Conditional Formula to Average the Data Depending on 2 Conditions
    By Snakehips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2013, 04:37 PM
  2. Average Value where data can be in different columns
    By MHewitt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2013, 03:31 PM
  3. Split data into average across columns
    By Zimbo760 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2011, 01:02 AM
  4. Average only columns with data
    By maxthebear in forum Excel General
    Replies: 2
    Last Post: 11-10-2009, 03:10 PM
  5. Average based on data in two columns
    By swright11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2008, 08:08 PM

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