Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 159
Default how do I calculate number of characters that will fit in a cell

I have a spreadsheet that will be printed onto a preprinted form. I need to
calculate the value in a cell and then pad that cell with repeating hyphens
to fille out the remainder.

How can I determine how many hyphens I need to generate?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default how do I calculate number of characters that will fit in a cell

How about using a custom format:
General*-;-General*-;0*-;@*-

You can use your favorite numberformats in that string.

It's
Positive;negative;zero;text

the * tells excel to fill out the cell with the next character.




Larry wrote:

I have a spreadsheet that will be printed onto a preprinted form. I need to
calculate the value in a cell and then pad that cell with repeating hyphens
to fille out the remainder.

How can I determine how many hyphens I need to generate?


--

Dave Peterson
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
I need to have a certain number of characters in a cell jerminski73 Excel Discussion (Misc queries) 9 November 11th 08 11:07 AM
number of characters in each cell jaywizz Excel Discussion (Misc queries) 5 June 12th 08 11:37 AM
Keep specified number of characters at end of cell? Kevin Excel Worksheet Functions 1 July 20th 07 04:40 PM
calculate the sum of characters in a cell Nat Excel Worksheet Functions 8 September 25th 06 08:51 PM
calculate the sum of characters in a cell Nat Excel Discussion (Misc queries) 8 September 25th 06 07:05 PM


All times are GMT +1. The time now is 09:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"