+ Reply to Thread
Results 1 to 12 of 12

IF formula variables to return more than one answer depending on another cell input

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Cool IF formula variables to return more than one answer depending on another cell input

    Hi everyone...

    I have a formula that has a couple of variables. I would like to be able to return more than one answer dependent on what another cell says...

    Basically my A cell could have a few variables...
    It may say - N/A (not applicable)
    or - TBD (to be determined)

    My formula in cell B is dependent on the above...
    I want to create an if formula, but it has to return another answer too... (if the cell in cell A says TBD, i want to mark it as pending which i can do...)

    SO, (if you are still reading this!), so far I have in the B column:
    =IF(A1="N/A", "N/A", "PENDING")
    so how do i add the variable that if it is says TBD, that it copies that instead...

    Thank you in advance, as always!

    tina x

  2. #2
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Re: IF formula variables to return more than one answer depending on another cell input

    i tried this, but it didnt work... but may give a jist of what i am trying to achieve...

    =IF((a1="N/A", "N/A", "PENDING")(a1="TBD", "TBD"))

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: IF formula variables to return more than one answer depending on another cell input

    Hi Tina,

    can you give an example of what the type of output may look like.

    Is going to be - N/A, PENDING, SOMETHING ESLE...

    Dave.
    Dave

    I'm no expert I just like solving problems

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: IF formula variables to return more than one answer depending on another cell input

    This is one way

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

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

  5. #5
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Re: IF formula variables to return more than one answer depending on another cell input

    basically, these are the possibilities i am to use in the spreadsheet...

    if:

    A= n/a, B= n/a
    or
    A= tbd, B= tbd
    or
    A= (has a date in it, or is NOT n/a and NOT tbd), B= PENDING

    does that make sense?

  6. #6
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Re: IF formula variables to return more than one answer depending on another cell input

    hi hun, it didnt work, it did the following:

    if:
    A= (date), b= blank (want it to say pending)
    A= tbd, b=pending (want it to say tbd)
    a= n/a, b= n/a (this is ok)

    thank you for your help so far tho... i havent heard of the 'choose' function!
    t x

  7. #7
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: IF formula variables to return more than one answer depending on another cell input

    Yes, that makes sense.

    This should work for you:
    =IF(A1="n/a","n/a",IF(A1="TBD","TBD","PENDING"))

    Dave.

  8. #8
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: IF formula variables to return more than one answer depending on another cell input

    With this type of 'nested' IF formula you can keep adding additional IF's for each result you want; not sure if there's a maximum number of IF's you can add.

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: IF formula variables to return more than one answer depending on another cell input

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

  10. #10
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Re: IF formula variables to return more than one answer depending on another cell input

    hi dave,

    I LOVE YOU!
    thank you sooo much!!!

    You are getting a STAR!
    t x

  11. #11
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: IF formula variables to return more than one answer depending on another cell input

    No problem.

    Nice to know somebody loves me

  12. #12
    Registered User
    Join Date
    08-02-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Office 2010 (Excel)
    Posts
    50

    Re: IF formula variables to return more than one answer depending on another cell input

    Don't worry hun, no one loves me either. At least we will always have our special Excel moments!

+ 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