Large Nesting Problem

breakr19

New Member
Joined
Aug 5, 2011
Messages
6
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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,833
Office Version
  1. 2010
Platform
  1. Windows
Formulas 5 and 6 are redundant to the first 4.

What if F52=K52?
 

p45cal

Well-known Member
Joined
Nov 10, 2009
Messages
4,763
This is getting close:
=16+($I52-$D52)*IF(F52>K52,-1,1)
it just doesn't return FALSE when F and K are equal.
 

breakr19

New Member
Joined
Aug 5, 2011
Messages
6
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!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,517
Messages
5,837,791
Members
430,516
Latest member
thaling

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top