Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Calculating the sum if two criteria are met?

Hello folks,
I have a spreadsheet that has (in sheet 2) column H with a number of days in
stock (1-60+) and the profit for that vehicle in column W. I want to add all
the profit for the vehicles that are in stock between 31 and 45 days for
example. i.e. if column H is between 31 and 45 what is the corresponding
profit in column W. This then would enable me to calculate the total/average
profit for any age band. The bands will be 1-30, 31-45, 46-60 and 61+.
Thank you in anticipation.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculating the sum if two criteria are met?

=SUMIF(H:H,"30",W:W)-SUMIF(H:H,"45",W:W)

etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Bruce Hancock" wrote in message
...
Hello folks,
I have a spreadsheet that has (in sheet 2) column H with a number of days
in
stock (1-60+) and the profit for that vehicle in column W. I want to add
all
the profit for the vehicles that are in stock between 31 and 45 days for
example. i.e. if column H is between 31 and 45 what is the corresponding
profit in column W. This then would enable me to calculate the
total/average
profit for any age band. The bands will be 1-30, 31-45, 46-60 and 61+.
Thank you in anticipation.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Calculating the sum if two criteria are met?

Spot on thank you Bob!

"Bob Phillips" wrote:

=SUMIF(H:H,"30",W:W)-SUMIF(H:H,"45",W:W)

etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Bruce Hancock" wrote in message
...
Hello folks,
I have a spreadsheet that has (in sheet 2) column H with a number of days
in
stock (1-60+) and the profit for that vehicle in column W. I want to add
all
the profit for the vehicles that are in stock between 31 and 45 days for
example. i.e. if column H is between 31 and 45 what is the corresponding
profit in column W. This then would enable me to calculate the
total/average
profit for any age band. The bands will be 1-30, 31-45, 46-60 and 61+.
Thank you in anticipation.




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
Calculating Mode for multiple arrays based on criteria in another AngelaMaria Excel Worksheet Functions 3 November 3rd 06 01:57 AM
Calculating values from multiplesheets with multiple criteria I have no idea Excel Worksheet Functions 19 September 19th 06 05:38 PM
Calculating an average based on 2 and 3 criteria craggergirl Excel Worksheet Functions 2 February 24th 06 02:37 PM
Calculating Sum with Multiple Field Criteria bpliskow Excel Worksheet Functions 2 February 16th 06 08:25 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM


All times are GMT +1. The time now is 03:15 AM.

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

About Us

"It's about Microsoft Excel"