Score conversion trailing zero issue

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
209
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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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