Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Excel turning percentages into scientific notation

Hi,

We've got a batch programme that created a few hundred reports (person
specific numbers in same layout).

All it does is take numbers from a table and paste special values into the
various locations in the template.

Some of the rules about how it does this are involved, and I'd not be
allowed to post the code, but believe me, that's all it's doing.

Now here's my problem.

It is picking up percentages from the source table and dropping them into
the destination template. Both the source and destination cells are
formatted as percentages.

For some reason, about a third of the time, excel seems to decide that
despite the source and destination both being percentages, it's going to turn
the numbers into scientific notation.

No, there's no "E"s anywhere in the number string.

Anybody encountered anything like this before or know how to stop this?

Cheers,

Tom.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Excel turning percentages into scientific notation

Perhaps add a last line of code the reads:

Cells.NumberFormat = "0.00%"

--
Best Regards,

Luke M
"mr-tom" wrote in message
...
Hi,

We've got a batch programme that created a few hundred reports (person
specific numbers in same layout).

All it does is take numbers from a table and paste special values into the
various locations in the template.

Some of the rules about how it does this are involved, and I'd not be
allowed to post the code, but believe me, that's all it's doing.

Now here's my problem.

It is picking up percentages from the source table and dropping them into
the destination template. Both the source and destination cells are
formatted as percentages.

For some reason, about a third of the time, excel seems to decide that
despite the source and destination both being percentages, it's going to
turn
the numbers into scientific notation.

No, there's no "E"s anywhere in the number string.

Anybody encountered anything like this before or know how to stop this?

Cheers,

Tom.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Excel turning percentages into scientific notation

Thanks, Luke.

Unfortunately the code is iterative - it copies across a vast number of
cells and only a small portion are percentages. It would be a major rewrite
to divide the programme into a percentage component and an "everything else"
component in order to add this line.

But genuinely thanks - if our system didn't cover such a range of stuff, it
would have been a good fix.

"Luke M" wrote:

Perhaps add a last line of code the reads:

Cells.NumberFormat = "0.00%"

--
Best Regards,

Luke M
"mr-tom" wrote in message
...
Hi,

We've got a batch programme that created a few hundred reports (person
specific numbers in same layout).

All it does is take numbers from a table and paste special values into the
various locations in the template.

Some of the rules about how it does this are involved, and I'd not be
allowed to post the code, but believe me, that's all it's doing.

Now here's my problem.

It is picking up percentages from the source table and dropping them into
the destination template. Both the source and destination cells are
formatted as percentages.

For some reason, about a third of the time, excel seems to decide that
despite the source and destination both being percentages, it's going to
turn
the numbers into scientific notation.

No, there's no "E"s anywhere in the number string.

Anybody encountered anything like this before or know how to stop this?

Cheers,

Tom.



.

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
How do I stop Excel 2007 from using scientific notation? jonnyjd Excel Discussion (Misc queries) 2 January 14th 10 07:32 PM
Can Excel display in scientific notation with a 3digit exponent? kentk Excel Discussion (Misc queries) 1 February 11th 09 04:25 PM
EXCEL read a text string as scientific notation Chuck Virtu Excel Discussion (Misc queries) 6 January 4th 08 06:13 PM
Scientific Notation - I want excel to read it as a text not a numb Jim McC Excel Discussion (Misc queries) 1 February 19th 07 08:08 PM
scientific notation to display 1.8 x 10-5 in Excel feloniousmoney New Users to Excel 1 July 6th 05 10:31 PM


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