+ Reply to Thread
Results 1 to 2 of 2

Sum data in row if 2 criterias are met

  1. #1
    Registered User
    Join Date
    09-22-2011
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    31

    Post Sum data in row if 2 criterias are met

    Hi all,

    I have tried searching but no luck for exactly what i want.


    I have a table with names down the left (say column A) and Months across the top row 1.

    I have a sheet with names in column D and dates from N10 -> ZZ10. The dates are in format 01-Jan etc, I have put the formula =Month(Cell) and formatted to mmmm to give the month name.

    Now i am trying to create some sort of lookup/sum which will find all matching instances of the name on column D and then find corresponding month you have specified and will add up the totals in the Cell.

    Attached is a kind of example of data layout and how i would like it to summarise? (Cells H5 to J5 should say February)

    example data.jpg

    Thanks
    Dan

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

    Re: Sum data in row if 2 criterias are met

    Try:

    =SUMPRODUCT(($D$11:$D$15=$M8)*(TEXT($E$10:$J$10,"MMMM")=N$6),$E$11:$J$15)
    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.

+ 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