or, you can use custom formats to do it, to "show" the cells with the " m" on, but in fact they're just numbers with no " m"
If you select the cells with the numbers in, and do Format.. Cells.. Custom and then type the following into the Type box:
0" m";0" m";0" m";
then you can just enter a number into the box ie 2 and it will be displayed as 2 m
you can then sum the numbers automatically.
how the line above works:
the bit before the 1st ; is the format applied to positive numbers
the bit before the 2nd ; is for negative numbers
the bit before the 3rd is for zero values
and the end is for text values.
more info in the Excel help - look for "create a custom number format"
If you use it a lot, keep some cells formatted with it, and use the Format Painter (brush button) to apply it.
If you get the data in from somewhere else, and it already has the " m" attached, you can always do a Find/Replace for the " m" to convert them back to numbers, then apply the format as above.
Main Topics
Browse All Topics





by: byundtPosted on 2004-10-08 at 06:20:46ID: 12258309
Hi chjamil, -2)*1) Array formula, so hold Control + Shift keys down while pressing Enter. Excel should respond by adding curly braces { } surrounding your formula.
If your data is text strings in cells A1:A4, you might add it using an array formula like:
=SUM(LEFT(A1:A4,LEN(A1:A4)
Cheers!
Brad