LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Anders
 
Posts: n/a
Default Find dates in a range; then sum values in that range by a crit

Hej Peo,

Stort tack för hjälpen. Det löste problemet snyggt o elegant.

Mvh
Anders




"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A2:A366=DATE(2005,1,1)),--(A2:A366<=DATE(2005,1,31)),--(B2:B
366="Rent"),C2:C366)

in Swedish

=PRODUKTSUMMA(--(A2:A366=DATUM(2005;1;1));--(A2:A366<=DATUM(2005;1;31));--(
B2:B366="Hyra");C2:C366)

will do it for January 2005


--

Regards,

Peo Sjoblom



"Anders" <andersUNDERSCOREsjomanATyahooDOTcom wrote in message
...
Hi,

For my private finances, I am trying to group all my monthly expenses. I
have downloaded from my bank all expenses for the last year, and marked

each
entry with the type of expense (rent, electricity, food, fun, etc.) This
leaves me with a table with three columns: Date, Amount and Type

Now, in a separate part, I would like to create a formula that first finds
dates within a range (I give start and end dates), and that then would sum

up
the values for a given criteria (for instance rent). This would allow me

to
see, e.g. how much I spent on food between such and such a date.

I have been mocking around with IF, SUM, SUMIF statements, but cannot get

it
to work. I have managed the second part (take a criteria, such as rent,

and
sum all values in a given range) using SUMIF, but cannot figure out how I

can
input a start and end value to define the range, instead of hardcoding the
range with cell references.

Anybody got any thoughts?

Many thanks,
Anders Sjöman, Stockholm





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing values within a range rmellison Excel Discussion (Misc queries) 7 September 2nd 05 12:43 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Find last occurance of text in range farutherford Excel Worksheet Functions 5 August 30th 05 02:00 AM
Cell linked to a range of cell values in different sheet szeng Excel Discussion (Misc queries) 1 August 9th 05 02:41 AM
can I use a range of dates as a criteria when using sumif? D@annyBoy Excel Worksheet Functions 5 December 2nd 04 01:37 PM


All times are GMT +1. The time now is 11:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"