+ Reply to Thread
Results 1 to 9 of 9

Pulling data from list into month/year table

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    5

    Pulling data from list into month/year table

    Hey Guys,

    I am trying to create a table (years on top, months on side) to track my utility meter data. I have a lot of data with random start and end dates and i've been trying to get the data ("Average daily consumption normalized for calender" column) to simply go into the cell that applies to it (example: if I had a meter start date of august 10th 2007, I would want that to pull from the list into the table cell for august 2007.) The main problem I'm having is getting it to recognize the years and format it correctly. At first this seemed an easy task, but I've given it a few days work, tried many things, and not much has proven successful. Below are a few images of what i'm looking at and trying to accomplish. One is of the list I'm trying to pull from, and the other is the table i'm trying to put the data into. I would appreciate any help or advice. Thank you. expirement table 1.jpgexpirement table 2.JPG
    Attached Images Attached Images
    Last edited by EC11; 09-16-2013 at 06:54 PM.

  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: Pulling data from list into month/year table

    Ok, we can do this...

    However, I'm not about to try to recreate your data so you're going to have to post a SMALL sample file that we can work on.

    SMALL = about 20 rows worth of data
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-13-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Pulling data from list into month/year table

    Thanks Tony,

    Here is a small sample of what i'm looking to transfer into the table:


    A1-Start Date B1-End Date C1-Usage/Quantity D1-Cost ($) E1-Days in Billing Period F1-Average Daily Use G1-Days in Month H1-calcs I1-Avg Daily Consumption normalized for calender month J1-ave monthly consumption
    5/16/2007 6/15/2007 159600 27856.76 30 5,320 31 329,600 5,403 167,502
    6/15/2007 7/18/2007 170000 29230.46 33 5,152 30 334,800 5,489 164,656
    7/18/2007 8/16/2007 164800 28457.22 29 5,683 31 340,800 5,497 170,400
    8/16/2007 9/17/2007 176000 29917.64 32 5,500 31 328,400 5,384 166,892
    9/17/2007 10/15/2007 152400 26532.58 28 5,443 30 305,200 5,003 150,098
    10/15/2007 11/13/2007 152800 23106.65 29 5,269 31 305,600 5,010 155,305
    11/13/2007 12/14/2007 152800 18589.29 31 4,929 30 279,200 4,577 137,311
    12/14/2007 1/14/2008 126400 18589.29 31 4,077 31 260,400 4,200 130,200
    1/14/2008 2/12/2008 134000 15557.65 29 4,621 31 280,800 4,680 145,080
    2/12/2008 3/13/2008 146800 17462.94 30 4,893 29 284,800 4,747 137,653
    3/13/2008 4/11/2008 138000 16661.38 29 4,759 31 286,000 4,689 145,344
    4/11/2008 5/13/2008 148000 20207.19 32 4,625 30 307,200 5,036 151,082
    5/13/2008 6/12/2008 159200 25795.07 30 5,307 31 318,800 5,226 162,013
    6/12/2008 7/14/2008 159600 25776.14 32 4,988 30 311,600 5,108 153,246
    7/14/2008 8/12/2008 152000 24805.9 29 5,241 31 311,200 5,019 155,600
    8/12/2008 9/11/2008 159200 25761.21 30 5,307 31 308,800 5,062 156,931
    9/11/2008 10/10/2008 149600 25046.08 29 5,159 30 298,800 4,898 146,951
    10/10/2008 11/10/2008 149200 23702.76 31 4,813 31 286,400 4,695 145,548


    What i'm looking to transfer into looks like:

    Average Daily Use Year
    Calendar Month 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    Complete Year Total Consumption 0 0 0 0 0 0 0 0 0 0

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

    Re: Pulling data from list into month/year table

    Which column do we want to pull the data from? Column F?

  5. #5
    Registered User
    Join Date
    09-13-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Pulling data from list into month/year table

    Column I- "Avg Daily Consumption normalized for calender month"

  6. #6
    Registered User
    Join Date
    09-13-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Pulling data from list into month/year table

    Start Date End Date Avg Daily Consumption normalized for calender month
    5/16/2007 6/15/2007 5,403
    6/15/2007 7/18/2007 5,489
    7/18/2007 8/16/2007 5,497
    8/16/2007 9/17/2007 5,384
    9/17/2007 10/15/2007 5,003
    10/15/2007 11/13/2007 5,010
    11/13/2007 12/14/2007 4,577
    12/14/2007 1/14/2008 4,200
    1/14/2008 2/12/2008 4,680
    2/12/2008 3/13/2008 4,747
    3/13/2008 4/11/2008 4,689
    4/11/2008 5/13/2008 5,036
    5/13/2008 6/12/2008 5,226
    6/12/2008 7/14/2008 5,108
    7/14/2008 8/12/2008 5,019
    8/12/2008 9/11/2008 5,062
    9/11/2008 10/10/2008 4,898
    10/10/2008 11/10/2008 4,695


    Columns A, B, and I for your convenience

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

    Re: Pulling data from list into month/year table

    Try this...

    Data on Sheet1 in the range A2:J19


    Sheet2
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    1
    Month
    2007
    2008
    2009
    2010
    2011
    2012
    2013
    2014
    2015
    2016
    2
    1
    0
    4680
    0
    0
    0
    0
    0
    0
    0
    0
    3
    2
    0
    4747
    0
    0
    0
    0
    0
    0
    0
    0
    4
    3
    0
    4689
    0
    0
    0
    0
    0
    0
    0
    0
    5
    4
    0
    5036
    0
    0
    0
    0
    0
    0
    0
    0
    6
    5
    5403
    5226
    0
    0
    0
    0
    0
    0
    0
    0
    7
    6
    5489
    5108
    0
    0
    0
    0
    0
    0
    0
    0
    8
    7
    5497
    5019
    0
    0
    0
    0
    0
    0
    0
    0
    9
    8
    5384
    5062
    0
    0
    0
    0
    0
    0
    0
    0
    10
    9
    5003
    4898
    0
    0
    0
    0
    0
    0
    0
    0
    11
    10
    5010
    4695
    0
    0
    0
    0
    0
    0
    0
    0
    12
    11
    4577
    0
    0
    0
    0
    0
    0
    0
    0
    0
    13
    12
    4200
    0
    0
    0
    0
    0
    0
    0
    0
    0


    This formula entered in B2:

    =SUMPRODUCT(--(TEXT(Sheet1!$A$2:$A$19,"myyyy")=$A2&B$1),Sheet1!$I$2:$I$19)

    Copy down to B13 then across to K2:K13.

  8. #8
    Registered User
    Join Date
    09-13-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Pulling data from list into month/year table

    Yes, it worked. Thank you very much.

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

    Re: Pulling data from list into month/year table

    You're welcome. Thanks for the feedback!

+ 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. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  2. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  3. [SOLVED] Sort by Month and year in pivot table
    By mb1074 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-21-2013, 02:05 PM
  4. [SOLVED] how to return a day(number) by selecting month and year from data list
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-24-2012, 02:43 PM
  5. Pulling of month & year from date cell
    By tariqnaz2005 in forum Excel General
    Replies: 5
    Last Post: 12-02-2009, 10:40 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