Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Quick help with a simple function!

Hi all, first time posting here.

I'm just working on a command for a sheet here at work and I think I
must have been staring at it for too long. The sequence below returns
an error and excel won't accept it as a formula. I think I'm missing an
outcome, but I can't see where,

cheers,

=IF(B9=0,0,(IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE) ,IF(B9=Q22,Z22,IF(B9=Q21,Z21,IF(B9=Q20,Z20,IF(H9=" Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default Quick help with a simple function!

Simple little function? lol
After a couple of read throughs by my count you have 23 left brackets and
only 22 right ones. Also I believe there is a character limit for formulas
as well, not sure what it is though.

" wrote:

Hi all, first time posting here.

I'm just working on a command for a sheet here at work and I think I
must have been staring at it for too long. The sequence below returns
an error and excel won't accept it as a formula. I think I'm missing an
outcome, but I can't see where,

cheers,

=IF(B9=0,0,(IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE) ,IF(B9=Q22,Z22,IF(B9=Q21,Z21,IF(B9=Q20,Z20,IF(H9=" Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))))


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Quick help with a simple function!

They've exceeded the nested function limit of 7.

There's too much "stuff" going on in there to suggest anything.

Biff

"tim m" wrote in message
...
Simple little function? lol
After a couple of read throughs by my count you have 23 left brackets and
only 22 right ones. Also I believe there is a character limit for
formulas
as well, not sure what it is though.

" wrote:

Hi all, first time posting here.

I'm just working on a command for a sheet here at work and I think I
must have been staring at it for too long. The sequence below returns
an error and excel won't accept it as a formula. I think I'm missing an
outcome, but I can't see where,

cheers,

=IF(B9=0,0,(IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE) ,IF(B9=Q22,Z22,IF(B9=Q21,Z21,IF(B9=Q20,Z20,IF(H9=" Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))))




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Quick help with a simple function!

I concur with Tim that you have 23 left parentheses and 22 right. You also
have more nesting levels than allowed at eight - max seven nesting levels.
The following is a brave attempt at fixing it. I have substituted this:

IF(NOT(ISNA(MATCH(B9, Q20:Q22, 0))), OFFSET(Z19, MATCH(B9, Q20:Q22, 0), 0)

For this:

If(B9=Q22, Z22, If(B9=Q21, Z21, If(B9=Q20, Z20€¦

thus reducing the nesting levels to six.

=IF(B9=0,0,IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE), IF(NOT(ISNA(MATCH(B9,
Q20:Q22, 0))), OFFSET(Z19, MATCH(B9, Q20:Q22, 0),
0),IF(H9="Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))

Hope it helps.

Regards,
Greg

" wrote:

Hi all, first time posting here.

I'm just working on a command for a sheet here at work and I think I
must have been staring at it for too long. The sequence below returns
an error and excel won't accept it as a formula. I think I'm missing an
outcome, but I can't see where,

cheers,

=IF(B9=0,0,(IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE) ,IF(B9=Q22,Z22,IF(B9=Q21,Z21,IF(B9=Q20,Z20,IF(H9=" Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))))


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Quick help with a simple function!

Thats the ticket,
thanks for that guys, works like a charm now, I think you might be
hearing alot more from me in the future,
thanks again

Greg Wilson wrote:
I concur with Tim that you have 23 left parentheses and 22 right. You also
have more nesting levels than allowed at eight - max seven nesting levels.
The following is a brave attempt at fixing it. I have substituted this:

IF(NOT(ISNA(MATCH(B9, Q20:Q22, 0))), OFFSET(Z19, MATCH(B9, Q20:Q22, 0), 0)

For this:

If(B9=Q22, Z22, If(B9=Q21, Z21, If(B9=Q20, Z20...

thus reducing the nesting levels to six.

=IF(B9=0,0,IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE), IF(NOT(ISNA(MATCH(B9,
Q20:Q22, 0))), OFFSET(Z19, MATCH(B9, Q20:Q22, 0),
0),IF(H9="Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))

Hope it helps.

Regards,
Greg

" wrote:

Hi all, first time posting here.

I'm just working on a command for a sheet here at work and I think I
must have been staring at it for too long. The sequence below returns
an error and excel won't accept it as a formula. I think I'm missing an
outcome, but I can't see where,

cheers,

=IF(B9=0,0,(IF(C9="TPL",VLOOKUP(B9,Q7:Y32,9,FALSE) ,IF(B9=Q22,Z22,IF(B9=Q21,Z21,IF(B9=Q20,Z20,IF(H9=" Y",IF(C950000,(C9-50000)*E9*F9*I9,0),IF(VLOOKUP(B9,Q7:W32,7,FALSE)I F(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)),VLOOKUP(B9,Q7:W32,7,FA LSE),IF(C9200000,IF(G9=1.1,(C9-200000)*E9*F9*G9*I9*0.75+200000*E9*F9*G9*I9,(C9-200000)*E9*F9*I9*0.75+200000*E9*F9*I9),IF(G9=1.1,C 9*E9*F9*G9*I9,C9*E9*F9*I9)))))))))



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
Custom function Christina L. Excel Worksheet Functions 1 May 10th 06 07:38 PM
Simple IF function query (hopefully) ahaigh Excel Discussion (Misc queries) 3 April 10th 06 01:18 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 11:15 PM
Function formula for simple worksheet mouse New Users to Excel 1 June 9th 05 04:00 PM
Simple Function Help ~ Please Avram Berman Excel Worksheet Functions 9 November 20th 04 12:01 AM


All times are GMT +1. The time now is 07:11 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"