Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default cell a "bj" cell b "1.00, need to sum cell b1:b117 if a = "bj"

trying to get the total of a cell based on the value in another cell. eg if
cell A contains the value "bj", the sum the value in cell b1:b117, where cell
a contains the value "bj", here is the formula I tried.
sum(if(a1:a117,= " bj", b1:b117)), this give the the total of cell b1:b117,
not what I want. tks for help jb

sorry missed the = first time I posted...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default cell a "bj" cell b "1.00, need to sum cell b1:b117 if a = "bj"

Try
=SUMIF(A1:A117,"bj",B1:B117)

It will sum the cells in the range B1:B117 where the corresponding cell in
Col A is bj
"john b" wrote:

trying to get the total of a cell based on the value in another cell. eg if
cell A contains the value "bj", the sum the value in cell b1:b117, where cell
a contains the value "bj", here is the formula I tried.
sum(if(a1:a117,= " bj", b1:b117)), this give the the total of cell b1:b117,
not what I want. tks for help jb

sorry missed the = first time I posted...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default cell a "bj" cell b "1.00, need to sum cell b1:b117 if a = "bj"

Thank you for the response. I see where I had gone wrong, I used = instead
of , after A117., works the way I required. tks again jb

"Sheeloo" wrote:

Try
=SUMIF(A1:A117,"bj",B1:B117)

It will sum the cells in the range B1:B117 where the corresponding cell in
Col A is bj
"john b" wrote:

trying to get the total of a cell based on the value in another cell. eg if
cell A contains the value "bj", the sum the value in cell b1:b117, where cell
a contains the value "bj", here is the formula I tried.
sum(if(a1:a117,= " bj", b1:b117)), this give the the total of cell b1:b117,
not what I want. tks for help jb

sorry missed the = first time I posted...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default cell a "bj" cell b "1.00, need to sum cell b1:b117 if a = "bj"

You had the right idea.
Here is the right way to use = sign (or or <)

=SUMIF(A1:A117,"=bj",B1:B117)

"john b" wrote:

Thank you for the response. I see where I had gone wrong, I used = instead
of , after A117., works the way I required. tks again jb

"Sheeloo" wrote:

Try
=SUMIF(A1:A117,"bj",B1:B117)

It will sum the cells in the range B1:B117 where the corresponding cell in
Col A is bj
"john b" wrote:

trying to get the total of a cell based on the value in another cell. eg if
cell A contains the value "bj", the sum the value in cell b1:b117, where cell
a contains the value "bj", here is the formula I tried.
sum(if(a1:a117,= " bj", b1:b117)), this give the the total of cell b1:b117,
not what I want. tks for help jb

sorry missed the = first time I posted...

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


All times are GMT +1. The time now is 11:03 PM.

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"