Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum If with two ranges

Hi,

I have a SUMIF command relating to a specific range that works.
=SUMIF(E8:E906,V6,O8:O906)

I would like to add a second criteria so that the range is summed if in
addition to the first, (E8:E906 equalling V6) a second criteria is also met.

For example if V6 is met and also H8:H906="LOA" then the range O8:O906 is
summed, if not the value is zero.

I cannot get anything to work!

Thanks for any advice!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Sum If with two ranges

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(E8:E906=V6),--(H8:H906="LOA"),O8:O906)

Regards,
Per

"Portiapuss" skrev i meddelelsen
...
Hi,

I have a SUMIF command relating to a specific range that works.
=SUMIF(E8:E906,V6,O8:O906)

I would like to add a second criteria so that the range is summed if in
addition to the first, (E8:E906 equalling V6) a second criteria is also
met.

For example if V6 is met and also H8:H906="LOA" then the range O8:O906 is
summed, if not the value is zero.

I cannot get anything to work!

Thanks for any advice!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sum If with two ranges

Try this

=SUMPRODUCT((E8:E906=V6)*(H8:H906="LOA")*(O8:O906) )

Mike

"Portiapuss" wrote:

Hi,

I have a SUMIF command relating to a specific range that works.
=SUMIF(E8:E906,V6,O8:O906)

I would like to add a second criteria so that the range is summed if in
addition to the first, (E8:E906 equalling V6) a second criteria is also met.

For example if V6 is met and also H8:H906="LOA" then the range O8:O906 is
summed, if not the value is zero.

I cannot get anything to work!

Thanks for any advice!

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
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
HELP ON AGE RANGES Malcolm Austin Excel Worksheet Functions 4 July 31st 07 09:52 AM
Ranges Joanne New Users to Excel 1 July 22nd 07 10:32 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Sum ranges Arnie Excel Worksheet Functions 1 November 15th 04 08:38 PM


All times are GMT +1. The time now is 09:12 PM.

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"