+ Reply to Thread
Results 1 to 8 of 8

Advanced Filtering (Nested IFs)?

  1. #1
    Registered User
    Join Date
    06-10-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    17

    Advanced Filtering (Nested IFs)?

    Hi,

    In A1 I have a value of 0,1,2,3, or 4
    In B1 I want text associated to the value in A1. The Text would be: None, Single, Dual, Triple, Full

    So, if in A1 - I enter 2. In B1 "DUAL" will show up

    This would be replicated for several rows.

    Thanks,

  2. #2
    Registered User
    Join Date
    06-10-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Advanced Filtering (Nested IFs)?

    Actually, there is more to it.

    What I really need

    Is to evaluate values in three cells and to populate this into one cell.

    In A1, B1, and C1 I'll have values of 0, 1, 2, 3, or 4.

    In D1 I'll populate information based off these values.

    Example: In A1 I enter 2. In B1 I enter 0. In C1 I enter 4. D1 will then populate with: "A is Dual, B is None, and C is Full."

    Thanks

  3. #3
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Advanced Filtering (Nested IFs)?

    How about - =IF(OR(A1={0,1,2,3,4}),LOOKUP(A1,{0,1,2,3,4},{"None","Single","Duel","Triple","Full"}),"")

  4. #4
    Registered User
    Join Date
    06-10-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Advanced Filtering (Nested IFs)?

    Barry,

    Thanks: This works great for a single comparison.

    I need to compare 3 cells and generate one comment.

    Currently, I am using your suggestion to generate the comment in to three separate cells, then combining those comments into one cell. Is there an easier way?

    Thanks

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Advanced Filtering (Nested IFs)?

    Hi KGuerrero,

    A is Dual,B is None,C is Full
    Please Login or Register  to view this content.
    You can't be too choosy(!)
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  6. #6
    Registered User
    Join Date
    06-10-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Advanced Filtering (Nested IFs)?

    THAT'S AWESOME! Exactly what I was looking for thanks xladept!

    I have one more, new, scenario that I tried to use the CHOOSE function for. This is a binary input (0 or 1). We'll call it D1. Essentially, If D1 is 0 an additional note of "Trash" should be added to the cell. If it is 1 then "Good" is added to the cell.

    I added CHOOSE(D1,"Trash","Good") to your suggestion and all D1 values of 1 show up with "Trash" added to the cell and values of 0 result in a #Value error.

    When I add CHOOSE(D1+1,"Trash","Good"), The values of 1 add "Good" to the cell appropriately, but the values of 0 do not add anything to the cell. Any help is appreciated.

    THANKS!

  7. #7
    Registered User
    Join Date
    06-10-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Advanced Filtering (Nested IFs)?

    Scratch that ...

    The CHOOSE(D1+1,"Trash","Good") worked fine. I Just needed to ensure that "wrap text" was on.

    AWESOME!

    THANKS!

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Advanced Filtering (Nested IFs)?

    Hi kguerrero,

    Way to go!

+ 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