Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Linda
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?

Can anyone tell me what's wrong with this formula:
=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5)) ))))))
I get an error message and I do not know why? Please help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?

http://www.cpearson.com/excel/nested.htm

--
Kind regards,

Niek Otten

"Linda" wrote in message ...
Can anyone tell me what's wrong with this formula:
=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5)) ))))))
I get an error message and I do not know why? Please help!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?

I don't, but it could be simpler

=IF(OR(D5=517,D5=520,D5=521,D5=522,D5=523,D5=524,D 5=567),8,IF(D524,0,D5))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Linda" wrote in message
...
Can anyone tell me what's wrong with this formula:

=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(
D5=567,8,IF(D524,0,D5))))))))
I get an error message and I do not know why? Please help!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dana DeLouis
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?

=IF(D5=517,8,IF(D5=520,8,IF(D5=521...etc

Would this work?

=IF(OR(D5={517,520,521,522,523,524,567}),8,IF(D52 4,0,D5))

--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"Linda" wrote in message
...
Can anyone tell me what's wrong with this formula:
=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5)) ))))))
I get an error message and I do not know why? Please help!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ah
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?

The last part of the formula overides all the other if statements and you
have too many nested if statements, You can only have 7. You could solve this
with a lookup table or here is another way
=IF(OR(D5=517,D5=520,D5=521,D5=522),8,"")
--
thanks

ah


"Linda" wrote:

Can anyone tell me what's wrong with this formula:
=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5)) ))))))
I get an error message and I do not know why? Please help!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ChE_maynard
 
Posts: n/a
Default Can anyone tell me what's wrong with this formula?


Linda Wrote:
Can anyone tell me what's wrong with this formula:
=IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,I F(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5))) )))))
I get an error message and I do not know why? Please help!


Look at the fifth "IF", there's a space between the "I" and the "F".
Hope this it!
maynard


--
ChE_maynard
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 formula calculations are wrong Shamroq Excel Worksheet Functions 4 February 8th 06 11:49 AM
Formula retrieves wrong data Newmoon Excel Discussion (Misc queries) 2 August 11th 05 04:02 PM
Recalculating Formula - Getting the wrong answers skherzog Excel Discussion (Misc queries) 2 June 29th 05 12:31 PM
Wrong answer after using the payment formula in excel punkyh New Users to Excel 8 April 28th 05 07:56 PM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM


All times are GMT +1. The time now is 08:35 AM.

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"