Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chace
 
Posts: n/a
Default return significant digits of a cell

Is there a function I can used to return the # of significant digits of a
cell value.
ie. If cell A2 = 1.042, I want cell B2 to equal 3

Thanks,
Chace
  #2   Report Post  
Domenic
 
Posts: n/a
Default

If by 'significant digits' you mean digits that do not equal zero, try...

=SUM(IF(ISNUMBER(MID(A2,ROW(INDIRECT("1:"&LEN(A2)) ),1)+0),IF(MID(A2,ROW(I
NDIRECT("1:"&LEN(A2))),1)+00,1)))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
"Chace" wrote:

Is there a function I can used to return the # of significant digits of a
cell value.
ie. If cell A2 = 1.042, I want cell B2 to equal 3

Thanks,
Chace

  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

The value 1.042 has 4 significant digits but 0.142 has three as has 1420
Do you mean the number of decimal places?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Chace" wrote in message
...
Is there a function I can used to return the # of significant digits of a
cell value.
ie. If cell A2 = 1.042, I want cell B2 to equal 3

Thanks,
Chace



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
return a cell contents as the result of usiing "small" KFEagle Excel Worksheet Functions 1 September 10th 05 08:33 PM
Formula to return the name of a cell Adresmith Excel Discussion (Misc queries) 2 June 14th 05 07:31 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
I want to return "0" based on another cell CM Excel Worksheet Functions 2 February 17th 05 02:46 PM


All times are GMT +1. The time now is 03:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"