|  

» Rounding Numerical Substrings

Problem:

Rounding the numbers in the string stored in cell A2 (12.34567<>3.4567) to 3 decimal places.

Solution:

Use the ROUND, LEFT, FIND, and MID functions in the following formula:
=ROUND(LEFT(A2,FIND("<>",A2)-1),3)&"<>"&ROUND(MID(A2,FIND("<>",A2)+2,255),3)
Screenshot // Rounding Numerical Substrings
Rounding Numerical Substrings


Rate This Tip
12 34 5
Rating: 2.95     Views: 16332
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments