×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# How can I format values to always display as E-10

## How can I format values to always display as E-10

(OP)
How can I format values to always display as xxxx E-10
So not just a scientific notation but specific E-10

### RE: How can I format values to always display as E-10

Something like the following (although this is far from perfect, it illustrates a method)

#### CODE -->

Public Function specialformat(Expression As Variant) As String
Dim fmt As String
fmt = String(10 + Len(CStr(Int(Expression))), "0") & "E+"
specialformat = format(Expression, fmt)
End Function 

### RE: How can I format values to always display as E-10

(OP)
Thank you for your support but this was not what I was looking for, unfortunately.
Using this notation, the result is not a number anymore I can make a calculation with
I've solved it another way, but thank you anyway

### RE: How can I format values to always display as E-10

Does the user defined format I suggested in reply to your thread posted at Ms Office forum work?

combo

### RE: How can I format values to always display as E-10

(OP)
Hi Combo,
Your option in the other forum did not work for me either.
I've multiplied the numbers with E+10 and mentioned in the header row that the values are shown as E-10 like shown below.

Intensity(A)
(*E-10)

0.0401
0.092
331.5145
0.0398
0.0135
284.0515

### RE: How can I format values to always display as E-10

>I've solved it another way

Would you like to share with the forum? I ask as other people may find this querstion in the future, having a similar one of their own, and it would be useful for them to see how you solved it since neither m y nor combo's answers seem suitable.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!