+ Reply to Thread
Results 1 to 6 of 6

Nested If Formula which includes IF(And

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Nested If Formula which includes IF(And

    I can't seem to get this formula to work. Any help would be greatly appreciated!

    Please Login or Register  to view this content.
    In words, I'd like to say:
    If $B8 is blank then leave this cell blank.
    If 5886+Formulas!$E8 is greater than 5895 then put "No Data" in the cell.

    If 5886 + Formulas!$E8 is less than or equal to 5895 AND RCHGetElement($B8,5886+Formulas!$E8=0) then the cell should equal "negative 0.001"

    If 5886 + Formulas!$E8 is is less than or equal to 5895 AND RCHGetElement($B8,5886<>0) then the cell should equal RCHGetElement($B8,5886+Formulas!$E8)

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested If Formula which includes IF(And

    lottidotti,

    Perhaps...
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-19-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Nested If Formula which includes IF(And

    Tigeravatar, thanks for the quick response.
    I tried your formula, but for some reason the cell says "#NAME?"

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested If Formula which includes IF(And

    Probably because RCHGetElement isn't a native excel function. Do you have the UDF code or install an add-in in order to use that function?

  5. #5
    Registered User
    Join Date
    08-19-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Nested If Formula which includes IF(And

    Tigeravatar, Yes, I have the add-in.
    That wasn't the problem.
    Also, your formula wasn't the problem either.

    I just realized that the function is:
    RCHGetElementNumber (not RCHGetElement)

    I am totally humbled and impressed by your skills!
    Thanks for the help!

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested If Formula which includes IF(And

    You're very welcome, and thank you for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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