#1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default big problem

After calculation, there are some data contain decimal, If I want to obtain
the following results, How to use function to change case 1 to case 2?

case 1:
1.1
1.3
1.4
2.5

case 2:
0.1
0.3
0.4
0.5


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default big problem

this may do what you want
in b1 enter this formula and drag down

A1-TRUNC(A1)


--


Gary

"Wu" wrote in message
...
After calculation, there are some data contain decimal, If I want to
obtain
the following results, How to use function to change case 1 to case 2?

case 1:
1.1
1.3
1.4
2.5

case 2:
0.1
0.3
0.4
0.5



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default big problem

On Feb 14, 9:12 pm, Wu wrote:
After calculation, there are some data contain decimal,
If I want to obtain the following results, How to use
function to change case 1 to case 2?


You need to be more clear. If the value is 1.11, do you still want
0.1, or do you want 0.11?

Also, remember that you what is displayed in the cell might be the
actual value in the cell. What if the actual value is 0.05, but you
see 0.1 because you formatted as Number with 1 decimal place? Do you
want 0.0, or 0.1, or 0.05?

If you want the rounded the tenth of any value, try:

=mod(round(A1*10,0),10)/10


----- original posting -----

On Feb 14, 9:12*pm, Wu wrote:
After calculation, there are some data contain decimal, If I want to obtain
the following results, How to use function to change case 1 *to case 2?

case 1:
1.1
1.3
1.4
2.5

case 2:
0.1
0.3
0.4
0.5


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default big problem

Well this can be achieved using following simple formula
Let us suppose that you have the data in column A
Then,
Select cell b1 and enter following formula
=A1-FLOOR(A1,1)
Now drag it down to apply the same formula to cells below as well

Have a nice time

Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200902/1

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
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


All times are GMT +1. The time now is 12:38 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"