Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Removiing decimals from an excel number

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removiing decimals from an excel number

=LEFT(A1,FIND(".",A1)-1)
--
Gary''s Student - gsnu201001


"Data Analyst" wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Removiing decimals from an excel number

A thousand thanks:)

"Gary''s Student" wrote:

=LEFT(A1,FIND(".",A1)-1)
--
Gary''s Student - gsnu201001


"Data Analyst" wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Removiing decimals from an excel number

What if I have Prime Numbers in the column..how can I keep them as is with
this formula?

"Gary''s Student" wrote:

=LEFT(A1,FIND(".",A1)-1)
--
Gary''s Student - gsnu201001


"Data Analyst" wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Removiing decimals from an excel number

=LEFT(A1,FIND(".",A1)-1)

That formula resturns the number as TEXT.

Try it like this to return the number as a NUMBER.

=--LEFT(A1,FIND(".",A1&".")-1)

--
Biff
Microsoft Excel MVP


"Data Analyst" wrote in message
...
What if I have Prime Numbers in the column..how can I keep them as is with
this formula?

"Gary''s Student" wrote:

=LEFT(A1,FIND(".",A1)-1)
--
Gary''s Student - gsnu201001


"Data Analyst" wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F
and
replace but is there a more efficient way?

Thanks!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Removiing decimals from an excel number

Improvement!

=--LEFT(A1,FIND(".",A1&".")-1)


Don't need the -1

=--LEFT(A1,FIND(".",A1&"."))

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
=LEFT(A1,FIND(".",A1)-1)


That formula resturns the number as TEXT.

Try it like this to return the number as a NUMBER.

=--LEFT(A1,FIND(".",A1&".")-1)

--
Biff
Microsoft Excel MVP


"Data Analyst" wrote in message
...
What if I have Prime Numbers in the column..how can I keep them as is
with
this formula?

"Gary''s Student" wrote:

=LEFT(A1,FIND(".",A1)-1)
--
Gary''s Student - gsnu201001


"Data Analyst" wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F
and
replace but is there a more efficient way?

Thanks!





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Removiing decimals from an excel number

try this

=LEFT(A1,FIND(".",A1,1)-1)

--


Gary Keramidas
Excel 2003


"Data Analyst" wrote in message
...
Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Removiing decimals from an excel number

I still have error..

"Gary Keramidas" wrote:

try this

=LEFT(A1,FIND(".",A1,1)-1)

--


Gary Keramidas
Excel 2003


"Data Analyst" wrote in message
...
Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!


.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Removiing decimals from an excel number

you can try this and add biffs idea if you want a number instead of text

=IF(ISERROR(FIND(".",A2,1)),A2,LEFT(A2,FIND(".",A2 ,1)-1))

--


Gary Keramidas
Excel 2003


"Data Analyst" wrote in message
...
I still have error..

"Gary Keramidas" wrote:

try this

=LEFT(A1,FIND(".",A1,1)-1)

--


Gary Keramidas
Excel 2003


"Data Analyst" wrote in message
...
Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F
and
replace but is there a more efficient way?

Thanks!


.


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Removiing decimals from an excel number

That is not a number, it is text.

I would use text to columns delimited by decimal point and choose to skip
all but left column.


Gord Dibben MS Excel MVP


On Wed, 10 Feb 2010 09:02:01 -0800, Data Analyst
wrote:

Here is the issue: I have numbers like this one - 10000.01.01.200

I just want the prime number 10000. How can I do that? I tried Ctrl+F and
replace but is there a more efficient way?

Thanks!




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
problem with number format with 2 decimals? Brenda Excel Worksheet Functions 5 September 25th 08 06:15 AM
Number of Decimals Excel can Handle Nicolas Cachanosky Excel Discussion (Misc queries) 1 December 4th 07 02:52 PM
Whole Number and Decimals Charles Knight Excel Discussion (Misc queries) 4 March 7th 07 11:55 PM
Displaying decimals that go in to a given number weSky Excel Discussion (Misc queries) 1 June 7th 06 09:54 AM
Merging Excel data to word, keeps including all decimals on number Henrik Notlev Excel Discussion (Misc queries) 2 January 27th 06 07:30 AM


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