ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS (https://www.excelbanter.com/excel-worksheet-functions/9214-enter-excel-formula-more-than-7-nested-functions.html)

Linda Bolton

ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS
 
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))))))))))))

Ron Rosenfeld

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

Bob Phillips

Hi Linda,

You can't do that, as you see, but try this formula

=IF(AF614,0,IF(AF6<6,AF6,AF6-MATCH(AG6-5,{1,2,3,4,5,6,7,8,9},0)))

--
HTH

-------

Bob Phillips
"Linda Bolton" <Linda wrote in message
...
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))))))))))))




All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com