+ Reply to Thread
Results 1 to 5 of 5

Sum function with match months and add columns

Hybrid View

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Sum function with match months and add columns

    Hi All,

    I thought i have well explained my query in the attached sheet.
    Please help. Thanks in advance.

    Regards,
    Suresh
    Attached Files Attached Files
    Last edited by sureshpunna; 02-23-2013 at 03:48 AM. Reason: Solved

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum function with match months and add columns

    Hi Suresh,

    Try using below formula:-

    Formula: copy to clipboard
    =SUM(OFFSET($B3,0,MATCH(K$2,$C$2:$I$2,0),1,$B3))


    see attached:- Book1(50).xlsx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

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

    Re: Sum function with match months and add columns

    hi Suresh, some other alternatives:
    =SUMIFS($C3:$I3,$C$2:$I$2,">="&K$2,$C$2:$I$2,"<="&EOMONTH(K$2,2))
    =SUMPRODUCT($C3:$I3,($C$2:$I$2>=K$2)*($C$2:$I$2<=EOMONTH(K$2,2)))

    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

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Sum function with match months and add columns

    Thank you so much both of you...!!!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum function with match months and add columns

    You are welcome Suresh..

    cheers


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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