Ask Experts Questions for FREE Help !
Ask
    ITstudent2006's Avatar
    ITstudent2006 Posts: 2,243, Reputation: 329
    Networking Expert
     
    #1

    Jan 31, 2013, 03:44 PM
    Excel If > Then formula to match columns and provide result...
    All,

    I am in the middle of a project of comparing VPN users (via AD Group SSLVPNUsers) with users in a certain company group. Essentially, management wants to know who, if any in this group have VPN access. Now, I have done this a million times in the past for various managers and groups but I seem to have screwed up my templated formula.

    I am not the greatest at Excel, quite frankly I hate it. I would however like some help with this formula. Scenario below:

    Column A (starts at A2) = List of users in this specific group (441 users)
    Column B (starts at B2) = List of ALL users in the AD Group SSLVPNUsers (43,596 users)

    I want a formula that looks at Column A to see if its in Column B, if so then its True (in column C). If not, then its false (in column C).

    I tried explaining it the best I can. Hopefully you understand. My current formula is below:

    =IF(ISNA(MATCH(A2:A441-B2:B43596,Search,0)),FALSE,TRUE)
    nrjoyner's Avatar
    nrjoyner Posts: 5, Reputation: 3
    New Member
     
    #2

    Jan 31, 2013, 04:19 PM
    Try this formula:

    =IF(ISNA(VLOOKUP(B2,$A$2:$A$442,1,FALSE)),"FALSE", "TRUE")

    Paste it in C2 and then copy down to the end of your data. You may need to adjust the range ($A$2:$A$442) to ensure that all the data in column A is captured. I usually use a named range instead of specifying the range for column A. If you want to specify the whole column instead of where you have data today, you could replace the range with a column reference ($A:$A).

    The VLOOKUP function works great, but it can get buggy if you have different cell formats like text vs. general or number.
    ITstudent2006's Avatar
    ITstudent2006 Posts: 2,243, Reputation: 329
    Networking Expert
     
    #3

    Jan 31, 2013, 04:35 PM
    As soon as I am done with my current duty I will attempt that formula. My question is should the B2 be a range from B2-B43596? I want to see if users in A2-A441 are listed in the B2-B43596 list.
    nrjoyner's Avatar
    nrjoyner Posts: 5, Reputation: 3
    New Member
     
    #4

    Jan 31, 2013, 04:54 PM
    Quote Originally Posted by ITstudent2006 View Post
    My question is should the B2 be a range from B2-B43596? I want to see if users in A2-A441 are listed in the B2-B43596 list.
    If you copy the formula to C2 and then copy the formula down, the B2 will change to B3, B4, etc.

    VLOOKUP does an evaluation. It will look at 1 cell and then review the data range for the evaluation. In this case, it will evaluate cell B2 and look for that value in the range for column A. When you copy the formula from C2 to C3, the formula will say B3. It will then do the evaluation for cell B3. Copy it all the way down to C43596 and you will get a True or False in each cell in column C that shows if the column B value exists in column A.
    ITstudent2006's Avatar
    ITstudent2006 Posts: 2,243, Reputation: 329
    Networking Expert
     
    #5

    Jan 31, 2013, 05:03 PM
    Ok. I couldn't get it to work. I had an employee give me a spreadhseet he had that had a formula built in.

    Thanks for the help anyway. I did learn something. :)
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #6

    Feb 1, 2013, 03:33 PM
    Another suggested starting formula for C2, then copied down:

    =ISNUMBER(MATCH(A2, B:B, 0))

    That should provide a list of TRUE/FALSE results as the cell is copied downward.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Creating Columns in Excel [ 1 Answers ]

How do I create multiple columns in a single column in an Excel worksheet using Excel 2003?

Transpose rows into columns in a excel spreadsheet [ 3 Answers ]

Can anyone help 1) how to transpose the data in rows into columns and columns into rows in a Excel spread sheet? 2) how to change the numerical order of data in rows/ columns in a Excel spread sheet? i.e.. from the first row to last row and last row to first row ? Thank "U'

Inserting Multiple Columns in Excel [ 11 Answers ]

I am working on a very large spreadsheet. I am trying to insert additional columns into the worksheet and I keep getting an error message referring me to cell A2. This spreadsheet is very large and to the right of the last column the area is greyed out. When I try to insert columns in front of...

Filter from 2 Columns (Unique values) in Excel [ 1 Answers ]

I need to filter from both these sets of data in excel Set 1 Set 2 ----------------------- 986 Buchanan Dodsworth 563 67 789 Buchanan 235 689 Dodsworth 789 143

Inserting multiple columns on Excel [ 2 Answers ]

Can anyone help me to insert multiple columns under any particular cell without disturbing other cell data ? For example it should be like : --------------------------------------------------------- | A | B | C |...


View more questions Search