+ Reply to Thread
Results 1 to 8 of 8

sumifs formula one range with two criteria

  1. #1
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    sumifs formula one range with two criteria

    I have using excel 2007.

    I have two sheet one is "DATA" & Second is "SUMMARY"

    Firstly if i using following formula that work perfectly.
    =SUMIF(DATA!E$3:E$110,SUMMARY!E8,DATA!F$3:F$110)
    =sumif(range,criteria,sum range)

    In DATA sheet column e is shortcut key & column f is value.
    In SUMMARY sheet e9 is a shortcut key this match with data sheet e column.
    In Data sheet f2 : ae2 is month & year i.e. 52011
    In Summary sheet d9 is also month & year i.e. 52011

    Presently i am using following formula but below formula not work.
    =SUMIFS(DATA!F3:F110,DATA!E3:E110,E9,DATA!F2:AE2=D9)

    in view of the above confirm.
    Last edited by avk; 07-13-2012 at 01:49 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sumifs formula one range with two criteria

    I am not sure if I can make sense of the logic.

    You are trying to sum F3:F110 if E3:E110 matched E9, and F2:AE2 matches D9?

    not sure how those connect.. are you sure about the ranges?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: sumifs formula one range with two criteria

    Hi avk,

    Just checked your SUMIFs formula and found one mistake of = sign , try below:-

    =SUMIFS(DATA!F3:F110,DATA!E3:E110,E9,DATA!F2:AE2,D9)

    Also the last syntax i.e, DATA!F2:AE2,D9
    I guess SumIFs accepts common ranges ,so try DATA!AE2:AE110,D9

    But I strongly believe, you are using last syntax for row instead of column match
    In case of any issue, upload a sample workbook. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: sumifs formula one range with two criteria

    In data sheet f3:f110 is value.
    In data sheet e3:e110 is product name
    In data sheet f2:ae2 is month&year i.e. 42011, 52011 etc (this is using formula =month(f2)&year(f2)

    In summary sheet e8 to e20 is product name.
    In summary sheet d8 to d20 is month&year i.e. 42011, 52011 etc (this is also using formula =MONTH(C8)&YEAR(C8)
    In summary sheet f8 to f20 i required total sum value as per above matching with product as well as month&year.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: sumifs formula one range with two criteria

    mr.dilip file is attach.
    Attached Files Attached Files

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

    Re: sumifs formula one range with two criteria

    Hi avk,

    Try using below formula:-
    {=SUM(IF((DATA!$F$2:$AE$2=SUMMARY!$D8)*(DATA!$E$2:$E$110=SUMMARY!$E8),DATA!$F$2:$AE$110,""))}

    Enter with Ctrl +Shift +Enter key combination

    See attached:- SPARE_DATA_PRESENTATION.xlsx

    regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: sumifs formula one range with two criteria

    Thanks Dilipji

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

    Re: sumifs formula one range with two criteria

    You are welcome..

    Cheers

    Suggest you to mark this thread as [SOLVED]. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' 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