+ Reply to Thread
Results 1 to 6 of 6

LOOKUP not working correctly

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Exclamation LOOKUP not working correctly

    Hi. I've been using the Lookup formula for a while now and it has been working fine, that is until today. I am creating a new spreadsheet for use with writing our templates we use to program our radios with. What is happening now is that when the LOOKUP is looking up some of the values, it is either returning the wrong information or showing #N/A. For the life of me, I can't figure out what is going on. I have attached a sample file containing a sample of the sheet I'm creating and the table I'm looking up the data from. The formula as I have it written in the table is =LOOKUP(B2,'All Talkgroups'!B:B,'All Talkgroups'!C:C). As you can see on the sample below, it works for Channels 11-16 correctly. Any ideas?

    CHANNEL PERSONALITY 24 NES B
    1 3 P403 TRAING 3
    2 5 FB16 VLF
    3 7 AIRPORT ON PROPERTY
    4 9 Z506 WATER
    5 B Z3 4
    6 D LV FDFG
    7 F P601 SRT1
    8 11 #N/A
    9 13 #N/A
    10 15 #N/A
    11 17 N B11 OD1
    12 19 N B12 OD2
    13 1B N B13 OD3
    14 1D N B14 LD3
    15 1F N B15 LD2/TNT 7 GSE
    16 21 N B16 LD 1

    All Talkgroups:

    Talkgroup ID (Decimal) Talkgroup ID (Hex) Talkgroup Description
    1 1 Default
    2 2 GVPD MAIN
    3 3 N B1 OHC
    5 5 N B2 OHC1
    6 6 GVPD TACT
    7 7 N B3 OHC2
    9 9 N B4 OHC3
    11 B N B5 OHC4
    13 D N B6 OW
    15 F N B7 OW1
    17 11 N B8 OW2
    19 13 N B9 OW3
    21 15 N B10 OD
    23 17 N B11 OD1
    25 19 N B12 OD2
    27 1B N B13 OD3
    29 1D N B14 LD3
    31 1F N B15 LD2/TNT 7 GSE
    33 21 N B16 LD 1
    35 23 N C1 U&S
    37 25 N C2 U&S1/TNT 8 GSEM
    39 27 N C3 U&S2
    41 29 N C4U&S3
    42 2A VU SPE1
    43 2B N C5 TEST1/VU SPE2
    45 2D N C6 TEST2
    47 2F N C7 METER
    49 31 N C8 METER1
    51 33 N C9 RECNECT
    53 35 N C10 RECNECT1
    55 37 N C11 ENGNEER1
    57 39 N C12 ENGNEER2
    59 3B N C13 SAFETY/N D2 SPR
    61 3D N C14 GENSVCS
    63 3F N C15 FLEET
    65 41 N C16 SECURITY
    67 43 N D1 TEL
    101 65 N D5 911
    103 67 Z601 OHC
    105 69 Z602 OHW
    107 6B Z603 OHD
    109 6D Z604 LOAD
    111 6F Z605 U&S
    113 71 Z606 TST
    115 73 Z607 METER
    117 75 Z608 RECONECT
    119 77 Z609 ENG
    121 79 Z610 SFT
    123 7B Z611 GS
    125 7D Z612 FLEET
    127 7F Z613 SECURITY


    Thanks.

    Wayne
    EXAMPLE.xlsx
    Last edited by wsykes41770; 03-08-2013 at 03:32 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: LOOKUP not working correctly

    Solution with VLookup.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: LOOKUP not working correctly

    Wayne

    Have you tried VLOOKUP?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or am I totally and utterly misinterpreting this?
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: LOOKUP not working correctly

    not sure why it's not working, but i tried it with a vlookup and it works fine
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: LOOKUP not working correctly

    Wayne

    Have you tried VLOOKUP?

    For example, in C2 and copied down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or am I totally and utterly misinterpreting this?

  6. #6
    Registered User
    Join Date
    03-08-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: LOOKUP not working correctly

    Thanks, folks. VLOOKUP seems to solve the problem. Thanks again.

+ 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