A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

almost DSUM, but is there another database - criteria funcion?



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 12:00 AM
Lance
external usenet poster
 
Posts: n/a
Default almost DSUM, but is there another database - criteria funcion?

Have you tried Sumif()
sumif(b1:b100,"=A",c1:c100)

Lance

-----Original Message-----
I have a problem with excel.


I have a list of expenses, sorted by date. The expenses

have a code, so some
expense are coded "A", others "B" and so on; I have 10

codes. It is
something like this: "Date - Code - Amount Spent".

I need to have subotals of the expenses, as per codes.

All the "A" expenses,
all the "B" expenses, and so on.

I know the formula *DSUM(database,filed,criteria)* but

the criteria works
only for adjoining cells with the "Label" on top. If I

have my list of
codes, I should make a title line (label) and

underneath "A", then another
label line and underneath "B" and so on.

I believe there must be another way for calculating

subtitels like this.
The subtitle function is not right as well since it

doesn't group my
expenses for non adjoining cells.


Can anyone help me?
Thanks in advance.


PS: I am using Excel 2002 under win XP home edition.


.

  #2  
Old September 15th, 2003, 08:05 AM
beppe005
external usenet poster
 
Posts: n/a
Default almost DSUM, but is there another database - criteria funcion?

Sumif works bery well!

The problem with the subtotal function is that I have to sort my data, which
I don't want to do since I want them sorted by date and have a "live"
knowledge of the breakdowns expenses.

Thank you for your pront replies.
Beppe

"Lance" ha scritto nel messaggio
...
Have you tried Sumif()
sumif(b1:b100,"=A",c1:c100)

Lance

-----Original Message-----
I have a problem with excel.


I have a list of expenses, sorted by date. The expenses

have a code, so some
expense are coded "A", others "B" and so on; I have 10

codes. It is
something like this: "Date - Code - Amount Spent".

I need to have subotals of the expenses, as per codes.

All the "A" expenses,
all the "B" expenses, and so on.

I know the formula *DSUM(database,filed,criteria)* but

the criteria works
only for adjoining cells with the "Label" on top. If I

have my list of
codes, I should make a title line (label) and

underneath "A", then another
label line and underneath "B" and so on.

I believe there must be another way for calculating

subtitels like this.
The subtitle function is not right as well since it

doesn't group my
expenses for non adjoining cells.


Can anyone help me?
Thanks in advance.


PS: I am using Excel 2002 under win XP home edition.


.



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.