ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula to add depending upon value entered (https://www.excelbanter.com/excel-worksheet-functions/242271-formula-add-depending-upon-value-entered.html)

lheck77

Formula to add depending upon value entered
 
I am keeping track of my football teams record and wondered if there was a
way to setup a formula that when I enter a W in one field then under a column
titled wins it adds plus one for each W and the same in another cell if there
is a L.
Thanks Larry Heckman

Mike H

Formula to add depending upon value entered
 
Maybe this

=COUNTIF(A1:A20,"W")

=COUNTIF(A1:A20,"L")

Mike

"lheck77" wrote:

I am keeping track of my football teams record and wondered if there was a
way to setup a formula that when I enter a W in one field then under a column
titled wins it adds plus one for each W and the same in another cell if there
is a L.
Thanks Larry Heckman


Eduardo

Formula to add depending upon value entered
 
Hi,
I assume the column where you enter the W is column C and you want the +1 in
column D so in D enter

=if(C1="W",1,"")

Change the letter to L in your formula to copy it in the other cell

if this helps please click yes thanks

"lheck77" wrote:

I am keeping track of my football teams record and wondered if there was a
way to setup a formula that when I enter a W in one field then under a column
titled wins it adds plus one for each W and the same in another cell if there
is a L.
Thanks Larry Heckman


Glenn

Formula to add depending upon value entered
 
lheck77 wrote:
I am keeping track of my football teams record and wondered if there was a
way to setup a formula that when I enter a W in one field then under a column
titled wins it adds plus one for each W and the same in another cell if there
is a L.
Thanks Larry Heckman



Try this:

http://www.contextures.on.ca/xlFunctions04.html#COUNTIF

lheck77

Formula to add depending upon value entered
 
Ok now that was too simple. Thanks so much

"Mike H" wrote:

Maybe this

=COUNTIF(A1:A20,"W")

=COUNTIF(A1:A20,"L")

Mike

"lheck77" wrote:

I am keeping track of my football teams record and wondered if there was a
way to setup a formula that when I enter a W in one field then under a column
titled wins it adds plus one for each W and the same in another cell if there
is a L.
Thanks Larry Heckman



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

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