Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Round a decimal to the nearest sixteenth

I have a spreadsheet that determines the overal diameter of a cable based on
the number of conductors, insulation, shielding, etc. The result yields a
decimal number. I would like to round that decimal number to the nearest
sixteenth. I know that I can format the cell to fractions, but this does not
actually change the value. I want a new cell to have the exact decimal
equivalent of the nearest sixteenth.

For example, the first column below is the calculated "raw" diameter and
second column is the decimal number of the nearest sixteenth of the raw
diameter.

0.4687 = 0.4375
0.4688 = 0.5000
0.5312 = 0.5000
0.5313 = 0.5625
0.5937 = 0.5625
0.5938 = 0.6250

Thanks in advance for your help.

Mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Round a decimal to the nearest sixteenth

I'd say that 50% of the time I end up find my own answer right after
asking...here goes.

If the raw number is in A1 then use the formula =round(A1*16,0)/16

Man that was as simple solution.



"crazybass2" wrote:

I have a spreadsheet that determines the overal diameter of a cable based on
the number of conductors, insulation, shielding, etc. The result yields a
decimal number. I would like to round that decimal number to the nearest
sixteenth. I know that I can format the cell to fractions, but this does not
actually change the value. I want a new cell to have the exact decimal
equivalent of the nearest sixteenth.

For example, the first column below is the calculated "raw" diameter and
second column is the decimal number of the nearest sixteenth of the raw
diameter.

0.4687 = 0.4375
0.4688 = 0.5000
0.5312 = 0.5000
0.5313 = 0.5625
0.5937 = 0.5625
0.5938 = 0.6250

Thanks in advance for your help.

Mike

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Round a decimal to the nearest sixteenth

Ask immediately, it will save you time <vbg

--

HTH

RP
(remove nothere from the email address if mailing direct)


"crazybass2" wrote in message
...
I'd say that 50% of the time I end up find my own answer right after
asking...here goes.

If the raw number is in A1 then use the formula =round(A1*16,0)/16

Man that was as simple solution.



"crazybass2" wrote:

I have a spreadsheet that determines the overal diameter of a cable

based on
the number of conductors, insulation, shielding, etc. The result yields

a
decimal number. I would like to round that decimal number to the

nearest
sixteenth. I know that I can format the cell to fractions, but this

does not
actually change the value. I want a new cell to have the exact decimal
equivalent of the nearest sixteenth.

For example, the first column below is the calculated "raw" diameter and
second column is the decimal number of the nearest sixteenth of the raw
diameter.

0.4687 = 0.4375
0.4688 = 0.5000
0.5312 = 0.5000
0.5313 = 0.5625
0.5937 = 0.5625
0.5938 = 0.6250

Thanks in advance for your help.

Mike



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
How to round up to the nearest five James Excel Discussion (Misc queries) 3 November 21st 09 12:37 PM
Round time to nearest 15 minutes in decimal format dalmom Excel Discussion (Misc queries) 4 September 24th 09 07:32 PM
How can I Round up to the nearest .25 Dr. Darrell Excel Discussion (Misc queries) 0 December 30th 08 09:17 PM
I need to round up to the nearest 50. karenm Excel Discussion (Misc queries) 3 September 13th 05 03:31 PM
Round Up to Nearest 10 Marek Excel Worksheet Functions 4 April 29th 05 01:16 PM


All times are GMT +1. The time now is 11:38 PM.

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

About Us

"It's about Microsoft Excel"