LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Sum based on two conditions

Be sure to note Domenic's caveat about more than 2 values being included in
the formula if the percentages are duplicated. It would affect the formula I
posted as well.

"luvgreen" wrote:

Thank you so very much for your kind help. I appreciate it.

"JMB" wrote:

If your data is in A1:C9 and

A13 = T1
A14 = T2
A15 = T3

Enter this in B13 (Confirmed with Control+Shift+Enter after typing it into
the formula bar-if you do it right excel will put braces { } around the
formula) and copy down.

=SUM(($A$1:$A$9=A13)*($C$1:$C$9=LARGE(IF($A$1:$A$ 9=A13,$C$1:$C$9,0),2))*($B$1:$B$9))


"luvgreen" wrote:

Hello! Please help with data below - sum col B based on top 2 of col C and
group by Col A. T1=70+100=170, T2 = 400+300=700, T3=150+110=260

Thank you so much for helping.

Col A Col B Col C
T1 100 20%
T3 150 15%
T2 400 30%
T1 400 10%
T1 70 50%
T2 120 18%
T1 150 15%
T2 300 30%
T3 110 10%


 
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
Averaging Cells Based On Conditions in Neighboring Cells foofoo Excel Discussion (Misc queries) 3 June 21st 06 03:10 AM
Total or Count based on multiple conditions CC Excel Discussion (Misc queries) 4 May 17th 06 10:50 PM
Add cells from a range based on 2 conditions from 2 other ranges Kelly Excel Worksheet Functions 3 July 7th 05 07:40 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
SUMIF based on 2 conditions TimH Excel Worksheet Functions 3 October 28th 04 08:18 PM


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