Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If statement

Hello,

My if statement is returning 0 in the size field for the '40 <44' amount instead of '40 < 44'. What am I doing wrong?

=if(Size='40 <44', Size='40 < 44',Size)

1 Solution

Accepted Solutions
sunny_talwar

Oh okay... try this

=if(Size = '40 <44', '40 < 44', Size)

View solution in original post

4 Replies
sunny_talwar

May be you need or between the two conditions?

=if(Size='40 <44' or Size='40 < 44', Size)

Anonymous
Not applicable
Author

It's only one condition. I've got some Excel sheets with 40 <44 and others with 40 < 44. So if Size is equal to '40 <44', then I want it to equal '40 < 44', otherwise keep Size.

sunny_talwar

Oh okay... try this

=if(Size = '40 <44', '40 < 44', Size)

Anonymous
Not applicable
Author

That worked. Thank you!