Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format Same Length Always?

I'm writting a spreadsheet that prepares an input text file for
program originally written in Fortran. This program requires all inpu
to be 10 digits long, no exceptions.

So, if the number does not have 10 digits, it needs spaces (or zeros
in front. If it is negative, it needs to save room for the "-". I
the number is large, and needs to be in scientific notation, th
exponent and its sign must fit.

Does anyone know how to make a number format that always fills up te
spaces no matter how large or small the number, positive or negative?
Right now I have a complex series of conditionals that is ver
confusing.

Thanks!

--Da

--
Message posted from http://www.ExcelForum.com

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
Set the Column/Length format on an Excell sheet Jeffery B Paarsa Excel Discussion (Misc queries) 1 June 1st 09 03:28 AM
Format Values to specified length kwiklearner Excel Worksheet Functions 1 March 9th 06 03:55 PM
how to extract data in .txt format from the excel sheet in a fixed length ascii forma pramod_kmr Excel Programming 1 March 3rd 04 11:54 AM
Excel VBA- format string length to get a cell height lcoreyl[_9_] Excel Programming 4 February 19th 04 12:32 PM
2 Qs: grab net page, and import as fixed length format Keith R[_3_] Excel Programming 2 December 12th 03 08:18 PM


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