Date: prev next · Thread: first prev next last
2021 Archives by date, by thread · List index

Or perhaps leave the actual number in the first column and just use a cell format for the "km".


1) Leave 2.4 in the cell
2) ctrl+1 (cmd+1 mac) to open format cell
3) then in the Format Code type " km" behind the number format.

And now your 2.4 will show "2.4 km" in the cell.

And you can do your arithmetical calculations on the cell as you've only changed the visual number format.



On 28.11.2021 14:09, Remy Gauthier wrote:

If you do not like adding columns, you could do the following:

1) Select everything (CTRL-A)
2) Do a search & replace to remove all the "km" indications. This
should also convert the entry in the cells to numbers at the same time.
3) Keeping what is still selected, go to Cell > Format (CTRL-1), and
set the number format to User defined with the format as # ##0.0" km".
This will have your numbers displayed with the proper units.

I hope this helps.

Le dimanche 28 novembre 2021 à 08:37 -0600, Michael H a écrit :
Re: Units out of the data.

1. The formula =Value(Left(C1,Find(" ",C1))) will be insensitive to
longer--129.4 km-- or less specific--7 km-- distances.

2. When I remove units from a list, usually I'm working a large
amount of
data and find that the whole spreadsheet works better when source
data like
this isn't the result of formula. That is, it doesn't take so long to
refresh when I'm only waiting on 10,000 calculations, and not

So to avoid those annoying long refresh times, instead of creating
source data with formula I copy the column to a new one, ensure there
adequate new columns behind it, then convert the column to data with
-> Text to Columns" and choose to break on space only (in your case,
sometimes I have to list out the first letter of units, but then I
lose the
units, so instead I find/replace the new column to introduce tab
before doing the text to column action. (And if you trust yourself to
recognize mistakes in the text to columns steps before "undo" is
copying the column to another one isn't required.)


On Fri, Nov 26, 2021 at 11:12 AM Hylton Conacher (ZR1HPC) <> wrote:


On 2021/11/26 16:38, Andrew Pitonyak wrote:
Left will return a string so convert to a number using value...
Something like this


THANK YOU Works as expected,now on to the next formula Challenge

Get BlueMail for Android <>
On Nov 26, 2021, at 9:12 AM, "Hylton Conacher (ZR1HPC)"
< <>> wrote:


     Using LO7.2.2.2  <>  Calc on iMac 11.6.1(Big

     I have a data column that ends in alphabetic letters i.e.

         C      |  D
     2| 2.4 km|    2.4
     3| 4.8 km|    4.8

     As the ' km' can't be added in column C, I used the LEFT
formula to
     extract the first 3 digits, namely =LEFT(C2,3). This works
     in column D, BUT whilst not shown on the spreadsheet, the
numbers are
     shown in-between double quotes if one looks at the formula,
column D,
     with the Function Wizard, which again does not enable the
number to
     added, averaged etc.

     Both C, D columns are formatted as Number with a single
decimal point
     and there will be no -ve number.

     What am I missing, and where to rectify it?


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.