Forum Discussion
OSS
7 years agoHelper III
IF function problem
Dear members Actually I want to perform very simple task. I have 'Account number' and 'Amount' column in my table. I would like to create new column with if condition In Excel, it looks l...
- 7 years ago
OSS Please try this..
NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account])="2",Test181[Amount]*-1,0))
- Anonymous7 years ago
hi,
shouldnt it be like this:
NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account],1)="2",Test181[Amount]*-1,0))
PattemManohar
7 years agoCommunity Champion
OSS Please try this..
NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account])="2",Test181[Amount]*-1,0))
- OSS7 years agoHelper III
Thank you very much Pattem. I wrote the same formula but forgot ""
That is why my formula wasn't accepted :)
- Anonymous7 years agoNot applicable
hi,
shouldnt it be like this:
NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account],1)="2",Test181[Amount]*-1,0))
- OSS7 years agoHelper III
Thank you for warning, Theo. 1 is forgotten in the formula. Thank you for correction. It would help to avoid confuse if anyone would like to use this formula.
- PattemManohar7 years agoCommunity Champion
Anonymous OSS
Thanks for that !! But anyway, the second parameter for LEFT function is optional. By default it will take 1 if we don't specify.
- Anonymous7 years agoNot applicable
cheers ok, i didn't know that
thanks