+ Reply to Thread
Results 1 to 7 of 7

What lookup function to use?

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    New york
    MS-Off Ver
    2013
    Posts
    4

    What lookup function to use?

    I have a long list of user accounts to parse as either Type A or Type B. If they are from any of about 75 named locations they are Type A. If they are not they are Type B.

    What function would let me identify each current (and new) account? Vlookup? (Not that I have any clue as how to use that.)

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: What lookup function to use?

    Assuming the individual account locations are in column A starting at A2.
    Assuming the 75 locations are listed in column AA.

    In B2 put this formula:
    =IF(ISNUMBER(MATCH(A2, AA:AA, 0)), "Type A", "Type B")
    Last edited by JBeaucaire; 01-16-2015 at 12:25 PM. Reason: Corrected formula
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    New york
    MS-Off Ver
    2013
    Posts
    4

    Re: What lookup function to use?

    that's fantastic! thanks.

  4. #4
    Registered User
    Join Date
    01-16-2015
    Location
    New york
    MS-Off Ver
    2013
    Posts
    4

    Re: What lookup function to use?

    Now I'm getting fancy:

    I want to move the list of areas from the same worksheet to a different worksheet. (That happens to be named "List").
    I've tried various versions of "List!A:List!A" to reference the "off page" list but haven't cracked it yet. What's the correct text string?

    And if I could have a third value in the lookup (Area A, or Area B or Area C) that would be icing on the cake.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: What lookup function to use?

    Try:

    =IF(ISNUMBER(MATCH(A2, List!AA:AA, 0)), "Type A", "Type B")


    You'll have to fully explain what your parameters are for Area A, Area B, Area C.

  6. #6
    Registered User
    Join Date
    01-16-2015
    Location
    New york
    MS-Off Ver
    2013
    Posts
    4

    Re: What lookup function to use?

    Again, thanks for this great help.

    There are in fact just two "Areas" but some records don't have data in the necessary field (the field is optional for the user). Rather than report/categorize them as A or B (they seem to be defaulting to B) I'd report them as "none" or whatever.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: What lookup function to use?

    So, if A2 were blank:

    =IF(A2="", "none", IF(ISNUMBER(MATCH(A2, List!AA:AA, 0)), "Type A", "Type B"))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Time Intervals, Ranges, IF function, Lookup Function
    By HDTV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2014, 03:52 PM
  2. [SOLVED] A lookup function based on two criteria; one unique & one not unique to the lookup table
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 11:35 AM
  3. Combining a IF function and lookup function
    By Trottlips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2014, 05:34 PM
  4. Create a lookup formula with an If or Lookup function
    By afountas21 in forum Excel General
    Replies: 2
    Last Post: 09-05-2012, 06:53 PM
  5. [SOLVED] Pivot table doing a lookup without using the lookup function?
    By NGASGELI in forum Excel General
    Replies: 0
    Last Post: 08-02-2005, 01:05 AM

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