Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default function nesting limitations

I'm trying to write a formula to check for sales totals and then calculate
the correct comission. I need to test for nine conditions but Excel limits
the nesting to seven. How do I get around this limitation?


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default function nesting limitations

Look in the help index for LOOKUP or VLOOKUP

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bitter Clinger" wrote in message
...
I'm trying to write a formula to check for sales totals and then calculate
the correct comission. I need to test for nine conditions but Excel
limits the nesting to seven. How do I get around this limitation?


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default function nesting limitations

It looks as if VLOOKUP may work but I have other questions now. In using an
array, do I have to use constants, or can I use formulas? I need to take
the sales figure and find the range it is in and then multiply it by a set
percentage to come up with the comission. As the sales figure goes higher,
so does the comission percentage. So how would I use VLOOKUP to find the
range the sales fits into, and then calculate the correct comission and
place it in the proper cell? And can the array reside on another sheet in
the workbook, and if so, how would you reference the other sheet?

Sorry for so many questions.

"Don Guillett" wrote in message
...
Look in the help index for LOOKUP or VLOOKUP

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bitter Clinger" wrote in message
...
I'm trying to write a formula to check for sales totals and then
calculate the correct comission. I need to test for nine conditions but
Excel limits the nesting to seven. How do I get around this limitation?




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,344
Default function nesting limitations

Hi,

The limit in Excel 2003 and earlier the limit is 7 levels although there are
a number of ways to beat that. In 2007 that limit is 64!

Even so the correct approach is VLOOKUP(Key,Table,Column,Type)

You would set up a Table like this in C1:D3:

1000 5%
2000 7%
3000 11%

If you want the rate for $1540 in cell A1 the formula would be
=VLOOKUP(A1,C1:D3,2,TRUE)
2 means you want the value back from column 2 of the table. TRUE means you
are doing an approximate match, that is if the value 1540 isn't found in the
first column then the one above it (a lower row number) is used. In our
example 5% is returned. when you are using an approximate match the table is
always sorted ascending on the first column, this is how Excel knows which
one to pick.

--
Thanks,
Shane Devenshire


"Bitter Clinger" wrote:

It looks as if VLOOKUP may work but I have other questions now. In using an
array, do I have to use constants, or can I use formulas? I need to take
the sales figure and find the range it is in and then multiply it by a set
percentage to come up with the comission. As the sales figure goes higher,
so does the comission percentage. So how would I use VLOOKUP to find the
range the sales fits into, and then calculate the correct comission and
place it in the proper cell? And can the array reside on another sheet in
the workbook, and if so, how would you reference the other sheet?

Sorry for so many questions.

"Don Guillett" wrote in message
...
Look in the help index for LOOKUP or VLOOKUP

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bitter Clinger" wrote in message
...
I'm trying to write a formula to check for sales totals and then
calculate the correct comission. I need to test for nine conditions but
Excel limits the nesting to seven. How do I get around this limitation?





  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default function nesting limitations


There is also an interesting solution at 'this site'
(http://www.mcgimpsey.com/excel/variablerate.html) using SUMPRODUCT


--
Pecoflyer
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=24127



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 293
Default function nesting limitations

Hi Bitter Clinger,

Depending on what you're doing, you may not even need the IF function.

For example, suppose you want to test the value in A1 and, depending on the value there, multiply the value in B1 by the value in
another cell. For that you could use something like:
=((A1=0)*D3+(A1=1)*D4+(A1=2)*D5+(A1=3)*D6)*B1
instead of:
=IF(A1=0,D3,IF(A1=1,D4,IF(A1=2,D5,IF(A1=3,D6,0)))) *B1

--
Cheers
macropod
[MVP - Microsoft Word]


"Bitter Clinger" wrote in message ...
I'm trying to write a formula to check for sales totals and then calculate the correct comission. I need to test for nine
conditions but Excel limits the nesting to seven. How do I get around this limitation?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting Networkdays function inside and If function Addison Excel Worksheet Functions 2 April 13th 06 08:04 PM
Indirect function - Limitations Ken Cobler Excel Worksheet Functions 2 September 16th 05 04:59 PM
function cell range limitations AXA Excel Worksheet Functions 3 January 30th 05 11:09 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
Nesting A Function Dmorri254 Excel Worksheet Functions 3 November 5th 04 08:36 PM


All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"