Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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$20:D21)-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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Consolidation if a least one criteria is met

Dear all thank you for your help you saved me

tx
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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




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
Consolidation Raja Excel Discussion (Misc queries) 3 January 20th 08 03:29 AM
Consolidation Blue Bunny Excel Discussion (Misc queries) 1 May 8th 07 05:53 PM
consolidation nance666 Excel Discussion (Misc queries) 1 August 26th 05 01:49 PM
Consolidation capnsean Excel Discussion (Misc queries) 3 July 8th 05 10:53 PM
Consolidation kk Excel Worksheet Functions 8 June 14th 05 01:41 PM


All times are GMT +1. The time now is 09:03 AM.

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"