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 Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumif function in Access



 
 
Thread Tools Display Modes
  #1  
Old December 10th, 2009, 08:31 PM posted to microsoft.public.access.queries
Hurrikane4
external usenet poster
 
Posts: 12
Default Sumif function in Access

Please help!
I need to sum amounts if a condition applies.
The source table has 3 columns:
AcctNum, Amount, Category.
123 10 Tax
123 5 Ins
123 8 Loan
123 2 Loan
123 1 Tax
There are only 3 categories (tax, insurance, loan), but there can be 1
account number with multiple categories.
I need to sum up the categories so the end result looks like:
AcctNum Tax Ins Loan
123 11 5 10

Thank you!
  #2  
Old December 10th, 2009, 08:54 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Sumif function in Access

Check out crosstab queries in Help.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Hurrikane4" wrote:

Please help!
I need to sum amounts if a condition applies.
The source table has 3 columns:
AcctNum, Amount, Category.
123 10 Tax
123 5 Ins
123 8 Loan
123 2 Loan
123 1 Tax
There are only 3 categories (tax, insurance, loan), but there can be 1
account number with multiple categories.
I need to sum up the categories so the end result looks like:
AcctNum Tax Ins Loan
123 11 5 10

Thank you!

  #3  
Old December 18th, 2009, 07:05 PM posted to microsoft.public.access.queries
Hurrikane4
external usenet poster
 
Posts: 12
Default Sumif function in Access

SORRY FOR THE DELAYED RESPONSE!

The crosstab query worked, thank you very much!



"Jerry Whittle" wrote:

Check out crosstab queries in Help.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Hurrikane4" wrote:

Please help!
I need to sum amounts if a condition applies.
The source table has 3 columns:
AcctNum, Amount, Category.
123 10 Tax
123 5 Ins
123 8 Loan
123 2 Loan
123 1 Tax
There are only 3 categories (tax, insurance, loan), but there can be 1
account number with multiple categories.
I need to sum up the categories so the end result looks like:
AcctNum Tax Ins Loan
123 11 5 10

Thank you!

 




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 04:53 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.