Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Add values based on multiple criteria

Hi

I am trying to add values dependant on two seperate criteria

I have tried a formula which I found using excel help but it is adding the
total of the whole column, in other words it is ignoring the criteria.

=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))

Column A has customer names, I wanto add the values in column M only when
the customer is a specific name and the status in column G is a specific
status.

I hope this makes sense.

Any help would be appreciated

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Add values based on multiple criteria

Hi,

The formula should work exactly as you describe and only sum when the
criteria are met. Did you enter it as an array with CTRL+Shift+Enter and not
just enter?

If you do it correctly Excel will put curly brackets {} around it. You can't
type these yourself.

Mike

"myersl" wrote:

Hi

I am trying to add values dependant on two seperate criteria

I have tried a formula which I found using excel help but it is adding the
total of the whole column, in other words it is ignoring the criteria.

=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))

Column A has customer names, I wanto add the values in column M only when
the customer is a specific name and the status in column G is a specific
status.

I hope this makes sense.

Any help would be appreciated

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Add values based on multiple criteria

Thanks Mike

I was doing that bit wrong !! Forgot about CTRL+Shift+Enter.

Now it returns #VALUE! so I must still have something wrong, any ideas?

Thanks

Linda

"Mike H" wrote:

Hi,

The formula should work exactly as you describe and only sum when the
criteria are met. Did you enter it as an array with CTRL+Shift+Enter and not
just enter?

If you do it correctly Excel will put curly brackets {} around it. You can't
type these yourself.

Mike

"myersl" wrote:

Hi

I am trying to add values dependant on two seperate criteria

I have tried a formula which I found using excel help but it is adding the
total of the whole column, in other words it is ignoring the criteria.

=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))

Column A has customer names, I wanto add the values in column M only when
the customer is a specific name and the status in column G is a specific
status.

I hope this makes sense.

Any help would be appreciated

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Add values based on multiple criteria

Hi,

I'm afraid I'm now at a loss. The only way I know of to get the value error
is if the formula isn't commited correctly.

With the cell selecetd the formula should look like this in the formula bar
{=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))}

With the cell still selected tap F2 and the formula should now look like this
=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))
Note the curly brackets should be gone.

Now press and hold CTRL & Shift and then tap Enter and the curly brackets
should reappear. If any of the rows satisfy the criteria then you should see
them summed. If none of them match (or the numbers in column M aren't really
numbers) then you should see zero but not a #Value error.

Mike

"myersl" wrote:

Thanks Mike

I was doing that bit wrong !! Forgot about CTRL+Shift+Enter.

Now it returns #VALUE! so I must still have something wrong, any ideas?

Thanks

Linda

"Mike H" wrote:

Hi,

The formula should work exactly as you describe and only sum when the
criteria are met. Did you enter it as an array with CTRL+Shift+Enter and not
just enter?

If you do it correctly Excel will put curly brackets {} around it. You can't
type these yourself.

Mike

"myersl" wrote:

Hi

I am trying to add values dependant on two seperate criteria

I have tried a formula which I found using excel help but it is adding the
total of the whole column, in other words it is ignoring the criteria.

=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))

Column A has customer names, I wanto add the values in column M only when
the customer is a specific name and the status in column G is a specific
status.

I hope this makes sense.

Any help would be appreciated

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Add values based on multiple criteria

Hi,

I should have added I wouldn't have started with an array formula, I would
have used this

=SUMPRODUCT((A12:A300="Jones and Co")*(G12:G300="Ordered"),(M12:M300))

Mike

"Mike H" wrote:

Hi,

I'm afraid I'm now at a loss. The only way I know of to get the value error
is if the formula isn't commited correctly.

With the cell selecetd the formula should look like this in the formula bar
{=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))}

With the cell still selected tap F2 and the formula should now look like this
=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))
Note the curly brackets should be gone.

Now press and hold CTRL & Shift and then tap Enter and the curly brackets
should reappear. If any of the rows satisfy the criteria then you should see
them summed. If none of them match (or the numbers in column M aren't really
numbers) then you should see zero but not a #Value error.

Mike

"myersl" wrote:

Thanks Mike

I was doing that bit wrong !! Forgot about CTRL+Shift+Enter.

Now it returns #VALUE! so I must still have something wrong, any ideas?

Thanks

Linda

"Mike H" wrote:

Hi,

The formula should work exactly as you describe and only sum when the
criteria are met. Did you enter it as an array with CTRL+Shift+Enter and not
just enter?

If you do it correctly Excel will put curly brackets {} around it. You can't
type these yourself.

Mike

"myersl" wrote:

Hi

I am trying to add values dependant on two seperate criteria

I have tried a formula which I found using excel help but it is adding the
total of the whole column, in other words it is ignoring the criteria.

=SUM(IF((A12:A300="Jones and Co")*(G12:G300="Ordered"),M12:M300))

Column A has customer names, I wanto add the values in column M only when
the customer is a specific name and the status in column G is a specific
status.

I hope this makes sense.

Any help would be appreciated

Thanks

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
Looking up values based on two criteria LauriS Excel Worksheet Functions 8 August 24th 07 02:30 PM
Count unique values based on multiple criteria Nip Excel Discussion (Misc queries) 2 November 2nd 06 03:41 AM
sum the values of a range based upon multiple ranges and criteria LiveIt... Excel Worksheet Functions 1 July 17th 06 09:23 PM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
how do i count values based on multiple criteria sean Excel Worksheet Functions 2 January 7th 05 01:00 AM


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