PC Review


Reply
Thread Tools Rate Thread

Calculating the sum if two criteria are met?

 
 
=?Utf-8?B?QnJ1Y2UgSGFuY29jaw==?=
Guest
Posts: n/a
 
      1st Jul 2007
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      1st Jul 2007
=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" <(E-Mail Removed)> wrote in message
news:C6DC536E-BD9A-48C6-AFCB-(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?QnJ1Y2UgSGFuY29jaw==?=
Guest
Posts: n/a
 
      1st Jul 2007
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" <(E-Mail Removed)> wrote in message
> news:C6DC536E-BD9A-48C6-AFCB-(E-Mail Removed)...
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating if 1 for 2 criteria are true The Rook Microsoft Excel Misc 3 11th Mar 2009 05:14 PM
Calculating the difference between two dates if two criteria are m Detroit David Microsoft Excel Worksheet Functions 3 23rd Apr 2008 09:45 PM
Criteria in a report and calculating the running sum perryboyd Microsoft Access Reports 0 31st Dec 2007 01:32 AM
Calculating Sum with Multiple Field Criteria bpliskow Microsoft Excel Worksheet Functions 2 16th Feb 2006 08:25 PM
Calculating time against certain criteria =?Utf-8?B?Q29saW4gREl4b24=?= Microsoft Access 2 30th Sep 2005 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:55 AM.