+ Reply to Thread
Results 1 to 4 of 4

Excel 2010 - Matching one cell to a list of cells on another sheet

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    alberta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel 2010 - Matching one cell to a list of cells on another sheet

    Good morning guys!

    I have been trying to find an answer to this all morning and have been stumped.

    I have attached a working spreadsheet to this topic because I find it difficult to explain what it is that I need.

    So, I am trying to do a few things at once to make this simple for me going forward.

    On the first Spreadsheet is a list of Rooms that require an addressing scheme applied to them. On the second sheet is the dialplan scheme in which to apply.

    What I am looking for is a formula that will: Look at the 'location' site (eg, Barrie) on sheet1, match it to 'office' location on sheet2, and then grab the associated 'alias prefix' on sheet2, and apply it to column D on sheet1.


    if that makes sense?

    And, a "Nice to Have" would be that for multiple sites in the same location (ie, multiple systems in Durham location), the numbering scheme would then incrementally go up.

    I manually filled in a few entries on sheet1 with what I want to appear.

    I have done these types of spreadsheets way too often manually, and I am getting very frustrated with the ammount of time it takes. Does someone out there happen to have a faster way to do this? or perhaps a suggestion in where I could start looking for this answer?


    Many Thanks,

    V.
    Attached Files Attached Files
    Last edited by varcos; 02-23-2012 at 12:18 PM.

  2. #2
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Excel 2010 - Matching one cell to a list of cells on another sheet

    What should be there instead of the 101, 102 etc?

    Sites and Dialplan - Online Help.xlsx

    =VLOOKUP(Table1[[#This Row],[Location]],'Dialplan Structure'!A:E,5,FALSE)

    Copied down.
    Last edited by darknation144; 02-23-2012 at 12:06 PM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2010 - Matching one cell to a list of cells on another sheet

    Try:

    =IFERROR(LEFT(VLOOKUP(C3,Table2,5,0),4)&TEXT(COUNTIF(C$3:C3,C3),"100"),"")

    copied down

    or if there could be more than 100 repeats of a city, then:

    =IFERROR(LEFT(VLOOKUP(C17,Table2,5,0),4)&100+TEXT(COUNTIF(C$3:C17,C17),"000"),"")
    Last edited by NBVC; 02-23-2012 at 12:09 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-23-2012
    Location
    alberta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Excel 2010 - Matching one cell to a list of cells on another sheet

    dear god! you guys are amazing! Thank you so much!

    NBVC, I owe you a beer next time I am out in Mississauga (dtown TO myself).

    Hey Darknation, I tried NBVC's formula, and it worked perfectly. Thanks though! I will look up where I could use that similar formula in other xlsx's i have.


    Many thanks.

+ 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