+ Reply to Thread
Results 1 to 5 of 5

Thread: Sum if / product - can get it to work?

  1. #1
    Registered User
    Join Date
    02-28-2011
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Sum if / product - can get it to work?

    Hi,

    I have been trying for ages to get a formula to work which will sum a column of entries based on two categories. I am not too keen on using a pivot table and would like to find out what the best formula to use is.

    basically I have 3 columns of data with about 2000 row entries in each column.
    Column A) consists of various dates across through the year
    Column B) consists of a variety of categroies of spend
    Column C) is the amount in £

    I would like to create a formula that sums the total amuont of £ spent on catergory "income" for example for the month of January.

    so far I have tried

    {=SUM(IF($B$51:$B$684 = "Income", IF($A$51:$A$684 = DATEVALUE("January 2011"), $A$51:$A$684, 0), 0))}

    but i cant get it to work. I would like to repeat this for each month and so on.

    Your help will be very much appreciated.

    Al

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    Re: Sum if / product - can get it to work?

    Try

    =SUMPRODUCT(($B$51:$B$684="Income")*(TEXT($A$51:$A$684,"mmm-yy")="Jan-11"),$C$51:$C$684)
    Audere est facere

  3. #3
    Registered User
    Join Date
    02-28-2011
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum if / product - can get it to work?

    Thanks but all I seem to get is the answer 0.00 so there is something not quite right somewhere??

  4. #4
    Registered User
    Join Date
    02-28-2011
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum if / product - can get it to work?

    Take that back - got it to work. Thanks v much

  5. #5
    Registered User
    Join Date
    02-28-2011
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum if / product - can get it to work?

    Wondering if you can help once more -

    how would i create a formula that takes only partial cell contents from the category say "Car" to capture all sub-catergories of that category??

    Thanks in advance

+ 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.2.0