PC Review


Reply
Thread Tools Rate Thread

Alignment of Figures

 
 
Paul Black
Guest
Posts: n/a
 
      17th Sep 2007
Hi everyone,

I have the following ...

..Offset(3, 0).Value = "For " & P & " numbers there are " & Format(tly,
"###,###,##0") & " x different values of " & cmb & " numbers. "

.... which includes figures upto and including millions.
The thing is that the above code ONLY produces figures that are
relevent.
Is there a way that I can get it so the figures align under each other
please. What I mean by that is there will be potentially several
spaces before the figure output because it might only be 1, and the
next figiure might be 256,369.

Thanks in Advance.
All the Best.
Paul

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      17th Sep 2007
...Offset(3, 0).Value = "For " & P & " numbers there are " & _
Right(space(15) & Format(tly,"#,##0"),15) & _
" x different values of " & cmb & " numbers. "

Would be the direction I would go. With proportionally spaced fonts, it
would be difficult to get exact. If you use courier new, it would work.

Perhaps something similar for "cmb" and "P" possibly - you know what you
want better than I. #,###,##0 is redundant. #,##0 will do the same.

? format("1000000000","#,###,##0")
1,000,000,000
? format("1000000000","#,##0")
1,000,000,000



--
Regards,
Tom Ogilvy



"Paul Black" wrote:

> Hi everyone,
>
> I have the following ...
>
> ..Offset(3, 0).Value = "For " & P & " numbers there are " & Format(tly,
> "###,###,##0") & " x different values of " & cmb & " numbers. "
>
> .... which includes figures upto and including millions.
> The thing is that the above code ONLY produces figures that are
> relevent.
> Is there a way that I can get it so the figures align under each other
> please. What I mean by that is there will be potentially several
> spaces before the figure output because it might only be 1, and the
> next figiure might be 256,369.
>
> Thanks in Advance.
> All the Best.
> Paul
>
>

 
Reply With Quote
 
Paul Black
Guest
Posts: n/a
 
      17th Sep 2007
Thanks Tom,

> ..Offset(3, 0).Value = "For " & P & " numbers there are " & _
> Right(space(15) & Format(tly,"#,##0"),15) & _
> " x different values of " & cmb & " numbers.


.... does do exactly as I have requested, thank you.
I normally use "Tahoma", which as you quite rightly said, does not
align them correctly.

Thanks Again.
All the Best.
Paul

On Sep 17, 11:30 am, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
wrote:
> ..Offset(3, 0).Value = "For " & P & " numbers there are " & _
> Right(space(15) & Format(tly,"#,##0"),15) & _
> " x different values of " & cmb & " numbers. "
>
> Would be the direction I would go. With proportionally spaced fonts, it
> would be difficult to get exact. If you use courier new, it would work.
>
> Perhaps something similar for "cmb" and "P" possibly - you know what you
> want better than I. #,###,##0 is redundant. #,##0 will do the same.
>
> ? format("1000000000","#,###,##0")
> 1,000,000,000
> ? format("1000000000","#,##0")
> 1,000,000,000
>
> --
> Regards,
> Tom Ogilvy
>
>
>
> "Paul Black" wrote:
> > Hi everyone,

>
> > I have the following ...

>
> > ..Offset(3, 0).Value = "For " & P & " numbers there are " & Format(tly,
> > "###,###,##0") & " x different values of " & cmb & " numbers. "

>
> > .... which includes figures upto and including millions.
> > The thing is that the above code ONLY produces figures that are
> > relevent.
> > Is there a way that I can get it so the figures align under each other
> > please. What I mean by that is there will be potentially several
> > spaces before the figure output because it might only be 1, and the
> > next figiure might be 256,369.

>
> > Thanks in Advance.
> > All the Best.
> > Paul- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Paul Black
Guest
Posts: n/a
 
      18th Sep 2007
Hi Tom,

One thing I do know is that if you use the Format 0;0;; it hides the
zeros in a Worksheet, but I don't think it is relevant in this
situation because the figures output are within a string.

Thanks in Advance.
All the Best.
Paul

On Sep 17, 1:18 pm, Paul Black <paul_blac...@hotmail.com> wrote:
> Thanks Tom,
>
> > ..Offset(3, 0).Value = "For " & P & " numbers there are " & _
> > Right(space(15) & Format(tly,"#,##0"),15) & _
> > " x different values of " & cmb & " numbers.

>
> ... does do exactly as I have requested, thank you.
> I normally use "Tahoma", which as you quite rightly said, does not
> align them correctly.
>
> Thanks Again.
> All the Best.
> Paul
>
> On Sep 17, 11:30 am, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
> wrote:
>
>
>
> > ..Offset(3, 0).Value = "For " & P & " numbers there are " & _
> > Right(space(15) & Format(tly,"#,##0"),15) & _
> > " x different values of " & cmb & " numbers. "

>
> > Would be the direction I would go. With proportionally spaced fonts, it
> > would be difficult to get exact. If you use courier new, it would work.

>
> > Perhaps something similar for "cmb" and "P" possibly - you know what you
> > want better than I. #,###,##0 is redundant. #,##0 will do the same.

>
> > ? format("1000000000","#,###,##0")
> > 1,000,000,000
> > ? format("1000000000","#,##0")
> > 1,000,000,000

>
> > --
> > Regards,
> > Tom Ogilvy

>
> > "Paul Black" wrote:
> > > Hi everyone,

>
> > > I have the following ...

>
> > > ..Offset(3, 0).Value = "For " & P & " numbers there are " & Format(tly,
> > > "###,###,##0") & " x different values of " & cmb & " numbers. "

>
> > > .... which includes figures upto and including millions.
> > > The thing is that the above code ONLY produces figures that are
> > > relevent.
> > > Is there a way that I can get it so the figures align under each other
> > > please. What I mean by that is there will be potentially several
> > > spaces before the figure output because it might only be 1, and the
> > > next figiure might be 256,369.

>
> > > Thanks in Advance.
> > > All the Best.
> > > Paul- Hide quoted text -

>
> > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
list of figures looses some of its figures once tables are inserte Dani Microsoft Word Document Management 0 18th May 2010 08:48 PM
Table of Figures Adding Figures Not in the Document NeedAnswerForBoss Microsoft Word Document Management 1 25th Jan 2010 09:40 PM
why financial figures under full alignment of ms word split JYOTHI PRIYA Microsoft Word Document Management 1 19th Jun 2009 03:04 PM
how do i subtract figures in attendance from the figures in capac. =?Utf-8?B?U3RldmU=?= Microsoft Access Queries 1 11th Jul 2006 04:00 AM
Changing positive figures to minus figures =?Utf-8?B?TG91aXNl?= Microsoft Excel Worksheet Functions 2 14th Sep 2005 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 AM.