+ Reply to Thread
Results 1 to 3 of 3

Lookup Formula problem**************please help

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lookup Formula problem**************please help

    this formula in c2
    #N/A

    started with b2
    JF
    KN
    MW
    TW
    DG
    KS
    RP
    SM
    VM
    Misc
    BB
    BRB
    CJ
    DN
    SG

    WHAT I AM TRYING TO ACCOMPLISH with this formula.
    Below is my key - 2 letters and I need to assign a different letter.
    JF,MW,KN,TW,="A"
    RB,CJ,SG,DN,BB,="S"
    RP,DG,VM,KS,SM,="G"

    This formula above gives me n/a on TW, DG, SM, VM, BB, BRB, CJ, DN, SG. ? Please help.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Lookup Formula problem**************please help

    LOOKUP requires the lookup range to be sorted ascending - better to use HLOOKUP or VLOOKUP, e.g. this formula if you don't want a separate table

    =HLOOKUP(B2,{"JF","MW","KN","TW","BRB","CJ","SG","DN","BB","RP","DG","VM","KS","SM";"A","A","A","A","S","S","S","S","S","G","G","G","G","G"},2,0)

    or just list all your possible codes in one column and values to return in the next, name that whole thing Table and use

    =VLOOKUP(B2,Table,2,0)
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Lookup Formula problem**************please help

    wow daddylonglegs. Thank you SO much. YOU ROCK!

+ 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