Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lee Harris
 
Posts: n/a
Default Number Formatting Question

I have a CSV file, and it must remain a CSV file because I use it to bind to
a DHTML page using a data source object.

I have a column in there called "salary", but I want it to be listed to 4
decimal places, ie 1.6700 not 1.67

I've formatted it in Excel that way, but on the web page it's always showing
as 1.67, I then tried a trick by storing it as a float for sorting purposes,
but as text for display purposes but that didn't work either

how can I do something like


B1 = Concatenate(A1) to turn the value in A1 into text, but retaining the
trailing zeros required

by the way, when I open the CSV file in notepad the numbers are in the right
format, so it's a DHTML issue to display them, but if I can get this trick
to work storing a duplicate as text, it won't matter, I'll get the web page
to display the text version but use the numeric version to sort/rank

thanks
Lee


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Hick
 
Posts: n/a
Default Number Formatting Question

You could try using

=TEXT(A1,"0.0000")

as the formula. I'm not sure how this would come out in CSV though.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lee Harris
 
Posts: n/a
Default Number Formatting Question


"Rob Hick" wrote in message
oups.com...
You could try using

=TEXT(A1,"0.0000")

as the formula. I'm not sure how this would come out in CSV though.

cheers, that works a treat


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
Excel changing number formatting and source data in graphs on it's own!!! JohnHamer Excel Discussion (Misc queries) 2 September 22nd 05 02:29 PM
concatenating and formatting area code and phone number columns sherri Excel Worksheet Functions 4 September 1st 05 09:59 PM
Number formatting - what's going on? yhtak Excel Discussion (Misc queries) 3 July 11th 05 10:57 AM
conditional formatting question chris Excel Worksheet Functions 2 January 5th 05 03:51 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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