Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224

    Unanswered: quering bank info

    I have an excel sheet with banking information (date, amount, category .... )
    category contains (food, transportation, entertainment ... )
    how do i find how much i spend on food between a timeperiod

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,418
    Provided Answers: 7
    Look under subtotals that should help
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224
    subtotal will not give me conditional sum. What I need to find is sum of all money spend on food from may 1 to may 31 OR sum of all money spend on transportation from June 1 to June 31 and so on

  4. #4
    Join Date
    Oct 2003
    Posts
    1,091
    Assume dates in column A, Identity in column B and totals in column C. You can use SUMPRODUCT:

    =SUMPRODUCT(($A$1:$A$20>=5/1/2007)*($A$1:$A$20<=5/31/2007)*($B$1:$B$20="Food"),$C$1:$C$20)

    Adjust ranges as needed. Also you may need to work with date formats. It might be easier to set up start and end dates in two cells (i.e. D1 is start date, then D2 is End Date), and category in D3, then your formula would be:

    =SUMPRODUCT(($A$1:$A$20>=$D$1)*($A$1:$A$20<=$D$2)* ($B$1:$B$20=$D$3),$C$1:$C$20)
    Last edited by shades; 07-01-07 at 23:36.
    old, slow, and confused
    but at least I'm inconsistent!

    Rich
    (retired Excel 2003 user, 3/28/2008)

    How to ask a question on forums

  5. #5
    Join Date
    Oct 2003
    Posts
    1,091
    Or you could use a Pivot table.
    old, slow, and confused
    but at least I'm inconsistent!

    Rich
    (retired Excel 2003 user, 3/28/2008)

    How to ask a question on forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •