Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
vencopbrass
 
Posts: n/a
Default if stmt trouble


here is my current formula:
=ROUND(IF(AND(D7="Gallons",D8="O.D."),(B7*231)/(0.7854*B8^2),IF(AND(D7="O.D.",D8="Gallons"),(B8*2 31)/(0.7854*B7^2),IF(AND(D7="Straight
Side",D8="Gallons"),((B8*231)/(0.7854*B7))^0.5,IF(AND(D7="Gallons",D8="Straight
Side"),((231*B7)/(0.7854*B8))^0.5,IF(AND(D7="O.D.",D8="Straight
Side"),(0.7854*B7^2*B8)/231,(0.7854*B8^2*B7)/231))))),4)

this was working great until I was asked to add another constraint.
This calculates diameter or height or gallons depending on what was
entered. Problem is that this was set up for input of inches and now
the input can be either inches or feet. These formulas only work for
inches. Now I need to check to see if the user inputed inches or feet
and I can't fit that many if statements into this.
Any suggestions?
I know theres a better way to do this, but am at a loss.
Thanks
Lisa


--
vencopbrass
------------------------------------------------------------------------
vencopbrass's Profile: http://www.excelforum.com/member.php...o&userid=31868
View this thread: http://www.excelforum.com/showthread...hreadid=516346

 
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
UGH! Trouble downloading, and opening anything cali Excel Discussion (Misc queries) 1 December 15th 05 06:36 AM
Time Sheet for my org Im still having trouble Jesse_Norris Excel Discussion (Misc queries) 4 July 30th 05 06:28 AM
trouble shooting section danielle Excel Discussion (Misc queries) 1 April 25th 05 10:11 PM
Trouble with Dates between 2 seperate worksheets Julie Excel Discussion (Misc queries) 3 March 4th 05 07:57 PM
Graphing Trouble ¤Xperimental¤ Excel Discussion (Misc queries) 1 February 3rd 05 01:18 PM


All times are GMT +1. The time now is 05:16 PM.

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"