+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Adding Values In Columns with Multiple Criteria Where Column Head is One Of Criteria

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    New York, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Adding Values In Columns with Multiple Criteria Where Column Head is One Of Criteria

    Hello,

    This is my second thread and that means I am obviously stuck again The thing is that I started a new job and I have to be the Excel guru in the group. So I got a long way to get there.

    So here it is:

    My first sheet is a summary, the others are data(say fruit names, apples oranges etc). Data sheets used to be linear, with one value per line. My summary sheet had the folowing formula, to sum values meeting multiple criteria:


    =SUMPRODUCT(--('Apples'!$A$2:$A$393=A34), --('Apples'!$D$2:$D$393=$A$2),--('Apples'!$G$2:$G$393=$A$23),--('Apples'!$K$2:$K$393))

    Basically:

    if values in A,D, and G columns on the data sheets meet values on the summary, add up that line's numerical value on K. One of those columns had dates (quarter-ends)

    Subsequently, my manager asked me to create its own value column for every quarter(K,L,M,N) and I here is when I ran into a problem. I need to change the formula to say

    if values in A and D columns on the data sheets meet values on the summary, AND THE HEADING OF K OR L OR M OR N meets a value on the summary, add up THAT LINE'S and COLUMN'S numerical value. I guess this is a VLOOKUP territory, which I am not familiar with.

    Thanks in advance!

    Stan
    Last edited by ctac; 10-05-2011 at 12:44 PM. Reason: Clarification

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

    Re: Adding Values In Columns with Multiple Criteria Where Column Head is One Of Crite

    perhaps like:
    Please Login or Register  to view this content.
    where X1 in the MATCH() part contains the value to look for in K1:N1 to determine which column to sum.
    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
    Registered User
    Join Date
    10-03-2011
    Location
    New York, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Adding Values In Columns with Multiple Criteria Where Column Head is One Of Crite

    Seems to be working - thank you NBVC!

+ 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