<div style="font-size: 12pt; font-family: Calibri,sans-serif;"><div>Hi Simo,</div><div>at Carlos' Step 3, you can also try the "Case Else" function in the expression. Something like </div><div><b>Case</b></div><div><b>when  "number" = 34522 Then '1-2 floors' </b></div><div><b>When "number" = 34521 Then '3-n floors' End</b>. (assuming number is the name of the numerical field).</div><div>Add enough "When... Then..." as needed in the expression if you have more than these two values to be changed. No need to select features before, just list all different combinations and all will be done at once.</div><div><br></div><br><div id="htc_header">----- Reply message -----<br>De : "Carlos Cerdán" <sig.upagu@gmail.com><br>Pour : "qgis-user@lists.osgeo.org" <Qgis-user@lists.osgeo.org><br>Objet : [Qgis-user] numbers to text in column<br>Date : mar., juil. 15, 2014 14:46</div></div><br><div dir="ltr"><div>Hi Simo:<br><br></div>1. Open attribute table and create new text field (A number field doesn't can be changed directly into text).<br>2. Select by expression (number = 34522)<br>3 Open field calculator and select update field. Update the created field text. Expression for this field is new value that you want "1-2 floors".<br>
4. Do same job for another value.<br><div><br></div><div>Good luck <br><br></div><div>Carlos <br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-15 6:06 GMT-05:00 Simo Turunen <span dir="ltr"><<a href="mailto:simo.v.turunen@gmail.com" target="_blank">simo.v.turunen@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What are the steps, if you want to change numbers to text?<div><br></div><div>In atrribute table I have a column, which have numbers in it "34522" and "34521".</div>
<div>I want to change it that number "34522" is called for example "1-2 floors" or house and "34521" is called "3-n floors" or something else.</div>
<div><br></div><div>I could easily write that text in it, but when I have over 100 000 rows, it could take a little time :)</div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>