Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AC-H
 
Posts: n/a
Default Joining 2 SUMIF's ???

How can I join the following SUMIF's in to a single formula? Please help my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do this??
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Joining 2 SUMIF's ???

=sumproduct(--(countryrng=countrycriteria),--(opprng=oppcriteria),revrng)

=sumproduct() likes to work with numbers. the -- stuff converts trues and
falses to 1/0's.



AC-H wrote:

How can I join the following SUMIF's in to a single formula? Please help my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do this??


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
AC-H
 
Posts: n/a
Default Joining 2 SUMIF's ???

Thanks for this Dave. However is returning a #NUM! error

This is my formula below. Can you see where I am going wrong and how I can
fix it?

'=SUMPRODUCT(--('My-Sales_Data_Sheet'!AN:AN="QOCWLD"),--('My-Sales_Data_Sheet'!$K:$K=A33),'My-Sales_Data_Sheet'!$Z:$Z)

Does this mean that I can't use this to look up Country names and other text?




"Dave Peterson" wrote:

=sumproduct(--(countryrng=countrycriteria),--(opprng=oppcriteria),revrng)

=sumproduct() likes to work with numbers. the -- stuff converts trues and
falses to 1/0's.



AC-H wrote:

How can I join the following SUMIF's in to a single formula? Please help my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do this??


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default Joining 2 SUMIF's ???

You can't use full column references with SUMPRODUCT. You need to put in
row values, eg:-

=SUMPRODUCT(--('My-Sales_Data_Sheet'!AN1:AN1000="QOCWLD"),--('My-Sales_Data_Sheet'!$K1:$K1000=A33),'My-Sales_Data_Sheet'!$Z1:$Z1000)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------



"AC-H" wrote in message
...
Thanks for this Dave. However is returning a #NUM! error

This is my formula below. Can you see where I am going wrong and how I
can
fix it?

'=SUMPRODUCT(--('My-Sales_Data_Sheet'!AN:AN="QOCWLD"),--('My-Sales_Data_Sheet'!$K:$K=A33),'My-Sales_Data_Sheet'!$Z:$Z)

Does this mean that I can't use this to look up Country names and other
text?




"Dave Peterson" wrote:

=sumproduct(--(countryrng=countrycriteria),--(opprng=oppcriteria),revrng)

=sumproduct() likes to work with numbers. the -- stuff converts trues
and
falses to 1/0's.



AC-H wrote:

How can I join the following SUMIF's in to a single formula? Please
help my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do
this??


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Joining 2 SUMIF's ???

Hi,

Dave's formula is perfect.
Specify the ranges explicitly in your formula; i.e., change AN:AN, $K:$K,
and $Z:$Z to their actual ranges, such as AN2:AN101, $K$2:$K$101, and
$Z$2:$Z$101 (please note that the ranges should be of the same size).

Regards,
B. R. Ramachandran

"AC-H" wrote:

Thanks for this Dave. However is returning a #NUM! error

This is my formula below. Can you see where I am going wrong and how I can
fix it?

'=SUMPRODUCT(--('My-Sales_Data_Sheet'!AN:AN="QOCWLD"),--('My-Sales_Data_Sheet'!$K:$K=A33),'My-Sales_Data_Sheet'!$Z:$Z)

Does this mean that I can't use this to look up Country names and other text?




"Dave Peterson" wrote:

=sumproduct(--(countryrng=countrycriteria),--(opprng=oppcriteria),revrng)

=sumproduct() likes to work with numbers. the -- stuff converts trues and
falses to 1/0's.



AC-H wrote:

How can I join the following SUMIF's in to a single formula? Please help my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do this??


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Joining 2 SUMIF's ???

You got this in your previous post.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"AC-H" wrote in message
...
How can I join the following SUMIF's in to a single formula? Please help

my
heads about to blow up :)

=SUMIF(Country range, country criteria,revenue range)
=SUMIF(Opportuntity range, Opp criterion, revenue range)

Need to apply both criterion to the SUM revenue range. How do I do this??



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
Joining letters from different cells Lance Excel Worksheet Functions 3 October 9th 05 06:05 PM
Joining String with function in IF()? Lewis Koh Excel Worksheet Functions 7 August 2nd 05 01:42 AM
Macros for find and replace and then joining columns BobbyCochran Excel Discussion (Misc queries) 0 May 20th 05 01:06 AM
Joining Multiple filters with OR rather than AND Fahad Ashfaque Excel Worksheet Functions 3 April 26th 05 06:29 AM
joining to worksheets or filtering not sure of correct terminology MG New Users to Excel 3 January 23rd 05 10:11 PM


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