+ Reply to Thread
Results 1 to 20 of 20

Lookup with multiple conditions

  1. #1
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Lookup with multiple conditions

    I have a large list of servers and I'd like to find the serial #s that meet a couple conditions. I'm open to how I do this... formulas, pivots, filtering?

    I'd like to know, by serial #, show me only the serial #s that ONLY have windows and are running.

    Thoughts?
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    May be this array formula. Since this is an array formula so remember to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. hold down the Ctrl + Shift and then press Enter)

    Please Login or Register  to view this content.
    And then drag down until you get the blank cells.

    ** You have an extra space in the end where col. C contains word "windows" so I removed that extra space.

    Please find the attached sheet to see if this is what you want.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    Not sure this is what I need. I need a report of all serial #s that meet this criteria. Does this help me get there?

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    Please see the attached sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    With what you provided, you could do with a simple filter. I need to know if only windows is up and running on each serial #. In the example I provided, the results should be 0, but I should change that for the purpose of this example.

  6. #6
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    excel help.xlsx

    I've added another serial # to this to demonstrate what I'm looking for. In the end, I need a list of unique serial #s where the only thing running is a windows server. In real life, I have a spreadsheet with 5000 rows of data.

    Any ideas?

  7. #7
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    Anyone? I'm sure there's a good way to do this, I just can't figure it out.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    Try this Array Formula which requires Ctrl+Shift+Enter.
    In F2
    Please Login or Register  to view this content.
    and copy down.
    Is this what you are trying to achieve?
    Attached Files Attached Files

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Lookup with multiple conditions

    Post Your Excepted Result Manually so that it is easy to understand

  10. #10
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    Attached is what I'm trying to achieve. See column E.

    excel help.xlsx

  11. #11
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    To expand, I want to know any unique serial # where the condition exists that only windows servers are "running".

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    That is really confusing. Would you please explain the logic behind the Trues in the range E14:E18?

  13. #13
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    I don't know how to write the logic. In lay terms, I need to know which unique serial #s have ONLY windows running. In my example, serial #4 is the only one that qualifies.

  14. #14
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    Do you mean that you want the serial # where there is Running in the status column and Windows in the OS version column? Right?
    If this is the criteria, why not E2, E6, E8 and E12 are Trues and Why E14, E15 and E16 are Trues? Because in E14, E15 and E16, the corresponding status is Not Activated and OS Version is linux. And in E2, E6, E8 and E12, the corresponding status is Running and OS Version is Windows.

  15. #15
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    It's not true because:

    Serial #1 (column D) has other systems running besides windows on the server. (row 3, 4)
    Serial #2 - has other systems running besides windows on the server. (row 9)
    Serial #3 - - has other systems running besides windows on the server. (row 11)
    Serial #4 - is the only serial # in the group that only has "windows" "running", all other systems are not activated.

  16. #16
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Lookup with multiple conditions

    In E2
    Please Login or Register  to view this content.
    Or in F2, try this array formula.
    Please Login or Register  to view this content.

  17. #17
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    Hmm. Neither of those worked for me.

  18. #18
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Lookup with multiple conditions

    Here are both of sktneer's solutions implemented plus one of my own. do any of these work for you?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  19. #19
    Registered User
    Join Date
    06-12-2009
    Location
    Chester, NY
    MS-Off Ver
    Excel 2013
    Posts
    89

    Re: Lookup with multiple conditions

    Yes, thank you both! I may go with what's in column E and use a Pivot to filter.

    I'm interested in what each formula actually does as I'm not an expert in these nested formulas, yet.

  20. #20
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Lookup with multiple conditions

    Good that it works! I forgot to mention that these are array formulas, they need to be entered with Ctrl + Shift + Enter.
    You can get some insight in how the formulas work by using the Evaluate Formula button under the Formulas tab.

+ 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] Multiple if / lookup conditions
    By bbroadsword in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-05-2013, 10:13 PM
  2. Lookup with Multiple Conditions
    By anilswarrier in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2012, 01:38 PM
  3. Lookup with multiple conditions
    By Svenvlad in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-02-2006, 01:35 PM
  4. Lookup with multiple conditions
    By Sachin Narute in forum Excel General
    Replies: 2
    Last Post: 08-02-2005, 03:05 AM
  5. Lookup with multiple conditions
    By linglc in forum Excel General
    Replies: 4
    Last Post: 07-28-2005, 12:05 PM

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