Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default TEXT function with unusual results

When trying to convert numbers to text using the TEXT function SOME values
are putting in additional numbers. The formula I'm using is TEXT(A1,A1). The
problem replicates. See below. Does anyone know what is happening? Thanks.

735 735 735 735
736 736 736 736
805 88055 888805555 88888888055555555
814 814 814 814
828 828 828 828
830 83830 838383830 83838383838383830
832 832 832 832
836 836 836 836





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default TEXT function with unusual results

TEXT(A1,A1)

The 2nd argument to the TEXT function must be a text representation of some
format. In your case that would be some number format. A1 is not a
legitimate format.

If all you're wanting to do is convert the numeric numbers to text numbers:

=A1&""

--
Biff
Microsoft Excel MVP


"Beans" wrote in message
...
When trying to convert numbers to text using the TEXT function SOME values
are putting in additional numbers. The formula I'm using is TEXT(A1,A1).
The
problem replicates. See below. Does anyone know what is happening?
Thanks.

735 735 735 735
736 736 736 736
805 88055 888805555 88888888055555555
814 814 814 814
828 828 828 828
830 83830 838383830 83838383838383830
832 832 832 832
836 836 836 836







  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default TEXT function with unusual results

The second argument of the TEXT function is the format to which the number
(first argument) should be converted. You are giving a cell value as a format
for this argument. It looks like Excel ignores it unless there is a zero in
the number you are using as a format. Then it seems to be repeating
everything before and after the zero. Try this TEXT formula instead:

=TEXT(A1,"0")

Hope this helps,

Hutch

"Beans" wrote:

When trying to convert numbers to text using the TEXT function SOME values
are putting in additional numbers. The formula I'm using is TEXT(A1,A1). The
problem replicates. See below. Does anyone know what is happening? Thanks.

735 735 735 735
736 736 736 736
805 88055 888805555 88888888055555555
814 814 814 814
828 828 828 828
830 83830 838383830 83838383838383830
832 832 832 832
836 836 836 836





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default TEXT function with unusual results

On Tue, 15 Apr 2008 09:37:01 -0700, Beans
wrote:

When trying to convert numbers to text using the TEXT function SOME values
are putting in additional numbers. The formula I'm using is TEXT(A1,A1). The
problem replicates. See below. Does anyone know what is happening? Thanks.

735 735 735 735
736 736 736 736
805 88055 888805555 88888888055555555
814 814 814 814
828 828 828 828
830 83830 838383830 83838383838383830
832 832 832 832
836 836 836 836





The second argument of the TEXT function is the number format.

In the context of your numbers, the only valid format for a number is the "0".
The other values are being interpreted as prefixes or suffixes to the number.

So, if you have a "0", as in your third row:

805: base number
Col2 format is equivalent to 805 or \80\5; so you see an "8", then the number
which is 805, then a "5".

Col 3 is now using 88055 for the format code, with a number being 88055
so this becomes the string "88" followed by the number 88055 followed by the
string "55"

You would see the same thing if you custom formatted the cell containing 805
with 805 (Format/Cells/Number/Custom Type: 805)

Even more interesting, try a formula of =TEXT(A1,A2). Instead of seeing 735,
you would see 736.

To convert numbers to text, using the TEXT function, use the formula

=TEXT(A1,"0")




--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default TEXT function with unusual results

Have you looked in Excel help to see the syntax of the TEXT function?
--
David Biddulph

"Beans" wrote in message
...
When trying to convert numbers to text using the TEXT function SOME values
are putting in additional numbers. The formula I'm using is TEXT(A1,A1).
The
problem replicates. See below. Does anyone know what is happening?
Thanks.

735 735 735 735
736 736 736 736
805 88055 888805555 88888888055555555
814 814 814 814
828 828 828 828
830 83830 838383830 83838383838383830
832 832 832 832
836 836 836 836







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
trying to change Proper function results to text? Arlene Excel Worksheet Functions 1 August 23rd 06 09:45 PM
Unusual Request... LewisAire Excel Discussion (Misc queries) 0 July 31st 06 12:08 PM
Please help with unusual request? AWA Excel Discussion (Misc queries) 4 December 26th 05 08:13 PM
Unusual data format Salty Excel Worksheet Functions 2 November 3rd 05 12:40 PM
in excel how to display results of a function and text in the sam. ez123 Excel Worksheet Functions 3 November 19th 04 01:16 PM


All times are GMT +1. The time now is 09:12 AM.

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"