+ Reply to Thread
Results 1 to 1 of 1

Trying to Average past 6 months data but need to omit column N (Total)

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    12

    Trying to Average past 6 months data but need to omit column N (Total)

    I have a workbook that contains 5 tabs of data and an Analysis tab that compiles the data. On my "Analysis" tab the user chooses the date they would like to see (e.g. 1/1/2014), I am trying to average the last 6 months of data based on the date chosen (July 2013 - Decemeber 2013). The only thing is that between Dec 2013 and Jan 2014 is a column that is totaling the 2013 data. I am trying to skip this column when averaging the data. I have been unsuccessful in doing so. Any help is appreciated.

    The formula that I am using is:

    =(VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0),FALSE)+VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0)-1,FALSE)+VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0)-2,FALSE)+VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0)-3,FALSE)+VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0)-4,FALSE)+VLOOKUP(VLOOKUP($A10,Lookup_Sheet!$A:$E,MATCH(C$6,Lookup_Sheet!$A$3:$E$3,0),FALSE),INDIRECT("'"&C$6&"'!A:OA"),MATCH($B$2,INDIRECT("'"&C$6&"'!B6:OA6"),0)-5,FALSE))/6

    The issue is that column "N" or Column "13" is the Totals column and I do not want that column to be used in the calculation. I would like the column to be skipped.
    Last edited by Ozzie1121; 02-11-2014 at 11:10 AM.

+ 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. Replies: 3
    Last Post: 12-12-2013, 04:00 PM
  2. [SOLVED] Average hourly values of the same day (one column with six months of data)
    By Exorbit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2013, 06:42 AM
  3. [SOLVED] Calculate total dollar amount the is past the past due date
    By Barb1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-12-2012, 05:34 PM
  4. average monthly costs for the past three months and forcast by 1%
    By Bjones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2007, 09:04 AM
  5. [SOLVED] Graphing past months (totals) and current month (weekly total) in
    By Davin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-27-2005, 12:05 PM

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