+ Reply to Thread
Results 1 to 4 of 4

Sum after consideration of date ranges???

Hybrid View

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    Corpus Christi, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sum after consideration of date ranges???

    Good Morning All!!

    I am working on a spreadsheet that I would like to have data in one column added and the answer to populate in another column, but the I would like the data to take into consideration a date range before populating the answer. I think I thoroughly confused the words, but see the example below for claification. Any help is greatly appreciated!!!

    Column A Column B Column C Blank Column Qty for Sept Qty for Oct
    09/01/2013 Jane Doe 3 4 6
    10/01/2013 John Doe 2
    09/15/2013 Doe Jane 1
    10/15/2013 Doe John 4

    In the table above, I would like for the column labeled "Qty for Sept" to look at column A and for any dates in September, I would like it to add the numbers indicated in Column C and populate the answer under "Qty for Sept". Same for "Qty of Oct", I would like for the answer to be populated based on the dates entered in Column A that are October dates and add the numbers in Column C. I don't want to have to "sort" the spreadsheet to be able to calculate these numbers, I would prefer that it be done automatically with its current set-up. Again, any help would be greatly appreciated!!!

    Mandi

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Sum after consideration of date ranges???

    welcome to the forum, Mandi. assuming your Qty headers are in E1 & F1 respectively, type this in E1 instead:
    Sep2013
    select all the cells for the headers, right-click & format cells -> Custom:
    "Qty for "mmm

    then use this formula in E2:
    =SUMPRODUCT((TEXT($A$2:$A$10,"mmyy")=TEXT(E1,"mmyy"))*($C$2:$C$10))
    it's better to upload an Excel file in the next time. To do that, Click on GO ADVANCED and use the paperclip icon to open the upload window.
    View Pic
    and to illustrate your example better, click on How To Get Quick & Good Answers

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    Corpus Christi, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sum after consideration of date ranges???

    It worked!!!!! Thank you sooooo much!!!!!

    Mandi

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sum after consideration of date ranges???

    ...I'm gonna steal you're blank column and fill it with stuff.

    D1 = Month(A1)
    then pull down

    Then:
    Qty for Sept = SUMIF(D1:D100,9,C1:C100)
    Qty for Oct = SUMIF(D1:D100,10,C1:C100)
    Note that 100 should be "big enough for all the data", not necessary exactly 100.

    Well, I would stick them in a table like this:
    E1:E12 = 1:12 // "Month (Number)"
    F1 = SUMIF($D$1:$D$100,E1,$C$1:$C$100) // sum for month at same row
    //and pull down to F12
    maybe stick the formula in G1:G12 and have a month label in F1:F12 for easy reading.

+ 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-05-2012, 05:12 PM
  2. ranking with consideration to two different values
    By mpattaui in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2012, 12:18 AM
  3. % to Volume Formula taking into consideration days worked
    By kwilliams5675 in forum Excel General
    Replies: 7
    Last Post: 04-20-2010, 03:26 PM
  4. Macro that takes existing data into consideration
    By helen_007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2008, 06:34 PM
  5. [SOLVED] VBA Coding: Date Consideration
    By dzuy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2006, 06:10 AM

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