View Single Post
  #2   Report Post  
Old January 14th 05, 12:55 PM
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 14 Jan 2005 03:09:02 -0800, Linda Bolton <Linda
wrote:

I am entering and IF expression with more than 7 nested functions. Is there
another way to enter formula which would work?

=IF(AG6<6,AF6,IF(AG6=6,AF6-1,IF(AG6=7,AF6-2,IF(AG6=8,AF6-3,IF(AG6=9,AF6-4,IF(AG6=10,AF6-5,IF(AG6=11,AF6-6IF(AG6=12,AF6-7,IF(AG6=13,AF6-8,IF(AG6=14,AF6-9,IF(AG614,0))))))))))))



You can not nest more than seven functions in Excel, so a different approach
must be used.

If AG6 will always be an integer, then:

=AF6+MAX(-9,MIN(0,5-AG6))

should give the equivalent result.

If AG6 might not always be an integer, then you need to post back with what you
would like to do in that event.


--ron