ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   count a value in cell if the cell to the left has a certain Value (https://www.excelbanter.com/excel-programming/332140-count-value-cell-if-cell-left-has-certain-value.html)

Staholly

count a value in cell if the cell to the left has a certain Value
 
What formula can I write to count value in one cell if left cell value is a
certain criteria

Ex.
Column1 Column2
State farm 300


If Column has state farm count column 2's value.

K Dales[_2_]

count a value in cell if the cell to the left has a certain Value
 
If you mean summing the values from column B when Column A is "State Farm"
then:
=SUMIF(A:A,"State Farm",B:B)

"Staholly" wrote:

What formula can I write to count value in one cell if left cell value is a
certain criteria

Ex.
Column1 Column2
State farm 300


If Column has state farm count column 2's value.



All times are GMT +1. The time now is 07:38 PM.

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