ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

Replace Double inverted Comma

SagarGite
Météore

Hello,

I am trying to replace double inverted comma(") with null value in excel file. Not able to perform with "Replace(String, Target, Replacement)", it will be great if you can support me on this.

 

Regards,

5 RÉPONSES 5
Emil_Kos
17 - Castor
17 - Castor

Hi @SagarGite,

 

I have created a workflow for you.

If the column name will be equal to " it would replace it with null.

 

Emil_Kos_0-1613731262260.png

 

The formula is:

 

IIF([Field1]='"', null(), [Field1])

SanderHuegen
Atome

Hey SagarGite,

 

try this:

 

Replace(string, "''", Null())

 

it should give a null value 

 

greeting, 

 

sander

SagarGite
Météore

Thanks for quick turn around on this.

Provided workflow is not working for double inverted comma's present in between the text.

 

Suppose Cell Contain following information, from I want to replace " with null.

 

TREATMENT OF PARKINSON'S DISEASE INITIALLY AS MONOTHERAPY OR IN COMBINATION WITH LEVODOPA, OVER THE COURSE OF THE DISEASE, WHEN THE EFFECT OF LEVODOPA WEARS OFF OR BECOMES INCONSISTENT AND FLUCTUATIONS IN THE THERAPEUTIC EFFECT OCCUR ("END OF DOSE" OR "ON-OFF" TYPE FLUCTUATIONS).

 

Can you please check for this.
thanks in advance

SanderHuegen
Atome

if it was at the beginning or end of the line you could you the build in removequotes() function.

 

But you could also do a text to coulmns with the quotes as delimiters and then paste the columns back together as a strange workaround. downside is the dynamic amount of quotes in your text i guess. 

 

i added the workflow for that.

 

SanderHuegen_0-1613735260423.png

 

good luck!

pedrodrfaria
Pulsar

Hi @SagarGite 

 

You will be able to replace the " with empty spaces, but not a null value if it is in a populated text field already.

 

You can use the replace([Field],'"','') to replace the " with nothing for the populated text field.

 

If you want to check if a field contains a " and then make the whole field null(), this is the function you need to look at: if contains([Field],'"') then null() else [Field] endif

 

Please let us know based on the example you provided, how the output should look like.

 

Pedro.

Étiquettes
Auteurs des meilleures solutions