custom format help (leading decimal pt and Inch mark)

chesspupil

Board Regular
Joined
May 21, 2006
Messages
52
Using Excel 2007
I am trying to enter thousands of thickensss readings that were recorded manually and must be transcribed over to excel/

I have numbers like 432 433 435 431 444 Each value in its own cell

Would like the result

0.432" 0.433" 0.435" 0.431" 0.444

I would like to do this where I only enter the digits and the format results in the same cell rather than a formula target to a new result cell

I imagined this might work for the first set of number, but no [$ 0.]#0[$ "]
--------------------------------
Not in the same report I have a similar problem:

I also have some data that is 132 133 135 136 130

Would like to have result:

1.32" 1.33" 1.35" 1.36" 1.30"

Thank you for your time


Cross post
Code:
http://www.excelforum.com/excel-general/783139-custom-format-help-leading-decimal-pt-and-inch-mark.html#post2558349
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I couldn't figure out a way to get a custom format that would take a normal double-quote that you get when you hit the key. BUT, how about the "fancy" double quote the ” instead of the ". For that one just set a number format like:

0.000 " ”"

To get the "fancy" double-quote, hold down your ALT key and type 0148 using the numeric keypad on your keyboard.

Regarding your second item: AFAIK, you cannot do that kind of conversion w/o VBA. However if you're just thinking about keying in quicker, go to the Advanced group in the Options dialog and the second item is Automatically insert a decimal point and set as desired.

If that doesn't do the trick, then you might key it all and then put 100 in some cell and then do a copy and PasteSpecial and use the DIVIDE operation (and use VALUEs option to keep from bolloxing your formats).
 
Last edited:
Upvote 0
There are two seperate reports,

For the first one I have a solution:

Without the ( )

("."#[$"])

Still not sure how to get the second one to work....

It is only a three digit input
 
Upvote 0
Thank you for posting that back. FWIW, you don't need the quotes around the decimal:

.# [$"]

will work. As for the other, as I said above, if you are handkeying the data, then you can input them using the Automatically insert a decimal option. If it's being imported or copied and pasted, use the PasteSpecial | Divide tool.
 
Upvote 0
As posted at OzGrid:
0\.00\"
should do the formatting.
 
Upvote 0
Ah, there it is! The backslash. I knew there was a way, but it'd slipped my mind and the dollar sign was not ringing any bells for me. Thanks for the reminder, Rory. :bow:

@ Chess pupil - do be aware that using Rory's format the value of the cell doesn't change. So while the cell shows 5.43 ", the value is still 543
 
Upvote 0
Thanks, problem solved I appreciate your time


I normally do not do any calculations with the numbers afterwards but with the amount of time this saved us I would nto be suprised if I get an engineer wanting the results in electronic format as well as my printed report.

Is there a way to format the cell though so if a formula was applied that it would read the value as shown?

i.e

5.34" shown is calculated as 5.34" and not 534?
 
Last edited:
Upvote 0
Is there a way to format the cell though so if a formula was applied that it would read the value as shown?
i.e
5.34" shown is calculated as 5.34" and not 534?
The only built-in function that I know that returns format info is the CELL() function. But with a custom function like this it is not going to prove reliable. Therefore, I would say it would take some complicated VBA or a UDF to kluge together a workaround.

:warning: I cannot overstate how bad of voodoo it is to have cells display one value while containing another. :warning: People will copy and paste this data from one worksheet to another or otherwise use it downstream in ways you cannot foresee today and somebody somewhere is going to forget the cells' formatting trickery and somewhere a report is going to be off by two orders of magnitude. Bad, bad voodoo that you do not want associated with your name. I would never put this in any worksheet I was building. If someone else was asking for it, I'd talk them out of it.

A better solution would be to use VBA to actually just go ahead and divide the cells by 100 when values are entered.
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top