+ Reply to Thread
Results 1 to 3 of 3

Multiples answers using “IF”

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post Multiples answers using “IF”

    • Less than (30) = 6 Month Duration
    • Greater than or equal (30) = 12 Month Duration
    • Less than 500 = 6 months
    • Greater than or equal 500 = 12 Months
    • Greater than 1000 = 18 Months


    =IF(AND((B10<=499),(C10<30)),"6 MONTHS","12 MONTH")

    This is what I have so far.
    Last edited by pautavo; 11-29-2012 at 08:48 AM. Reason: Forum Rules

  2. #2
    Registered User
    Join Date
    10-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Multiples answers using “IF”

    Since you have two different variables (cell B10 and cell C10), you'll need to clarify your parameters. What do you want the formula to return if the two variables contradict each other (e.g.: b10>1000 and c10<30)? If you can come up with all different combinations of results, setting up the if statement shouldn't be too hard.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,926

    Re: Multiples answers using “IF”

    as an alternative, you could set up a 2-column table with the value and the duration. then use vlookup() to reference the values
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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