Export to Excel Converts string S/N to Scientific notation

  • I know this is probably a simple issue, but:

    I have a column of Serial Numbers (Nvarchar(255)) that when I copy the data and dump it into Excel, it gets converted to Scientific notation. The S/N's have (mostly) 2 leading 0's which are being dropped after I've manually converted the field to text, or done something like use the UPPER function to trick Excel.

    any ideas how to prevent this from happening, short of changing the data type on the column?

    Thanks

    Crusty

  • Output your data with a tick mark in front. 'data

    This will tell Excel that the data is text.

  • I thought about that, but wasn't sure if that would end up being visible in the report... hadn't got around to trying it yet... Guess I'll have to go that route.

    Thanks!

  • CptCrusty1 (5/9/2012)


    I thought about that, but wasn't sure if that would end up being visible in the report... hadn't got around to trying it yet... Guess I'll have to go that route.

    Thanks!

    Have you tried formatting your value as text on the report?

  • Yes, but the idea is that I don't want to touch the data too often. Export, done. Thats it. Not a lot of formatting work, just spit it into a template and off we go.

    Crusty.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply