+ Reply to Thread
Results 1 to 12 of 12

How to shift a sum range from one column to another depending on Month?

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    How to shift a sum range from one column to another depending on Month?

    Hi,

    I have one sheet that looks like this:

    January February March April Etc..
    ##### #### ### ### ##
    ##### #### ### ### ##
    ##### #### ### ### ##
    ##### #### ### ### ##
    ##### #### ### ### ##

    The above picture shows that the first row in each column is a month and under each month there are numbers.

    Now I have a 2nd sheet with a highlighted cell where I type in the month I want. I want another cell to SUM the first the numbers under each month DEPENDING on the month I type in my highlighted cell.

    For example, if I type January, then I want only the sum of the first three numbers under january. If i type april then i only want the sum of the first three numbers under april.

    Is this possible?

    Thanks,

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to shift a sum range from one column to another depending on Month?

    Yes it is,

    but i suggest you use pivot table for that kind of work.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to shift a sum range from one column to another depending on Month?

    Hi

    Try

    =SUMPRODUCT((Sheet1!$A$1:$L$1=Sheet2!A1)*(Sheet1!$A$2:$L$4))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to shift a sum range from one column to another depending on Month?

    I am not allowed to use a pivot table Please help!

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to shift a sum range from one column to another depending on Month?

    Hi Fotis1991,

    The formula did not work. It says #Value!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to shift a sum range from one column to another depending on Month?

    Formula works fine for what you described.

    So.

    Be sure that best way to describe your problem is to upload a sample workbook.

    Be sure that all sensitive data removed, showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that.

    To attach a small sample workbook.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to shift a sum range from one column to another depending on Month?

    1st sheet.PNGSheet 2.PNGpic 3.PNG

    The first picture is sheet 1, second one is sheet 2, and the 3rd pic is the formula i am using based on ur reply.

    Thanks!

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to shift a sum range from one column to another depending on Month?

    last try..

    Pictures are nice but i can not work on these. Can you?

    Pls attach a sample workbook.

  9. #9
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to shift a sum range from one column to another depending on Month?

    Hi,

    I figured it out! Thank you for your help!

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to shift a sum range from one column to another depending on Month?

    what was the solution? please post here for the benefit of all members
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to shift a sum range from one column to another depending on Month?

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

  12. #12
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to shift a sum range from one column to another depending on Month?

    This was the solution:

    =+SUM(INDEX(Sheet1!C4:N15,0,MATCH(Sheet2$C$10,months,0)))

+ 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. Delete first value and shift cells up when new cell gets added in a range (column)
    By nlazarov in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 08:34 AM
  2. Delete first value and shift cells up when new cell gets added in a range (column)
    By nlazarov in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 07:53 AM
  3. Replies: 4
    Last Post: 09-26-2012, 01:15 AM
  4. Changing Source column for formula depending on month
    By john_london in forum Excel General
    Replies: 2
    Last Post: 10-01-2010, 10:36 AM
  5. [SOLVED] Fill column with dates of month depending on month in A1
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2005, 09:06 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