Text to Number dart scoreboard

brian7mcdee

New Member
Joined
Nov 12, 2012
Messages
2
Hi

I've had a good search of the forum regarding this problem. There are a few threads about dart scoreboards but none that match what I'm thinking of.

Basically, I've been trying to figure out a way that I can input in three columns what each dart scores in text so it returns the total value of the three darts which is then subtracted from the cell above in the fourth:

EG: (T=Treble D=Double S=Single)

[TABLE="width: 500"]
<tbody>[TR]
[TD]Dart 1[/TD]
[TD]Dart 2[/TD]
[TD]Dart 3[/TD]
[TD]501[/TD]
[/TR]
[TR]
[TD]T20[/TD]
[TD]D5[/TD]
[TD]S1[/TD]
[TD]430[/TD]
[/TR]
[TR]
[TD]S20[/TD]
[TD]S5[/TD]
[TD]S1[/TD]
[TD]404[/TD]
[/TR]
</tbody>[/TABLE]

A friend suggested VLOOKUP but that has confused me more. Any help/pointers would be gratefully appreciated. Thanks.
 
Hi
In cell D2 try this formula:
=D1-(IF(LEFT(A2,1)="T",3*MID(A2,2,LEN(A2)-1),IF(LEFT(A2,1)="D",2*MID(A2,2,LEN(A2)-1),MID(A2,2,LEN(A2)-1)+0))+IF(LEFT(B2,1)="T",3*MID(B2,2,LEN(B2)-1),IF(LEFT(B2,1)="D",2*MID(B2,2,LEN(B2)-1),MID(B2,2,LEN(B2)-1)+0))+IF(LEFT(C2,1)="T",3*MID(C2,2,LEN(C2)-1),IF(LEFT(C2,1)="D",2*MID(C2,2,LEN(C2)-1),MID(C2,2,LEN(C2)-1)+0)))

Vidar
 
Upvote 0
You can do this with a name
Name: mySum
RefersTo: =EVALUATE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(Sheet1!$A1&"+"&Sheet1!$B1&"+"&Sheet1!$C1,"T","3*"),"D","2*"), "S", "1*"))

Since this uses relative addressing, a cell in row 1 should be active when entering the name definition.
Then putting =mySum in a cell will return the sum of columns A,B,C of that row.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top