A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Consolidation if a least one criteria is met



 
 
Thread Tools Display Modes
  #1  
Old February 9th, 2010, 11:02 AM posted to microsoft.public.excel.worksheet.functions
Nicawette
external usenet poster
 
Posts: 25
Default Consolidation if a least one criteria is met

Dear all,

I have the follwoing

Name Value Criteria
Aby 7 #N/A
Oby 9 #N/A
Ubi 1 #N/A
Orbi 9 Yes
Aby 6 Yes
Oby 2 Yes

and I would like to consolidate the data if "yes" is present at least
once for the name
e.g. Aby = 13, Oby = 11, Orbi = 9.
I tried this formula in column D
=SUMIFS(B2:B6,A2:A6,A2,C2:C6,OR(C2:C6="Yes",C2:C6) ) and remove the
duplicates but the formula does not add value with criteria = "Yes"

any idea?

Thank you
  #2  
Old February 9th, 2010, 11:43 AM posted to microsoft.public.excel.worksheet.functions
Per Jessen
external usenet poster
 
Posts: 686
Default Consolidation if a least one criteria is met

HI

Look at this:

=IF(COUNTIFS($C$2:$C$7,"Yes",$A$2:$A$7,A2)0,SUMIF ($A$2:$A$7,A2,$B$2:$B$7),0)

Regards,
Per

"Nicawette" skrev i meddelelsen
...
Dear all,

I have the follwoing

Name Value Criteria
Aby 7 #N/A
Oby 9 #N/A
Ubi 1 #N/A
Orbi 9 Yes
Aby 6 Yes
Oby 2 Yes

and I would like to consolidate the data if "yes" is present at least
once for the name
e.g. Aby = 13, Oby = 11, Orbi = 9.
I tried this formula in column D
=SUMIFS(B2:B6,A2:A6,A2,C2:C6,OR(C2:C6="Yes",C2:C6) ) and remove the
duplicates but the formula does not add value with criteria = "Yes"

any idea?

Thank you


  #3  
Old February 9th, 2010, 12:07 PM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Consolidation if a least one criteria is met

Hi,

Try this

1. Assume that your data is in range C3:E8
2. In C2:E2, enter Name, Number and Criteria
3. In C20, enter Name, in D20, enter Combo and in E20 enter Number
4. In C21:C23, enter Aby, Oby and Orbi
5. In D21, enter the following array formula (Ctrl+Shift+Enter)
=COUNT(IF(($C$3:$C$8=C21)*($E$3:$E$8="Yes"),1))=1 and copy down till D23
6. In E21, enter =DSUM($C$2:$E$8,E$20,C$2021)-SUM(E$20:E20) and copy down
till E23

Hope this helps.
--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Nicawette" wrote in message
...
Dear all,

I have the follwoing

Name Value Criteria
Aby 7 #N/A
Oby 9 #N/A
Ubi 1 #N/A
Orbi 9 Yes
Aby 6 Yes
Oby 2 Yes

and I would like to consolidate the data if "yes" is present at least
once for the name
e.g. Aby = 13, Oby = 11, Orbi = 9.
I tried this formula in column D
=SUMIFS(B2:B6,A2:A6,A2,C2:C6,OR(C2:C6="Yes",C2:C6) ) and remove the
duplicates but the formula does not add value with criteria = "Yes"

any idea?

Thank you


  #4  
Old February 9th, 2010, 12:36 PM posted to microsoft.public.excel.worksheet.functions
Nicawette
external usenet poster
 
Posts: 25
Default Consolidation if a least one criteria is met

Dear all thank you for your help you saved me

tx
  #5  
Old February 9th, 2010, 12:48 PM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Consolidation if a least one criteria is met

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Nicawette" wrote in message
...
Dear all thank you for your help you saved me

tx


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.