#1   Report Post  
Posted to microsoft.public.excel.misc
carno
 
Posts: n/a
Default number format


How to put the exponent constant in representation of a number in MS
excel? We can move the decimal point.
E.g. i want to represent 101325 as 1.01e5. similarly 1013250 as
10.13e5. E5 should be constant.


--
carno
------------------------------------------------------------------------
carno's Profile: http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054

  #2   Report Post  
Posted to microsoft.public.excel.misc
EdMac
 
Posts: n/a
Default number format


have you tried format custom and then use 0.00E+5?

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=534054

  #3   Report Post  
Posted to microsoft.public.excel.misc
carno
 
Posts: n/a
Default number format


I tried that, but it does not give correct results. You can also try and
let me know.

Thanks


--
carno
------------------------------------------------------------------------
carno's Profile: http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default number format

If A1 contains the value then:

=A1/100000 & "e5"

seems to work
--
Gary's Student


"carno" wrote:


How to put the exponent constant in representation of a number in MS
excel? We can move the decimal point.
E.g. i want to represent 101325 as 1.01e5. similarly 1013250 as
10.13e5. E5 should be constant.


--
carno
------------------------------------------------------------------------
carno's Profile: http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054


  #5   Report Post  
Posted to microsoft.public.excel.misc
carno
 
Posts: n/a
Default number format


Nice reply from Gary''s Student. It works. But then we have to have
another cell for that. It is not formatting.


--
carno
------------------------------------------------------------------------
carno's Profile: http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default number format

Can't be done with formatting as E will always display 1 digit.

This ain't foirmatting either, but maybe it's okay

'-----------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
'-----------------------------------------------------------------
Const WS_RANGE As String = "A1"

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Value = Format(.Value / 100000, "0.00") & "E5"
.NumberFormat = "@"
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"carno" wrote in
message ...

Nice reply from Gary''s Student. It works. But then we have to have
another cell for that. It is not formatting.


--
carno
------------------------------------------------------------------------
carno's Profile:

http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054



  #7   Report Post  
Posted to microsoft.public.excel.misc
carno
 
Posts: n/a
Default number format


Thanks a lot Bob


--
carno
------------------------------------------------------------------------
carno's Profile: http://www.excelforum.com/member.php...o&userid=33633
View this thread: http://www.excelforum.com/showthread...hreadid=534054

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
Convert [h]:mm sum total format to number format Guy Excel Worksheet Functions 1 August 5th 05 05:56 AM
Number format exactly the same, displays differently in some cells eider Excel Discussion (Misc queries) 1 July 29th 05 12:26 AM
Number format for Combobox MBlake Excel Discussion (Misc queries) 1 June 29th 05 03:25 AM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


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