Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing empty string cells with specific value

Tags:

spss

as you can see I have a database in SPSS and I encountered a problem where one of the columns has empty cells. Now the problem is that the type of data in that column is string. If it was numeric/integer there are tons of videos showing how to do it but none for string cells. I want to fill the empty string cells with the word "null" or "none" but I can't find a way to do it. Help!

enter image description here

like image 426
Zisis Kostakakis Avatar asked Apr 11 '26 00:04

Zisis Kostakakis


1 Answers

You can use the following syntax:

IF V13 = '' V13 = 'Null'.
EXECUTE.

This syntax translates to something like: "If V13 is blank, make V13 equal to the string value 'Null'.

like image 92
Matt Avatar answered Apr 21 '26 10:04

Matt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!