+ Reply to Thread
Results 1 to 7 of 7

Summary of the expenses

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    East
    MS-Off Ver
    Excel 2007
    Posts
    60

    Summary of the expenses

    hi forum,
    i m facing some problem with the formula in my worksheet.i had a worksheet with the following data.
    Date Month Sales Man Amount
    01/4/11 Apr'11 A 1504
    01/4/11 Apr'11 B 1425
    01/5/11 May'11 A 1400
    01/5/11 May'11 B 1409
    01/6/11 Jun'11 A 1580
    01/6/11 Jun'11 A 1250

    I had built a table with the format:

    DESIRED TABLE:##
    Sales Man Apr'11 May'11 Jun'11
    A 1504 1400 1580
    B 1425 1409 1250

    I know the same can be achieved using pivot table..but i want to do the same using a formula.For that i tried with Sumproduct. i used Name for the ranges for achieving the same.
    For example:
    Amt for the Amount Column in the main table/data
    s_man for the salesman Column in the main table/data
    Mon for the Month Column in the main table/data

    FORMULA USED IN THE DESIRED TABLE
    =SUMPRODUCT(s_man=$A$2)*(Mon=B1)*(amt)

    i need sumproduct to show the total amount the salesman A had made in Apr month.similar with the other salesman B in all the months...
    The result i m getting is :0 in all the cells in the desired table....

    Please tell me where i m going wrong....

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Summary of the expenses

    Here is one approach:

    (Use SUMPRODUCT instead of SUMIFS for pre-2007 version)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    East
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Summary of the expenses

    I tried with SUMPRODUCT only zbor.kindly check once again.Error not traced..

  4. #4
    Registered User
    Join Date
    08-23-2011
    Location
    East
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Summary of the expenses

    I think i can achieve the same using NAMED RANGES in my formula even for SUMIFS also...

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Summary of the expenses

    Works for me.. What doesn't work for you?

  6. #6
    Registered User
    Join Date
    08-23-2011
    Location
    East
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Summary of the expenses

    zbor,your sumifs work for me also.I m trying with the sumproduct & named ranges.kindly help.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Summary of the expenses

    Here is SUMPRODUCT version:

    =SUMPRODUCT(Sheet1!$D$2:$D$1000, --(Sheet1!$C$2:$C$1000=Sheet2!$A2), --(Sheet1!$B$2:$B$1000=Sheet2!B$1))

    You only need to name ranges as you want (i.e. instead of --(Sheet1!$C$2:$C$1000=Sheet2!$A2) --(NameThisRange=Sheet2!$A2))

+ 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