Just the last 3 digits

Greggo

New Member
Joined
Aug 31, 2024
Messages
1
Office Version
  1. 2003 or older
Platform
  1. Windows
Hi, I have a list of numbers and I want to remove the decimal if there is one and any zeros before any numbers and report the first 3 numbers only e.g. 0.00012345 would become 123
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If the value is 0.0007800 what should be output.
Try in B2, ARRAY formula.
Excel Formula:
=INT(VALUE(LEFT(MOD(A2,1)*10^LEN(MOD(A2,1)),3)))
To enter ARRAY formula
Copy and paste the formula in cell
Press F2
Press Ctrl+Shift+Enter together
Excel covers the formula with {}.
 
Upvote 0
Welcome to the MrExcel board!

One example is not much to go on. Could we have 5-10 that show what sort of variety there might be and provide the expected results for those samples?
The examples might then show if numbers like these are possible
0.02
123456.35698
2.365
-3.259
5698
0.30000
etc
 
Upvote 0
You can try modified version of Alex's formula to get correct results for negative values :

Excel Formula:
=LEFT(ABS(VALUE(SUBSTITUTE(A4,".",""))),3)
 
Upvote 0
It is enough:

=LEFT(ABS(SUBSTITUTE(A2,".","")),3)
or
=LEFT(--SUBSTITUTE(A2,".",""),3)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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