Running Win-Lost Record

M

Mike

Hello All,

Using Excel XP.

In a worksheet Column A is whether a team won or lost a game with a W or an
L.
In column B I would like to have the running win and lost record, for
example:

A B
------------------------------
1 W 1-0
2 W 2-0
3 L 2-1
4 W 3-1
5 L 3-2
6 L 3-3
7 L 3-4

I would like to have a formula in Column B to compute the W-L record after
entering the data in column A.
Thank you in advance.

Mike
 
T

Trevor Shuttleworth

Mike

in cell B1, put the formula:

=COUNTIF($A$1:A1,"W") & "-" & COUNTIF($A$1:A1,"L")

Drag down as far as needed

Regards

Trevor
 
H

Harlan Grove

Mike wrote...
....
In a worksheet Column A is whether a team won or lost a game with a W or an
L.
In column B I would like to have the running win and lost record, for
example:

W 1-0
W 2-0
L 2-1
W 3-1
L 3-2
L 3-3
L 3-4
....

B1 you should be able to figure out yourself.

B2:
=IF(A2="","",(LEFT(B1,FIND("-",B1)-1)+(A2="W"))&"-"
&(MID(B1,FIND("-",B1)+1,6)+(A2="L")))

Fill B2 down as needed. An alternative,

B1:
=IF(A1="","",COUNTIF(A$1:A1,"W")&"-"&COUNTIF(A$1:A1,"L"))
 
J

Jim

Mike said:
Hello All,

Using Excel XP.

In a worksheet Column A is whether a team won or lost a game with a W or an
L.
In column B I would like to have the running win and lost record, for
example:

A B
------------------------------
1 W 1-0
2 W 2-0
3 L 2-1
4 W 3-1
5 L 3-2
6 L 3-3
7 L 3-4

I would like to have a formula in Column B to compute the W-L record after
entering the data in column A.
Thank you in advance.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Scrabble Value calculation for Welsh words 0
COUNTIF 2
CountIf 1
Winning & Losing Streaks 3
Merge from a table 3
SUMIF using date ranges & referencing account numbers 1
=COUNTIF Problem 4
Excel Handicap Formula 0

Top