Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Wow, this is a great wealth of information! My problem is that I have a JavaScript (don't laugh, I needed something that someone could run on any computer, modify the source and run again) program that is writing this and many other formulas that takes user input of the "tiers". I have to output many formula's, and I was using other formulas that I was outputting and simply nesting them into the other formulas. This would work if I could nest unlimited, but I guess that is not the case. Instead I decided, with your guys help, that I was just going to have to write each formula on it's own. Now my program outputs this : =IF(OR(C2+E2<1000,B2+D2<100),"none", IF(OR(C2+E2<2000,B2+D2<200),"Bronze", IF(OR(C2+E2<3000,B2+D2<300),"Silver", IF(OR(C2+E2<4000,B2+D2<400),"Gold", IF(OR(C2+E2<5000,B2+D2<500),"Platinum", IF(OR(C2+E2<6000,B2+D2<600),"Diamond", IF(OR(C2+E2<7000,B2+D2<700),"MoonRock", "CarbonNanoTubes"))))))) (exactly what you guys were simplifying to) Unfortunatly, I still then hit the nesting limit as soon as I add one more tier =IF(OR(C2+E2<1000,B2+D2<100),"none", IF(OR(C2+E2<2000,B2+D2<200),"Bronze", IF(OR(C2+E2<3000,B2+D2<300),"Silver", IF(OR(C2+E2<4000,B2+D2<400),"Gold", IF(OR(C2+E2<5000,B2+D2<500),"Platinum", IF(OR(C2+E2<6000,B2+D2<600),"Diamond", IF(OR(C2+E2<7000,B2+D2<700),"Moon Rock", IF(OR(C2+E2<8000,B2+D2<800),"Carbon Nano Tubes", "Naquida")))))))) So I guess I do need to go with a lookup system of sorts. I was looking at dadylonglegs and it looked good, except my tier levels will constantly be changing and will not be as reliable as my sample data. It will more likely look something like this : =IF(OR(C2+E2<117.5,B2+D2<12),"none", IF(OR(C2+E2<186.45,B2+D2<19),"Bronze", IF(OR(C2+E2<499.99,B2+D2<27),"Silver", IF(OR(C2+E2<1965.45,B2+D2<70),"Gold", IF(OR(C2+E2<6789.95,B2+D2<111),"Platinum", IF(OR(C2+E2<8006.41,B2+D2<173),"Diamond", IF(OR(C2+E2<9001.32,B2+D2<198),"Moon Rock", IF(OR(C2+E2<10000.39,B2+D2<275),"Carbon Nano Tubes", "Naquida")))))))) Is there an easy way to do this? -- trex005 ------------------------------------------------------------------------ trex005's Profile: http://www.excelforum.com/member.php...o&userid=34724 View this thread: http://www.excelforum.com/showthread...hreadid=544888 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible? | Excel Worksheet Functions | |||
Complex Formula Getting Error.. | Excel Discussion (Misc queries) | |||
2 Nesting questions | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Complex formula | Excel Discussion (Misc queries) |