Formula uses more levels of nesting than allowed

Memphis317

New Member
Joined
Aug 3, 2018
Messages
1
As you can see from the formula, I'm attempting to get point values from one time to the next in half-point increments. Not even halfway through the formula, I ran a test and it said there were too many levels of nesting. It will place the point values up to about the 9 point mark, but not afterwards. I need values from 10 to 1 showing half point values depending on the individual's run time. I don't want to create a chart with every second in between points and have it assign the value associated. That seems like it would take up a lot of space. Any suggestions?

=IF(P4>VALUE("01:00"),IF(P4<VALUE("11:46"),10,IF(P4>VALUE("11:45"),IF(P4<VALUE("11:57"),9.5,IF(P4>VALUE("11:56"),IF(P4<V ALUE("12:08"),9,IF(P4>VALUE("12:07"),IF(P4<VALUE("12:19"),8.5,IF(P4>VALUE("12:18"),IF(P4<VALUE("12:30"),8,IF(P4>VALUE("1 2:29"),IF(P4<VALUE("12:41"),7.5,IF(P4>VALUE("12:40"),IF(P4<VALUE("12:52"),7,IF(P4>VALUE("12:51"),IF(P4<VALUE("13:03"),6. 5,))))))))
 
Last edited by a moderator:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello and welcome to The Board.
You did not say which version of Excel is being used.
I would guess that it could be pre-2007 where the limit was 7 nested IF statements.
At 2007+ it would be 64.
When trying your formula in 2016, the formula generated a warning:
It would seem that there were some brackets missing at the end.
The corrected formula had eight more ")" at the end.
Try the corrected formula first and let me know if that solves your problem (assuming that you are using Excel 2007 or later).
 
Last edited:
Upvote 0
=IF(P4>VALUE("01:00"),IF(P4<VALUE("11:46"),10,IF(P4>VALUE("11:45"),IF(P4<VALUE("11:57"),9.5,IF(P4>VALUE("11:56"),IF(P4<V ALUE("12:08"),9,IF(P4>VALUE("12:07"),IF(P4<VALUE("12:19"),8.5,IF(P4>VALUE("12:18"),IF(P4<VALUE("12:30"),8,IF(P4>VALUE("1 2:29"),IF(P4<VALUE("12:41"),7.5,IF(P4>VALUE("12:40"),IF(P4<VALUE("12:52"),7,IF(P4>VALUE("12:51"),IF(P4<VALUE("13:03"),6. 5,))))))))

1. If you start at the highest and work down, you can cut down on the IF's
2. Looks to me like there is a mathematical regression there?
10-(11:46-0:01)/2
something like that?
 
Upvote 0
Would you be able to use vlookup table with TRUE ?
Sort your data nicely and set second column.

=VLOOKUP(F9,$B$7:$C$16,2,TRUE)

111.63
1.25225
1.532.15
1.7542.88
25
2.256
2.57
2.758
39
3.2510

<colgroup><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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
Back
Top