+ Reply to Thread
Results 1 to 13 of 13

Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

  1. #1
    Registered User
    Join Date
    12-23-2008
    Location
    Santa Rosa, CA
    Posts
    4

    Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

    Hello excel geniuses!

    I've run into a formula that I can't seem to get working correctly in Excel and I'm about at the end of my rope.

    The formula I'm interested in is the first calculation for estimation of Vapor Pressure Deficit (important in Viticulture and botany in general).

    The specific formula can be found under Step 2a in the attachment below. It's also located 3/4 of the way down the page here.

    In the code below is the formula I've input into excel. C2 references a field that holds Ambient Temp in degrees F (in the formula it is converted to Kelvin). In the attachment below they give an example using 50F which gives a result of .178 psi.

    Please Login or Register  to view this content.
    My formula keeps generating a result of 0, and only 0 unfortunately. I've checked and compared the two formulas multiple times but can't find a typing error. I'm left thinking that my nesting of parenthesis are off or that I'm not formating the exp() or ln() functions correctly somehow.

    I really appreciate any help or advice anyone can give!

    Josh
    Attached Images Attached Images
    Last edited by pinotblogger; 12-23-2008 at 02:48 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    In order to avoid having to answer the same questions every day, we require that posters compose thread titles that make the forum usefully searchable. Your title doesn't advance that goal.

    Please take a few minutes to read the Forum Rules about thread titles, and then edit yours to make it descriptive of your problem.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    If the Formula Auditing Toolbar isn't visible, turn it on. Then highlight your cell with that formula in it and click on the Evaluate Formula icon.

    In there, you can step through your formula on click at a time and spot where the "Zero" is occurring.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    12-23-2008
    Location
    Santa Rosa, CA
    Posts
    4
    Shg,

    My apologies. I've changed the title.

    JBeaucaire,

    I'll give the auditor another try to see if I can figure it out. When I ran it last (2 days ago) I was getting a different error, so perhaps it will help me nail down the 0 problem.

    Thanks for the advice!

  5. #5
    Registered User
    Join Date
    12-23-2008
    Location
    Santa Rosa, CA
    Posts
    4
    Formula auditor doesn't help unfortunately. I've uploaded the last two steps as attachments. As you can see there is no zero error until Excel attempts to evaluate exp(-18178.2189877272).

    This evaluates to 0 for as many decimals as I care to try.

    This is a proven formula, so I know the problem is on my end.
    Attached Images Attached Images

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Well, just typing in the formula =EXP(-18178) gets you zero. When I use any number less than EXP(-708) it results in a 0, so your formula has to create a result less than for EXP to do anything with it.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The signs of two of your constants (D and F) are wrong:
    Please Login or Register  to view this content.
    BTW, temp is Rankine, not Kelvins.
    Last edited by shg; 12-23-2008 at 02:06 PM.

  8. #8
    Registered User
    Join Date
    12-23-2008
    Location
    Santa Rosa, CA
    Posts
    4
    Fantastic!

    It seems my nesting is causing an error (besides the signs of the constants - doh!) since when I change the signs in my equation I get a #NUM error.

    When I calculate it the way you've shown things work out just fine.

    Thank you shg!

    BTW, Do you like Extra Virgin Olive oil? I'd love to send you a bottle for the help. If you're interested, email is josh at pinotblogger.com.

    Thanks again!

    PS You're right about Rankine as well. I was working on a metric version of the formula earlier and well, yet another mistake.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Love EVOO.

    Would you please mark the thread as solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

  10. #10
    Registered User
    Join Date
    02-26-2011
    Location
    Nor Cal
    MS-Off Ver
    Excel 2008
    Posts
    1

    Re: Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

    It seems that this formula was completed successfully, but is incomplete here on this post. Is there a final version of the excel formula / file that I can get? If anyone can help, please respond to [email protected]. THANKS!
    Last edited by shg; 02-26-2011 at 01:59 PM. Reason: deleted email

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

    Re: Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

    The complete solution is shown in post#7. If you have questions, please start a new thread and add a link to this one if appropriate.
    Last edited by shg; 02-26-2011 at 02:00 PM.

  12. #12
    Registered User
    Join Date
    03-25-2014
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

    in step 7 what is the LN? all of the other parts of the formula are referenced in the standard numbers. Also if I am working in Celsius do I need to convert to Rankine?

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Calculating Vapor Pressure Deficit in Excel (Problem with complex formula)

    @mooselodge: This forum is pretty strict about starting your own thread, rather than posting your question in an old thread.

    LN is natural logarithm. Choice of temperature units will be specific to the equation/coefficients given (this particular example is specific to T in Rankine). If you need more help than that, please start your own thread, including a link to this thread if you feel it is particularly important to the posting of your own question.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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