+ Reply to Thread
Results 1 to 3 of 3

Overflow Error - Solving Temperature using Antoine Equation

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2011 Mac
    Posts
    25

    Overflow Error - Solving Temperature using Antoine Equation

    I am trying to calculate the temperature for the hdrogentation column that has a pressure of 515 psia. When I enter this value I get "Overflow Error 6". I defined P as Long, but I still get the same error. I know the code will work if the pressure is changed to 55 psia. I believe the problem may be due to a very long mmHg value, because 515 psia = 26632 mmHg while 55 psi = 2844 mmHg. I have checked the Antoine coefficients and they are correct.

    Here is my code. Please help. Attached file also.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ggilzow; 03-03-2011 at 04:18 PM. Reason: Adhere to Rule for Code Placement

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Overflow Error - Solving Temperature using Antoine Equation

    I unwound your code a little:
    Please Login or Register  to view this content.
    I suggest you step through it and see where the problem occurs. You might spend some time reading http://www.cpearson.com/excel/debug.htm
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-03-2011
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2011 Mac
    Posts
    25

    Re: Overflow Error - Solving Temperature using Antoine Equation

    Problem Solved!!

    The pressure was out of limit for the column!

    My code does work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1