Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anauna
 
Posts: n/a
Default sum cells based on another cell value

Hello,
I have column A listing whole numbers. Column B lists categories a,b, or c.
I would like to sum the values in column A only if the corresponding cell in
Column B contains the letter c.

ie.
10 c
20 b
15 c

sum = 25
--
Thank-you and all suggestions are appreciated.
  #2   Report Post  
JudithJubilee
 
Posts: n/a
Default

Hello there,

Try a SumIf function:

=SUMIF(B1:B3,"c",A1:A3)

Hope this helps

Judith

-----Original Message-----
Hello,
I have column A listing whole numbers. Column B lists

categories a,b, or c.
I would like to sum the values in column A only if the

corresponding cell in
Column B contains the letter c.

ie.
10 c
20 b
15 c

sum = 25
--
Thank-you and all suggestions are appreciated.
.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMIF(B:B,"c",A:A)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anauna" wrote in message
...
Hello,
I have column A listing whole numbers. Column B lists categories a,b, or

c.
I would like to sum the values in column A only if the corresponding cell

in
Column B contains the letter c.

ie.
10 c
20 b
15 c

sum = 25
--
Thank-you and all suggestions are appreciated.



  #4   Report Post  
 
Posts: n/a
Default

hi,
=sumif(B1:B3,"c",A1:A3)
regards
-----Original Message-----
Hello,
I have column A listing whole numbers. Column B lists

categories a,b, or c.
I would like to sum the values in column A only if the

corresponding cell in
Column B contains the letter c.

ie.
10 c
20 b
15 c

sum = 25
--
Thank-you and all suggestions are appreciated.
.

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
Is it possible to change colors of cells based on value in cell (. LC Excel Worksheet Functions 3 January 14th 05 05:27 AM
I want to format a cell based on an adjacent cells value Cumbo Excel Discussion (Misc queries) 1 December 13th 04 11:52 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Modify Row & Cell Contents based upon Cells Values bpat1434 Excel Worksheet Functions 0 November 7th 04 03:31 PM
Modify Row & Cell Contents based upon Cells Values bpat1434 Excel Worksheet Functions 1 November 7th 04 12:43 PM


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