Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi All!
I need to place the sum of certain cell values in a separate cell. Easy enough, except for one thing: Here's the deal. If F21 has "B" in it, that's when I need E21's value added. If there is ANYTHING else in column F, don't add the value of the corresponding E column cell. I would like a function formula that I will place in E6 that will work for the entire columns E & F. Let me know if you need additional information to understand my query. Thank you! Kristen -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200802/1 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi
sumif???? =sumif(F:F,"b",E:E) but you can't put the formula in E6 else you would be a circular reference error. you could modify to something like =sumif(F5:F500,"b",E5:E500) or what ever. regards FSt1 "kristenb via OfficeKB.com" wrote: Hi All! I need to place the sum of certain cell values in a separate cell. Easy enough, except for one thing: Here's the deal. If F21 has "B" in it, that's when I need E21's value added. If there is ANYTHING else in column F, don't add the value of the corresponding E column cell. I would like a function formula that I will place in E6 that will work for the entire columns E & F. Let me know if you need additional information to understand my query. Thank you! Kristen -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200802/1 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
if you are limiting this to when the cell in column contains ONLY a B, then
=sumif(F7:F100,"B",E7:E100) if you want to sum when column F BEGINS with B, then =sumif(F7:F100,"B*",E7:E100) and if you want to sum anytime column F contains a B anywhere in the cell =sumif(F7:F100,"*B*",E7:E100) "kristenb via OfficeKB.com" wrote: Hi All! I need to place the sum of certain cell values in a separate cell. Easy enough, except for one thing: Here's the deal. If F21 has "B" in it, that's when I need E21's value added. If there is ANYTHING else in column F, don't add the value of the corresponding E column cell. I would like a function formula that I will place in E6 that will work for the entire columns E & F. Let me know if you need additional information to understand my query. Thank you! Kristen -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200802/1 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=sumproduct(--(F1:F1000="B"),(E1:E1000))
sumproduct needs a defined column length. I selected 1000 or you could try =sumif(F1:F1000,"B",E1:E1000) with a sumproduct formula you can have more than one condition see.....http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Greetings from New Zealand "kristenb via OfficeKB.com" <u35894@uwe wrote in message news:7f3e15ea246dc@uwe... Hi All! I need to place the sum of certain cell values in a separate cell. Easy enough, except for one thing: Here's the deal. If F21 has "B" in it, that's when I need E21's value added. If there is ANYTHING else in column F, don't add the value of the corresponding E column cell. I would like a function formula that I will place in E6 that will work for the entire columns E & F. Let me know if you need additional information to understand my query. Thank you! Kristen -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200802/1 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you everyone! The =sumif that you all suggested worked perfectly! You
are all very helpful and thank you for the quick response! Kristen Bill Kuunders wrote: =sumproduct(--(F1:F1000="B"),(E1:E1000)) sumproduct needs a defined column length. I selected 1000 or you could try =sumif(F1:F1000,"B",E1:E1000) with a sumproduct formula you can have more than one condition see.....http://www.xldynamic.com/source/xld.SUMPRODUCT.html Hi All! [quoted text clipped - 11 lines] Thank you! Kristen -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200802/1 |
#6
![]() |
|||
|
|||
![]()
Hi Kristen,
You can use the SUMIF function to achieve this. Here are the steps:
This formula will add up all the values in column E where the corresponding cell in column F is "B". If the cell in column F is anything else, it will not be included in the sum. You can copy and paste this formula to other cells in column E and it will work for the entire columns E and F.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUM values in this column F only if cell is blank in column Q...HE | Excel Discussion (Misc queries) | |||
Count entries in one column based on values in another column | Excel Worksheet Functions | |||
conditional cell format based on cell in same row, previous column | Excel Worksheet Functions | |||
Hide column or row based on a cell in the column or row? | Excel Discussion (Misc queries) | |||
Format cell in column B based on value in the next cell (column c) | Excel Discussion (Misc queries) |