Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
E2engine
 
Posts: n/a
Default Custom number format

I am trying to format numbers without decimal points! Sounds easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because they are
importing into a COBOL system and any separator kills the process. I have
had no luck with this. Anyone have any ideas?

Thanks.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

Go to Edit -- replace
Search for .(decimal)
replace (leave that emplty)



"E2engine" wrote in message
...
I am trying to format numbers without decimal points! Sounds easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because they are
importing into a COBOL system and any separator kills the process. I have
had no luck with this. Anyone have any ideas?

Thanks.



  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
not possible with a format

--
Regards
Frank Kabel
Frankfurt, Germany

"E2engine" schrieb im Newsbeitrag
...
I am trying to format numbers without decimal points! Sounds easy,

but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because they

are
importing into a COBOL system and any separator kills the process. I

have
had no luck with this. Anyone have any ideas?

Thanks.


  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

N Harkawat was indicating that the



  #6   Report Post  
Chip Pearson
 
Posts: n/a
Default

That will change the actual value of the cell, which is probably
not what the poster wants. You can't do what is asked with
formatting.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"N Harkawat" wrote in message
...
Go to Edit -- replace
Search for .(decimal)
replace (leave that emplty)



"E2engine" wrote in
message
...
I am trying to format numbers without decimal points! Sounds
easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because
they are
importing into a COBOL system and any separator kills the
process. I have
had no luck with this. Anyone have any ideas?

Thanks.





  #7   Report Post  
E2engine
 
Posts: n/a
Default

Well Chip, I can't say it is encouraging to hear from an Excel expert saying
it can't be done! So may I ask, if it cannot be done via formatting, is
there another approach I can take?

"Chip Pearson" wrote:

That will change the actual value of the cell, which is probably
not what the poster wants. You can't do what is asked with
formatting.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"N Harkawat" wrote in message
...
Go to Edit -- replace
Search for .(decimal)
replace (leave that emplty)



"E2engine" wrote in
message
...
I am trying to format numbers without decimal points! Sounds
easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because
they are
importing into a COBOL system and any separator kills the
process. I have
had no luck with this. Anyone have any ideas?

Thanks.






  #8   Report Post  
E2engine
 
Posts: n/a
Default

Thanks for your response. What you are suggesting would mean that the number
would first need to be formatted as text and then searched and replaced for
the period. It may work if I can figure out how to limit the true value of
the numbers to the exact number of characters. Don't forget a number
formated for 2 decimal places (which is the decimal formatted original value)
could actually be a longer string because of rounding. This would paste as
the full unrounded string. But I will investigate doing a Values paste on
this column and see what happens. Sounds like a Macro to me!

"N Harkawat" wrote:

Go to Edit -- replace
Search for .(decimal)
replace (leave that emplty)



"E2engine" wrote in message
...
I am trying to format numbers without decimal points! Sounds easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because they are
importing into a COBOL system and any separator kills the process. I have
had no luck with this. Anyone have any ideas?

Thanks.




  #9   Report Post  
David McRitchie
 
Posts: n/a
Default

Sure if this is only for use in the COBOL program multiply by 100 and
make formatting such as 00000
I think you want a fixed format.

What are you going to use for negative numbers, because that is
probably going to require more work on both sides though on your
part that might simply be a + or sign to the right of the number,
I think overpunches would be more complicated. Surprising that there
never was any provision for this in Excel.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"E2engine" wrote
Well Chip, I can't say it is encouraging to hear from an Excel expert saying
it can't be done! So may I ask, if it cannot be done via formatting, is
there another approach I can take?

"Chip Pearson" wrote:
That will change the actual value of the cell, which is probably
not what the poster wants. You can't do what is asked with
formatting.

"N Harkawat" wrote ..
Go to Edit -- replace
Search for .(decimal)
replace (leave that emplty)


"E2engine" wrote in
message
...
I am trying to format numbers without decimal points! Sounds
easy, but is
not. For instance:

1.72 should appear as 172
14.26 should appear as 1426

I am told the reason the customer needs this format is because
they are
importing into a COBOL system and any separator kills the
process. I have
had no luck with this. Anyone have any ideas?



  #10   Report Post  
David McRitchie
 
Posts: n/a
Default

You are not thinking in terms of what is needed. When you supply
the numbers they will be in the specific format required any rounding
if needed will be done on your side beforehand. What is wanted
is the number with a an assumed two decimals places. So you
multiply by 100 and format without any formatting characters on your side.
Everything should be in a specific position, because I doubt that COBOL
is going to handle CSV files unless the COBOL is on a PC.

"E2engine" wrote ...
Thanks for your response. What you are suggesting would mean that the number
would first need to be formatted as text and then searched and replaced for
the period.





  #11   Report Post  
E2engine
 
Posts: n/a
Default

David,
Thanks for your input. First, these are prices, so no negatives will be
involved, and second, stupid me tried your approach but as an addition, not
multiplication! Ah, the light is so blinding! Yikes! I will give it a
shot. And I understand the formatting issue and where it should happen.

Again, many thanks.

"David McRitchie" wrote:

You are not thinking in terms of what is needed. When you supply
the numbers they will be in the specific format required any rounding
if needed will be done on your side beforehand. What is wanted
is the number with a an assumed two decimals places. So you
multiply by 100 and format without any formatting characters on your side.
Everything should be in a specific position, because I doubt that COBOL
is going to handle CSV files unless the COBOL is on a PC.

"E2engine" wrote ...
Thanks for your response. What you are suggesting would mean that the number
would first need to be formatted as text and then searched and replaced for
the period.




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
Telephone number format MarkT Excel Discussion (Misc queries) 6 January 18th 05 10:39 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
number format K Excel Worksheet Functions 0 November 9th 04 08:01 PM


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

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"