+ Reply to Thread
Results 1 to 2 of 2

Complex IF Formula

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Complex IF Formula

    What I want to do is to use multiple IF statements in the same cell. For instance, lets use data in cells Q4 and T4, returning a value in W4.


    Ok, so, a breakdown of what I want to do (hopefully all in the same cell)..

    If Q4 is =/> 50,000, I need it to take Q4*10% and then look at cell T4, if T4 is over or under (negative or positive) the (Q4*10%) value, then return the difference between (Q4*10%) and cell T4.

    If Q4 is < 50,000, I need it to look at cell T4, if T4 is greater than 5000, then I need it to subtract 5000-the value in T4, if T4 is less than 5000, then I want it to return a zero.

    To futher complicate things, it can be +5000 or -5000. That is the tolerance -5000 to +5000, I'm searching for anything over or under that.

    I hope someone can help!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Complex IF Formula

    =IF(Q4>=50000, (Q4*0.1)-T4, IF(T4<5000, 0, 5000-T4)
    This should give you the final value (you didn't say what to do if Q4>50000 and T4= Q4*10% so I assume it will return 0)
    Now, what do you want to do with this value if the absolute value of it is >5000? Return 0, return a warning?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

+ 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