# Large Nesting Problem

#### breakr19

##### New Member
I'm looking to combine the following formulas into one cell. I would nest them, but I can't even get that to work correctly for two of them, let alone all six. There has to be a simpler way that I am just not knowledgeable about.

IF(AND(\$F52>\$K52,\$D52<\$I52),16-ABS(\$D52-\$I52))

IF(AND(\$F52>\$K52,\$D52>\$I52),16+ABS(\$D52-\$I52))

IF(AND(\$F52<\$K52,\$D52<\$I52),16+ABS(\$D52-\$I52))

IF(AND(\$F52<\$K52,\$D52>\$I52),16-ABS(\$D52-\$I52))

IF(AND(\$F52>\$K52,\$D52=\$I52),16)

IF(AND(\$F52<\$K52,\$D52=\$I52),16)

### Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the \$ sign).
Formulas 5 and 6 are redundant to the first 4.

What if F52=K52?

This is getting close:
=16+(\$I52-\$D52)*IF(F52>K52,-1,1)
it just doesn't return FALSE when F and K are equal.

shg is right on the redundancy of 5 and 6.

F52 will never = K52 due to the fact that they are head-to-head competitions, and the end result will always have one higher than the other.

p45cal, your formula works exactly like I need it to. It's crazy how much more simplified and clean that is compared to the listing (and possible nesting) of the other four. Thank you!

Replies
0
Views
208
Replies
7
Views
569
Replies
3
Views
717
Replies
1
Views
501
Replies
0
Views
578

1,211,983
Messages
6,105,214
Members
447,956
Latest member
haluxuxjr

### 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