+ Reply to Thread
Results 1 to 3 of 3

Adding costs in a specific year

  1. #1
    Registered User
    Join Date
    10-07-2005
    Posts
    48

    Adding costs in a specific year

    Hi all,

    I am trying to add up a set of values if they have a specific name and are after a certain date.

    Attached is a spreadsheet with a very small example. I initially tried SUMPRODUCT but couldn't get it to work out how to tell if the date is in 2008 or 2007.

    Here is the example of the code I tired but the > 31/12/2007 bit doesn't work.

    Please Login or Register  to view this content.


    On the document I am trying to add up all costs with name a in 2008 as an example.

    Any help with this would be much appreciated.

    Cheers

    Simon
    Attached Files Attached Files

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

    =SUMPRODUCT(($D$5:$D$8="a")*($B$5:$B$8>"31/12/2007"+0),($C$5:$C$8))

    not the "a" must also have quotes around it.
    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-07-2005
    Posts
    48
    Thanks a lot, perfect

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding a year to all the dates in a column
    By brianpaul in forum Excel General
    Replies: 4
    Last Post: 05-01-2008, 01:21 PM
  2. Adding sick occurances in a rolling year
    By jarontea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2008, 05:14 PM
  3. how to generate report based on adding costs of particular category
    By hoser in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-20-2007, 06:58 PM
  4. Adding a specific constant value line to chart
    By harryg in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2007, 07:58 PM
  5. Future value of money?
    By Alib in forum Excel General
    Replies: 1
    Last Post: 01-13-2007, 04:36 AM

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