Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

two significant numbers in colums

Status
Not open for further replies.

chicopee

Mechanical
Joined
Feb 15, 2003
Messages
6,199
Location
US
Is there a quick way to change many numbers after decimal points to two significant numbers within a column?
 
Do you want to CHANGE the values, or just display a set number of significant digits?
 
Not sure if I understand your question. There's Increase Decimal and Decrease Decimal on the Formatting toobar.

Or are you looking for a set number of significant digits? If so, there are some old threads on this subject:
thread770-39236 is one

TTFN

FAQ731-376
 
To truncate the number to say 2 decimal places use =TRUNC(Cell, 2).

Add a column, use TRUNC to create the truncated number and then Copy and Paste Special to get the truncated number into the original column. Delete the added column.

Stephen Argles
Land & Marine
 
Choose range, then cells format with right clic/number/choose option....that´s all
 
To truncate the number to say 2 decimal places use =TRUNC(Cell, 2).


But usually (if you want to change the actual number, rather than how it is displayed) you will want to round, rather than truncate, so use = ROUND(Cell,2)


Doug Jenkins
Interactive Design Services
 
One way is using the following formula:
=round(cell,INT(# Significant digits - log(cell))

this formula will work for both normal numbers and decimals
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top