+ Reply to Thread
Results 1 to 12 of 12

Nested "IF" formula

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Nested "IF" formula

    I'm trying to simply have this nested "IF" formula yield results which just refer to values in other cells, but so far it's only yielding "FALSE".

    Here is my formula so far:

    B2=IF(E2<0.5,A2,IF(0.5<E2<0.7,A3,IF(0.7<E2<0.9,A4,IF(0.9<E2<1,A5))))

    My goal is to yield a number, in let's say B2, that is simply copied from any one of four other cells. Now, out of those four cells which CAN be used, the one which I WANT to use is the one that meets the criteria above. So, for example, if the value of "E2" is more than .5 and also less than .7, then I want "B2" to return the value from cell "A3". If "E2" is less than .5, then I want "B2" to return the value of "A2".

    But my formula apparently isn't working, it just says "FALSE"

    HELP???

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Nested "IF" formula

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Nested "IF" formula

    actually i looked at your formula

    you were using the If abit weird
    try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    what happens when e2>1?

  4. #4
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    Oh, right, I guess the parts where I'm stating ".5<E2<.7" for example are a bit redundant because if E2 failed the firs IF test (E2<.5), then there's no need to restate that part again... so, instead, ".5<E2<.7" just turns into "E2<.7,A3.... and so on. Perhaps that was what was throwing it off??

    As far as the E2>1 goes: my data will and should never even ALLOW that ever happen, so I assumed that I can just ignore that part, right??

    I would like to add a sample of my spreadsheet, but I can't seem to find where on this forum will it allow me to upload an attachment..?? Sorry, I haven't used the or many other forums too often

  5. #5
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    It worked!!

    I'm giving you a top-rating for quality and quick response time.

    Thank you!

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Nested "IF" formula

    attached is formula and alternative formula you can try and possibly look into using
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    OK, great. Sooo, once again, how do I attach and upload a file ?

  8. #8
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    Nevermind, I found it.

    Here it is...
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Nested "IF" formula

    the sheet is a little out of wack
    your missing header for second and 3rd table which is why the formula isnt working properly

  10. #10
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    Seems to be working fine for me now.

    Ok, so, one last question.

    Now, I'm just trying to add one more qualifier to that formula; one more true statement that will reference yet another cell. If it is false, THEN I want to yield the formula that you devised. Here's what I'm trying to get it too look like now:

    =IF(C2<G14,A2,(E2<0.5,A2,IF(E2<0.7,A3,IF(E2<0.9,A4,IF(E2<1,A5,"E2 Greater than 1")))))

    So, what I'm wanting to do is; if the number for the stock position's "VALUE" cell (C2, for example) is less than the value of the "EQUITY" cell (G14), then yield the value in cell "A2"; and if "C2" is not less than "G14", (if it's false), then I want it yield the result from the original formula we devised.

    Does that makes sense?

    The new part I just introduced is obviously not working. Please help?

  11. #11
    Registered User
    Join Date
    07-26-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Nested "IF" formula

    Actually, nevermind, I figured that part out as well. I just accidentally left out the 2nd "IF"

    Here it is:

    =IF(C2<G14,A2,IF(E2<0.5,A2,IF(E2<0.7,A3,IF(E2<0.9,A4,IF(E2<1,A5,"E2 Greater than 1")))))

    this one works

  12. #12
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Nested "IF" formula

    thats great
    its better when you figure it out yourself because now you know how to fix/amend going forward

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] newbie using lots of nested "if"s and"and"s. Parenthesis problems?
    By thnkfree in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2014, 08:17 PM
  2. Replies: 1
    Last Post: 01-15-2014, 08:53 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 5
    Last Post: 06-15-2010, 10:51 AM
  5. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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