Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to make one cell equal to another

BillyL14
8 - Asteroid

Hi

If a cell in column B is equal to zero, how can I make it equal to the numeric value in the cell next to it in column A?

 

Thank you

6 REPLIES 6
MarqueeCrew
20 - Arcturus
20 - Arcturus

@BillyL14 ,

 

You could use a formula like this:

 

IIF([Field B] = 0, [Field A], [Field B])

 

 cheers,

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
BillyL14
8 - Asteroid

Hi Mark

thank you very much for that. I just tried that and got the following error

WL1_0-1593774625521.png

I tried putting quotation marks at each side of the zero but no luck, would you know how to fix that? Thanks again

 

WL

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @BillyL14,

 

This error is caused because you haven't specified a field name (either create a field, or update):

Jonathan-Sherman_0-1593774883921.png

 

 

If you fix this you're formula should work perfectly!

 

IF [Field B] = 0 THEN  [Field A] ELSE [Field B] ENDIF

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan

grazitti_sapna
17 - Castor

Hi @BillyL14 , you are trying to update the value in Stat.Value where as the error depicts that you have not selected any column. 

Try selecting Stat.Value column then run the formula tool it will work. Please refer to the screenshot.

 
 
 
 
 
 

solution.jpg.png

Thanks.

Sapna Gupta
BillyL14
8 - Asteroid

Thank you very much, it works now

BillyL14
8 - Asteroid

Thank you very much

Labels