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

Hi som,

you can use format codes. Format codes do not change the value of the cell, but only how this value is shown. So the content of the cell would be still the number 1 or 2, but you would read "malnutrition" and "normal".

Open Style&Formatting dialog, right-click cell style 'default', select 'New'. Enter a name for the new style in tab 'Organizer',e.g. 'myLabels'. In tab 'Numbers' select 'User-defined'. Then write the following into the input field 'Format'


You can click on the "edit comment" icon to define an identifier for this format.
Then click the green check mark to add it. OK.
Now mark the area where you will enter the data and assign the newly created cell style.

When you now enter a 1 into a cell, the input line shows a 1 and you can calculate with the content 1, but in the cell itself you will see 'malnutrition'.

I have included the part [RED]Standard, so that all other numbers will be in red to show, that this entry is not correct.

Find more about Format codes in the help.

Kind regards

som schrieb:
hello friends,
calc is a powerful spreadsheet program and i want to use this for data analysis. let's say, one study has a variable named 
"malnutrition" measuring the nutritional status of under-five children. this variable has two value levels - 
"1=malnutrition" and "2=normal" (ods file link=
present scenario:
if data in entered as "1"/"2", spreadsheet will show it as "1"/"2". if it is entered as 
"malnutrition"/"normal", it will be shown in that manner.
what I expect:
after doing value labeling (i.e., telling calc that "1=malnutrition" and "2=normal"), data will be entered as "1"/"2" 
and it'll appear as "malnutrition"/"normal").
  renaming the cell.
as could be seen in this image (, cell A2 has a code of 
"1" and is renamed to "malnutrition" (upper left corner).
problem: need to select each cell containing "1" and rename it to malnutrition. otherwise cell A4 
is not showing malnutrition for code 1 ( i guess, 
my question finally comes to this- is there any way to do this in a spreadsheet program?
waiting for your responses. thanks in advance.



To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.