Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Summing data based on criteria

Hi

I have a spreadsheet with 4 columns Site ID, AccountN, Date of Order and
Balance.

I have been asked to total the balances based on various date ranges and put
them on a new totals sheet. I haven't a clue how to do this. Can anyone
advise please?

Thanks

Wendy


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Summing data based on criteria

You may check the help for the SUMIF formula, it comes with some examples
that you may use.
Other option is to use SUMPRODUCT, there are many examples on the newsgroups
for its use with logical conditions, that may fit on what you need.

Hope this helps,
Miguel.

"Wendy" wrote:

Hi

I have a spreadsheet with 4 columns Site ID, AccountN, Date of Order and
Balance.

I have been asked to total the balances based on various date ranges and put
them on a new totals sheet. I haven't a clue how to do this. Can anyone
advise please?

Thanks

Wendy



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Summing data based on criteria

Assuming your four columns are A,B,C and D then:

=SUMPRODUCT(--(Sheet1!B1:B1000=StartDate),--(Sheet1!B1:B1000<=EndDate),--(Sheet1!D1:D1000) )

will sum balances between Start and End dates; the latter can be put in
cells e.g. X1,X2
so you can use:

=SUMPRODUCT(--(B1:B1000=X1),--(B1:B1000<=X2),--(D1:D1000))

If you need to add further criteria e.g Site ID, ...

=SUMPRODUCT(--(A1:A1000=SiteID),--(B1:B1000=X1),--(B1:B1000<=X2),--(D1:D1000))

Note that SUMPRODUCT you cannot use whole columns i.e B:B is invalid, and
that the specified ranges must be the same size.

HTH

"Wendy" wrote:

Hi

I have a spreadsheet with 4 columns Site ID, AccountN, Date of Order and
Balance.

I have been asked to total the balances based on various date ranges and put
them on a new totals sheet. I haven't a clue how to do this. Can anyone
advise please?

Thanks

Wendy



Reply
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 columns if there is data Dave Excel Worksheet Functions 2 June 22nd 06 08:04 PM
Copying data from one worksheet to another based on criteria Caatt Excel Discussion (Misc queries) 1 June 15th 06 10:19 AM
Bucketing data based on DATE Range criteria sumitk Excel Discussion (Misc queries) 1 May 20th 06 12:16 AM
Choosing data based on Match to several items Nipper Excel Worksheet Functions 5 May 12th 06 07:19 PM
Referencing multiple criteria to pull data doug1 Excel Discussion (Misc queries) 3 March 14th 06 09:30 PM


All times are GMT +1. The time now is 11:09 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"