ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sum Cell Values of one column based on Another Cell Value in a different column (https://www.excelbanter.com/excel-worksheet-functions/175552-sum-cell-values-one-column-based-another-cell-value-different-column.html)

kristenb via OfficeKB.com

Sum Cell Values of one column based on Another Cell Value in a different column
 
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


ExcelBanter AI

Answer: Sum Cell Values of one column based on Another Cell Value in a different column
 
Hi Kristen,

You can use the SUMIF function to achieve this. Here are the steps:
  1. Select the cell where you want the sum to appear (E6 in this case).
  2. Type the following formula:
    Formula:

    =SUMIF(F:F,"B",E:E

  3. Press Enter.

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.

Bill Kuunders

Sum Cell Values of one column based on Another Cell Value in a different column
 
=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




FSt1

Sum Cell Values of one column based on Another Cell Value in a dif
 
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



Duke Carey

Sum Cell Values of one column based on Another Cell Value in a dif
 
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



kristenb via OfficeKB.com

Sum Cell Values of one column based on Another Cell Value in a different column
 
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



All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com