Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chris Berding
 
Posts: n/a
Default Nesting excel greater than 7 arguments

I'm trying to nest greater than 7 arguments, based on a variable rate
structure. For example, there are 8 different age catories, and 9 different
rates... so depending on the person's age, i need to use a different rate. I
have successfully nested the maximum, but it leaves me with three age groups
that I can't calculate automatically.
Here is my formula so far:
=IF(F3=70,Q3*VolLifeRates!$B$28,IF(F3=65,Q3*VolL ifeRates!$B$27,IF(F3=60,Q3*VolLifeRates!$B$26,IF( F3=55,Q3*VolLifeRates!$B$25,IF(F3=50,Q3*VolLifeR ates!$B$24,IF(F3=45,Q3*VolLifeRates!$B$23,IF(F3= 40,Q3*VolLifeRates!$B$22,IF(F3=40,Q3*VolLifeRates !$B$21,"manual calc."))))))))

It doesnt work or anyone under 40 :( so i have to manually calculate any
clients who's age is less than 40.

Grateful if you have a way around Microsoft's maximum!
  #2   Report Post  
Ken Wright
 
Posts: n/a
Default

On your sheet VolLifeRates, in cells A17:A28 put 0,20,25,30,35.......70.
This assumes that you have rates in cells B17:B28. If not then you should
be able to work out what's going on here. The 0 should be against your
lowest rate:-

Now replace your formula with the following:-

=Q3*VLOOKUP(F3,$A$17:$B$28,2)

Take a look at the help on the VLOOKUP function

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Chris Berding" <Chris wrote in message
...
I'm trying to nest greater than 7 arguments, based on a variable rate
structure. For example, there are 8 different age catories, and 9
different
rates... so depending on the person's age, i need to use a different rate.
I
have successfully nested the maximum, but it leaves me with three age
groups
that I can't calculate automatically.
Here is my formula so far:
=IF(F3=70,Q3*VolLifeRates!$B$28,IF(F3=65,Q3*VolL ifeRates!$B$27,IF(F3=60,Q3*VolLifeRates!$B$26,IF( F3=55,Q3*VolLifeRates!$B$25,IF(F3=50,Q3*VolLifeR ates!$B$24,IF(F3=45,Q3*VolLifeRates!$B$23,IF(F3= 40,Q3*VolLifeRates!$B$22,IF(F3=40,Q3*VolLifeRates !$B$21,"manual
calc."))))))))

It doesnt work or anyone under 40 :( so i have to manually calculate any
clients who's age is less than 40.

Grateful if you have a way around Microsoft's maximum!



  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

Oops - make that

=Q3*VLOOKUP(F3,VolLifeRates!$A$17:$B$28,2)

Regards
Ken................


  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

Another possible option involving no additional data:-

Assuming your first rate starts in B20

=Q3*OFFSET(VolLifeRates!$B$20,F3/5-6,)

Regards
Ken...............


  #5   Report Post  
Ken Wright
 
Posts: n/a
Default

Grrrrrrrr, correction

=Q3*OFFSET(VolLifeRates!$B$20,MIN(0,INT(F3/5)-6),)

Regards
Ken.....................


"Ken Wright" wrote in message
...
Another possible option involving no additional data:-

Assuming your first rate starts in B20

=Q3*OFFSET(VolLifeRates!$B$20,F3/5-6,)

Regards
Ken...............






  #6   Report Post  
Ken Wright
 
Posts: n/a
Default

For crying out loud - Going to bed now!!!!!!!!!

=Q3*OFFSET(VolLifeRates!$B$20,MAX(0,INT(F3/5)-6),)

Regards
Ken.....................


  #7   Report Post  
RagDyeR
 
Posts: n/a
Default

When I see 5 posts in a row, all from the same author, I figure that either
his news reader is broken, and he can't see what he's already posted, OR ...
he's got soooo much money in the bank, that he's talking to himself.<g

I can see that your news reader isn't broken.<vbg
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"Ken Wright" wrote in message
...
For crying out loud - Going to bed now!!!!!!!!!

=Q3*OFFSET(VolLifeRates!$B$20,MAX(0,INT(F3/5)-6),)

Regards
Ken.....................



  #8   Report Post  
Chris Berding
 
Posts: n/a
Default

Mayn, you guys are GOOD. I've created another problem now =) I'll post it
under a separate heading. THANK YOU!!!

"Ken Wright" wrote:

On your sheet VolLifeRates, in cells A17:A28 put 0,20,25,30,35.......70.
This assumes that you have rates in cells B17:B28. If not then you should
be able to work out what's going on here. The 0 should be against your
lowest rate:-

Now replace your formula with the following:-

=Q3*VLOOKUP(F3,$A$17:$B$28,2)

Take a look at the help on the VLOOKUP function

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------Â*------------------------------Â*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------Â*------------------------------Â*----------------


"Chris Berding" <Chris wrote in message
...
I'm trying to nest greater than 7 arguments, based on a variable rate
structure. For example, there are 8 different age catories, and 9
different
rates... so depending on the person's age, i need to use a different rate.
I
have successfully nested the maximum, but it leaves me with three age
groups
that I can't calculate automatically.
Here is my formula so far:
=IF(F3=70,Q3*VolLifeRates!$B$28,IF(F3=65,Q3*VolL ifeRates!$B$27,IF(F3=60,Q3*VolLifeRates!$B$26,IF( F3=55,Q3*VolLifeRates!$B$25,IF(F3=50,Q3*VolLifeR ates!$B$24,IF(F3=45,Q3*VolLifeRates!$B$23,IF(F3= 40,Q3*VolLifeRates!$B$22,IF(F3=40,Q3*VolLifeRates !$B$21,"manual
calc."))))))))

It doesnt work or anyone under 40 :( so i have to manually calculate any
clients who's age is less than 40.

Grateful if you have a way around Microsoft's maximum!




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
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Importing txt csv files into Excel greater than 65k lines strippier Excel Discussion (Misc queries) 1 April 20th 05 06:34 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM


All times are GMT +1. The time now is 09:57 AM.

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

About Us

"It's about Microsoft Excel"