Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default formatting before concatenation

Hello,
Here is my quandry: I have a data table that imports
information from another part of my worksheet. I want to
import also some footnotes (superscripted) into the same
cell (this suggests concatenation to me). The problem is
that my original data contains anywhere from 0 to 3 decimal
places and in the table it _MUST_ be represented as 3.
Normally a simple formatting of the cells would work, _BUT_
when I add the concatenation command, it ignores the
formatting rule and instead prints the whole thing.

examples:
this is what I want:
10.000footnote (original data is 10)
12.300footnote (original data is 12.3)
13.660footnote (original data is 13.66)
18.777footnote (original data is 18.777)

this is what I get:
10footnote
12.3footnote
13.66footnote
18.777footnote

so it only works when 3 decimals are given...

help please.
thanks,
Ivan
..

  #2   Report Post  
Posted to microsoft.public.excel.programming
acw acw is offline
external usenet poster
 
Posts: 19
Default formatting before concatenation

Ivan


=TEXT(A1,".000")&"footnote" or
=CONCATENATE(TEXT(A1,".000"),"footnote")

Tony
-----Original Message-----
Hello,
Here is my quandry: I have a data table that imports
information from another part of my worksheet. I want to
import also some footnotes (superscripted) into the same
cell (this suggests concatenation to me). The problem is
that my original data contains anywhere from 0 to 3

decimal
places and in the table it _MUST_ be represented as 3.
Normally a simple formatting of the cells would work,

_BUT_
when I add the concatenation command, it ignores the
formatting rule and instead prints the whole thing.

examples:
this is what I want:
10.000footnote (original data is 10)
12.300footnote (original data is 12.3)
13.660footnote (original data is 13.66)
18.777footnote (original data is 18.777)

this is what I get:
10footnote
12.3footnote
13.66footnote
18.777footnote

so it only works when 3 decimals are given...

help please.
thanks,
Ivan
..

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default formatting before concatenation

Hello,
use FIXED for e.g.

=FIXED(<Range or <Value to Format,3)

Heiko
:-)

"ivan" wrote:

Hello,
Here is my quandry: I have a data table that imports
information from another part of my worksheet. I want to
import also some footnotes (superscripted) into the same
cell (this suggests concatenation to me). The problem is
that my original data contains anywhere from 0 to 3 decimal
places and in the table it _MUST_ be represented as 3.
Normally a simple formatting of the cells would work, _BUT_
when I add the concatenation command, it ignores the
formatting rule and instead prints the whole thing.

examples:
this is what I want:
10.000footnote (original data is 10)
12.300footnote (original data is 12.3)
13.660footnote (original data is 13.66)
18.777footnote (original data is 18.777)

this is what I get:
10footnote
12.3footnote
13.66footnote
18.777footnote

so it only works when 3 decimals are given...

help please.
thanks,
Ivan
.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default formatting before concatenation

Copy this function into a code module and use in your workshet as normal
eg. =SPLITx(A1) :-

'=======================================
Public Function SPLITx(st As String)
For c = 1 To Len(st)
If Asc(Mid(st, c, 1)) 64 Then
Exit For
End If
Next
SPLITx = Format(Left(st, c - 1), "#.000")
End Function
'========================================

Regards
BrianB
----------------


"ivan" wrote in message ...
Hello,
Here is my quandry: I have a data table that imports
information from another part of my worksheet. I want to
import also some footnotes (superscripted) into the same
cell (this suggests concatenation to me). The problem is
that my original data contains anywhere from 0 to 3 decimal
places and in the table it _MUST_ be represented as 3.
Normally a simple formatting of the cells would work, _BUT_
when I add the concatenation command, it ignores the
formatting rule and instead prints the whole thing.

examples:
this is what I want:
10.000footnote (original data is 10)
12.300footnote (original data is 12.3)
13.660footnote (original data is 13.66)
18.777footnote (original data is 18.777)

this is what I get:
10footnote
12.3footnote
13.66footnote
18.777footnote

so it only works when 3 decimals are given...

help please.
thanks,
Ivan
.

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
Concatenation and Formatting orGTFO Excel Discussion (Misc queries) 1 April 14th 10 04:26 PM
Formatting when using concatenation. Softley Excel Discussion (Misc queries) 1 April 15th 06 01:51 AM
Formatting when using concatenation. bpeltzer Excel Discussion (Misc queries) 0 April 15th 06 12:05 AM
concatenation mattguerilla Excel Discussion (Misc queries) 3 January 26th 06 11:47 PM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 01:45 PM


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