# Help on IF-formula with 4 statements

#### kit99

##### Active Member
In sh2 I have columns D and E with data (turnaround).
With some help from you guys in here, I've calulated the difference, and is showing this as smileys (wingdings) in sh1.
Turnaround: up = red smiley, down = green smiley, unchanged = yellow smiley.
This is done with this IF-formula with 3 statements (works ok):
=IF('sh2'!E2>'sh2'!D2,"L",IF('sh2'!E2<'sh2'!D2,"J",IF('sh2'!E2='sh2'!D2,"K")))

But if the goal at work is to keep the turnaround at under "10", I need to show all readings from column E2, no matter up or down, as "green smiley" as long as they are below this value (statement 4).
In my head this should be someting like this (doesn't work):
=IF('sh2'!E2=<10,"J")ELSE(IF('sh2'!E2>'sh2'!D2,"L",IF('sh2'!E2<'sh2'!D2,"J",IF('sh2'!E2='sh2'!D2,"K"))))

Anyone who know how to make this formula work?

### Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I would guess it should look like this: IF('sh2'!E2=<10,"J",IF('sh2'!E2>'sh2'!D2,"L",IF('sh2'!E2<'sh2'!D2,"J",IF('sh2'!E2='sh2'!D2,"K"))))

I would guess it should look like this: IF('sh2'!E2=<10,"J",IF('sh2'!E2>'sh2'!D2,"L",IF('sh2'!E2<'sh2'!D2,"J",IF('sh2'!E2='sh2'!D2,"K"))))

Works perfect.
You guys are amazing.
Thanks a lot!

Replies
8
Views
424
Replies
1
Views
454
Replies
0
Views
222
Replies
3
Views
1K
Replies
6
Views
739

1,196,073
Messages
6,013,273
Members
441,759
Latest member
ab_

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back