#1   Report Post  
Fran
 
Posts: n/a
Default FORMULA

I need to write an if then statement that contains more than 7 nested levels
how do I do that. So far I have:

=IF(D375,"3.350",IF(D370,"2.034",IF(D365,"1.152 ",IF(D360,".738",IF(D355,".630",IF(D350,".387", IF(D345,".252",IF(D340,".153",".063"))))))))

which works, but soon as I add another IF statement it gives me an error
message.
I need to add 2 more IF statements for this formula to work....

Thanks
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Hi, Fran. If you set up a table for your values and use VLOOKUP, you can
easily change the values later in the table without having to update your
formula. See:
http://www.officearticles.com/excel/...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com

"Fran" wrote in message
...
I need to write an if then statement that contains more than 7 nested
levels
how do I do that. So far I have:

=IF(D375,"3.350",IF(D370,"2.034",IF(D365,"1.152 ",IF(D360,".738",IF(D355,".630",IF(D350,".387", IF(D345,".252",IF(D340,".153",".063"))))))))

which works, but soon as I add another IF statement it gives me an error
message.
I need to add 2 more IF statements for this formula to work....

Thanks



  #3   Report Post  
Fran
 
Posts: n/a
Default

Thanks I'll check it out.

"Anne Troy" wrote:

Hi, Fran. If you set up a table for your values and use VLOOKUP, you can
easily change the values later in the table without having to update your
formula. See:
http://www.officearticles.com/excel/...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com

"Fran" wrote in message
...
I need to write an if then statement that contains more than 7 nested
levels
how do I do that. So far I have:

=IF(D375,"3.350",IF(D370,"2.034",IF(D365,"1.152 ",IF(D360,".738",IF(D355,".630",IF(D350,".387", IF(D345,".252",IF(D340,".153",".063"))))))))

which works, but soon as I add another IF statement it gives me an error
message.
I need to add 2 more IF statements for this formula to work....

Thanks




  #4   Report Post  
Casey
 
Posts: n/a
Default


Fran,
I would approach this problem differently. I would make a table on
another sheet. Something like this on say Sheet1 A1:B10:

Column A Column B
75 3.350
70 2.034
and so on....................

Then use a formula like this

IF(D3<"",VLOOKUP(D3,Sheet1!A1:B10,2,FALSE),0)

Then you can have as many choices as you need and if in the future the
values change, you just have to change the little table not all those
formulas.

HTH


--
Casey


------------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=475915

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
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
writing a formula for a colored value aaronwexler New Users to Excel 11 September 1st 05 03:11 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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