#1
|
|||
|
|||
Find last three digits after . ( including zero)
How to get last 3 digits after "." (Decimal) including zero ? The following formula doesn't work?
Code:
=RIGHT(A1,3) 88,485.95 ----------- The result is .95 (Here it is okay as it gets last 3 digits after Decimal) How to modify the formula? |
#2
|
|||
|
|||
Code:
=A1-TRUNC(A1) |
#3
|
|||
|
|||
That'll get him all decimals, not just the last three.
Assume we're dealing with 123.456789. =A1-TRUNC(A1) will result in 0.456789 =ROUND(A1-TRUNC(A1), 3) will result in 0.457 (it rounds it off to three decimal places) =(TRUNC((A1-TRUNC(A1))*1000))/1000 will result in 0.456 (this is a nasty formula, but it basically shifts the decimal three places and re-truncates) =RIGHT(A1-TRUNC(A1), 3) should result in 789 (though this one gave me a floating-point error when I tried it, which may mean it's bug-prone in practice and needs caution) Which one you want depends on exactly what you're trying to do, but hopefully that should cover all the bases. |
#4
|
|||
|
|||
Code:
=rounddown(a1,3)-trunc(a1) |
#5
|
|||
|
|||
Code:
=text(right(a1, 3),"0.00") |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Having number's digits together | mohsen.amiri | Word | 0 | 06-23-2017 01:20 AM |
Digits are not found in my document! | reza8615953 | Word | 3 | 04-18-2017 10:48 AM |
Macro for find/replace (including headers and footers) for multiple documents | jpb103 | Word VBA | 2 | 05-16-2014 04:59 AM |
Multi-Doc Find/Replace, Including Headers/Footers & Textboxes | konopca | Word VBA | 3 | 05-05-2014 03:18 PM |
Problems merging in last 4 digits of an account higher than 16 digits | Glynda | Mail Merge | 1 | 04-08-2011 12:17 AM |