If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > quering bank info

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-07, 13:51
fullymooned fullymooned is offline
Registered User
 
Join Date: Apr 2004
Location: ny, ny
Posts: 224
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
Reply With Quote
  #2 (permalink)  
Old 07-01-07, 04:52
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
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
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
Reply With Quote
  #3 (permalink)  
Old 07-01-07, 11:09
fullymooned fullymooned is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 07-01-07, 19:38
shades shades is offline
Registered User
 
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)
__________________
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

Last edited by shades; 07-01-07 at 22:36.
Reply With Quote
  #5 (permalink)  
Old 07-01-07, 22:36
shades shades is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On