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 Vlookup, sumif, multiple criteria

Hope i'll be able to explain my problem.
I have in a worksheet the following 3 -column Database (in reality is
much longer and with much more many columns):

Albania 5.50% 44
Argentina 8.77% 13
Armenia 13.70% 2
Australia 3.16% 82
Austria 2.93% 85
Azerbaijan 26.03% 1
Bahrain 7.01% 26
Barbados 4.03% 69
Belarus 7.37% 23
Belgium 2.52% 92
Belize 3.62% 79
Bolivia 4.29% 65

In another worksheet i create a column-list, that i might change,
called CLUSTER 1
in which i decide how to cluster countries.
For example i have a list that says: Albania, Austra, Bolivia,
and I also named this list "cluster1".

I am looking for a formula that gives me the sumproduct(columns B and
C). for those countries in Cluster 1.

More in general, which is the formula that allows me to say if a
country belongs or not to a range of cells?
something like
if(argentina ={Cluster1},IN,OUT)

thanks a lot



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default Vlookup, sumif, multiple criteria

Hello lorenzo,

for the first qusetion try

=SUMPRODUCT(--ISNUMBER(MATCH(A2:A100,cluster,0)),B2:B100,C2:C100 )

and for the second

=IF(COUNTIF(cluster,F2),"In","Out")

where F2 contains a specific country

"lorenzo" wrote:

Hope i'll be able to explain my problem.
I have in a worksheet the following 3 -column Database (in reality is
much longer and with much more many columns):

Albania 5.50% 44
Argentina 8.77% 13
Armenia 13.70% 2
Australia 3.16% 82
Austria 2.93% 85
Azerbaijan 26.03% 1
Bahrain 7.01% 26
Barbados 4.03% 69
Belarus 7.37% 23
Belgium 2.52% 92
Belize 3.62% 79
Bolivia 4.29% 65

In another worksheet i create a column-list, that i might change,
called CLUSTER 1
in which i decide how to cluster countries.
For example i have a list that says: Albania, Austra, Bolivia,
and I also named this list "cluster1".

I am looking for a formula that gives me the sumproduct(columns B and
C). for those countries in Cluster 1.

More in general, which is the formula that allows me to say if a
country belongs or not to a range of cells?
something like
if(argentina ={Cluster1},IN,OUT)

thanks a lot




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Vlookup, sumif, multiple criteria

Thanks really a lot.

regarding the last point, where you have F2, how can i have the column
A of the first worksheet?
I'd like something like
Countif(cluster,world)

assuming i name "world" my entire list of countries
how to do it?
thanks


On Aug 13, 7:37 pm, daddylonglegs wrote:
Hello lorenzo,

for the first qusetion try

=SUMPRODUCT(--ISNUMBER(MATCH(A2:A100,cluster,0)),B2:B100,C2:C100 )

and for the second

=IF(COUNTIF(cluster,F2),"In","Out")

where F2 contains a specific country

"lorenzo" wrote:
Hope i'll be able to explain my problem.
I have in a worksheet the following 3 -column Database (in reality is
much longer and with much more many columns):


Albania 5.50% 44
Argentina 8.77% 13
Armenia 13.70% 2
Australia 3.16% 82
Austria 2.93% 85
Azerbaijan 26.03% 1
Bahrain 7.01% 26
Barbados 4.03% 69
Belarus 7.37% 23
Belgium 2.52% 92
Belize 3.62% 79
Bolivia 4.29% 65


In another worksheet i create a column-list, that i might change,
called CLUSTER 1
in which i decide how to cluster countries.
For example i have a list that says: Albania, Austra, Bolivia,
and I also named this list "cluster1".


I am looking for a formula that gives me the sumproduct(columns B and
C). for those countries in Cluster 1.


More in general, which is the formula that allows me to say if a
country belongs or not to a range of cells?
something like
if(argentina ={Cluster1},IN,OUT)


thanks a lot


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Vlookup, sumif, multiple criteria

and also
what is the "--" you have after the first parenthesis?


On Aug 13, 7:37 pm, daddylonglegs wrote:
Hello lorenzo,

for the first qusetion try

=SUMPRODUCT(--ISNUMBER(MATCH(A2:A100,cluster,0)),B2:B100,C2:C100 )

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
SUMIF with multiple criteria Nan Excel Worksheet Functions 13 October 30th 08 02:44 AM
Multiple Criteria for SUMIF Duncan Excel Worksheet Functions 5 May 22nd 08 11:41 PM
SUMIF with multiple criteria penri0_0 Excel Discussion (Misc queries) 5 May 18th 06 04:55 PM
SUMIF, multiple criteria Lauren753 Excel Discussion (Misc queries) 1 June 20th 05 08:28 PM
SUMIF using VLOOKUP as criteria Telly Excel Worksheet Functions 1 February 18th 05 10:17 PM


All times are GMT +1. The time now is 02:25 PM.

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

About Us

"It's about Microsoft Excel"