Hi all,
I'm trying to create a new calculated column TOTAL PRICE based on three other columns, PRICE, LBS and MT (metric ton).
the PRICE column has two currency formats which are USD (3 digits long) and USD/Metric ton (4 digits long).
I need to create a formula that will multiply PRICE * MT when PRICE is 4 digits long ELSE multiple PRICE * LBS.
I would think I would use a CALCULATE IF function to do this but I'm having some trouble with the syntax.
My attempts:
=CALCULATE(IF([PRICE]=####,[PRICE]*[MT],[PRICE]*[LBS]))
=CALCULATE(IF([PRICE]="####",[PRICE]*[MT],[PRICE]*[LBS]))
- This one comes back with an error "cannot find column PRICE" which is weird because it exists.
Any help is appreciated
Thanks
I'm trying to create a new calculated column TOTAL PRICE based on three other columns, PRICE, LBS and MT (metric ton).
the PRICE column has two currency formats which are USD (3 digits long) and USD/Metric ton (4 digits long).
I need to create a formula that will multiply PRICE * MT when PRICE is 4 digits long ELSE multiple PRICE * LBS.
I would think I would use a CALCULATE IF function to do this but I'm having some trouble with the syntax.
My attempts:
=CALCULATE(IF([PRICE]=####,[PRICE]*[MT],[PRICE]*[LBS]))
=CALCULATE(IF([PRICE]="####",[PRICE]*[MT],[PRICE]*[LBS]))
- This one comes back with an error "cannot find column PRICE" which is weird because it exists.
Any help is appreciated
Thanks