Score conversion trailing zero issue

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Got a simple formula to convert goals and behinds into points, each goal is worth 6 points and a behind is worth 1 point. Formula works in all cases except when you have something like 17.10, this should calculate to 17 x 6 + 10 x 1 which equals 112 points. As you can see in the file, it drops the 0 from 17.10 and calculates 103. I've tried Custom formats but no joy here. Is there a way to force TEXTAFTER to recognise the 0 or is there another quick solution?


Book3
ABCDEFGHIJK
1ScoresPoints
23.24.56.79.820294362
37.19.513.817.104359861031
Sheet1
Cell Formulas
RangeFormula
F2:I3F2=INT(A2)*6+(TEXTAFTER(A2,"."))
K3K3=TEXTAFTER(D3,".")
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,215,105
Messages
6,123,118
Members
449,096
Latest member
provoking

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