Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
gs gs is offline
external usenet poster
 
Posts: 1
Default how to sum a range depend if the corresponding adjacent cell has a specific string

for example
1 B C D E
2 ######## 22:41:08 stored,
3 ######## 22:41:09 $[*!20603,,14,+3]Intellex$[$u]
4 File $[1]F:\Inte.. compare
5 File $[1]F:\Intell. compare
6 ######## 22:48:11 execution
7 Completed: 13922 2.3
8 Performance: 323.2 (324.4
9 Duration: 00:14:52 idle/loading/preparing)
10
11
12 ######## 22:48:11 $[*!20603,,14,+3]ISGEdm$[$u]
13 ######## 22:57:49 stored,
14 ######## 22:57:50 $[*!20603,,14,+3]ISGEdm$[$u]
15 File $[1]F:\ISGEd. compare
16 File $[1]F:\ISGEdm\. compare
17 ######## 23:03:48 execution
18 Completed: 14680 2.5
28602 4.8

I want to calculate totals for columns C and E only for rows with Completed
in column B

Is there a range function and if something to include in the formula? or do
I have to create a couple of calculated columns to sum from?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to sum a range depend if the corresponding adjacent cell has a specific string

=sumproduct(--(B2:B18="Completed:"),C2:C18)


=sumproduct(--(B2:B18="Completed:"),E2:E18)

--
Regards,
Tom Ogilvy


"gs" wrote in message
...
for example
1 B C D E
2 ######## 22:41:08 stored,
3 ######## 22:41:09 $[*!20603,,14,+3]Intellex$[$u]
4 File $[1]F:\Inte.. compare
5 File $[1]F:\Intell. compare
6 ######## 22:48:11 execution
7 Completed: 13922 2.3
8 Performance: 323.2 (324.4
9 Duration: 00:14:52 idle/loading/preparing)
10
11
12 ######## 22:48:11 $[*!20603,,14,+3]ISGEdm$[$u]
13 ######## 22:57:49 stored,
14 ######## 22:57:50 $[*!20603,,14,+3]ISGEdm$[$u]
15 File $[1]F:\ISGEd. compare
16 File $[1]F:\ISGEdm\. compare
17 ######## 23:03:48 execution
18 Completed: 14680 2.5
28602 4.8

I want to calculate totals for columns C and E only for rows with
Completed in column B

Is there a range function and if something to include in the formula? or
do I have to create a couple of calculated columns to sum from?



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
Count specific text only if adjacent cell is blank? rumtumtigger Excel Discussion (Misc queries) 3 February 18th 10 07:22 PM
Sum only specific cells based on value in adjacent cell KKD Excel Discussion (Misc queries) 4 May 28th 09 04:18 PM
Fing a specific string in a Cell [email protected] Excel Discussion (Misc queries) 7 August 22nd 06 05:42 PM
Find a specific string in a cell loren.pottinger Excel Programming 3 August 22nd 06 05:10 PM
Counting a specific number only if an adjacent cell has something Hugsie Bear Excel Discussion (Misc queries) 5 August 2nd 06 02:47 PM


All times are GMT +1. The time now is 02:57 AM.

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"