+ Reply to Thread
Results 1 to 10 of 10

Formula that takes information from date and looks at criteria and sums it.

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Formula that takes information from date and looks at criteria and sums it.

    Hi, hope someone can help, I had a search but couldn't find anything.

    I have attached a little sample of data.

    I am trying to do a formula in cell B2, Sheet 2, which looks at the table on sheet 1 and by date it will sum up the quantities relevant to the product code.
    ie B2, Sheet 2, should equal 4304.

    Thanks in Advance
    Attached Files Attached Files
    Last edited by shaf1234; 03-21-2013 at 06:57 AM.

  2. #2
    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: Formula that takes information from date and looks at criteria and sums it.

    Try in B2. Copy down and across.

    =SUMPRODUCT((Sheet1!$D$2:$D$9=Sheet2!$A2)*(Sheet1!$A$2:$A$9=B$1)*(Sheet1!$F$2:$F$9))
    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.

  3. #3
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula that takes information from date and looks at criteria and sums it.

    the results were 0's.

  4. #4
    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: Formula that takes information from date and looks at criteria and sums it.

    The result in B2 is 4304.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula that takes information from date and looks at criteria and sums it.

    Thanks for that, but I'm pretty sure you know this, I am using a table created in excel, so how do I lock the columns? when i drag the formula, it moves to the next column.

  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: Formula that takes information from date and looks at criteria and sums it.

    Not sure what you mean. As you drag the formula in C2 it's get the result for 21/03/2013 and so on....

    Generally speaking when you want to lock a formula you use absolutte reference for the ranges and the cells using dollar sign...

    =sUMPRODUCT((Sheet1!$D$2:$D$9=Sheet2!$A$2 ............

  7. #7
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula that takes information from date and looks at criteria and sums it.

    when you create table it doesn't work like that. you cannot f4 it. make it absolute.

  8. #8
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula that takes information from date and looks at criteria and sums it.

    eg, the data on Sheet 1 convert to table, using insert table. Then if you redo your formula using the table, the drag option, moves columns, but copy and paste the formula works fine.

  9. #9
    Registered User
    Join Date
    03-14-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula that takes information from date and looks at criteria and sums it.

    Mind you. your formula has solved my issue!! Thanks and there's a star to appreciate your hard work.

  10. #10
    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: Formula that takes information from date and looks at criteria and sums it.

    ......................

+ 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