+ Reply to Thread
Results 1 to 3 of 3

formula for matching text

  1. #1
    kath_moi
    Guest

    formula for matching text

    I am trying to create a formula where text entered in one cell will
    automatically populate another cell with text.

    So that if in column A had rows with:

    N
    A
    F
    D

    then Column B would automatically return:

    Navy
    Army
    Air Force
    DoD

    seems like it should be easy but for the life of me, I can't get it working.
    Any advice would be appreciated,

  2. #2
    Bob Phillips
    Guest

    Re: formula for matching text

    Create a two column list of letters and values in say M1:N20, then use

    =VLOOKUP(A2,$M$1:$N$20,2,False)

    where A2 would be the input values.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "kath_moi" <[email protected]> wrote in message
    news:[email protected]...
    > I am trying to create a formula where text entered in one cell will
    > automatically populate another cell with text.
    >
    > So that if in column A had rows with:
    >
    > N
    > A
    > F
    > D
    >
    > then Column B would automatically return:
    >
    > Navy
    > Army
    > Air Force
    > DoD
    >
    > seems like it should be easy but for the life of me, I can't get it

    working.
    > Any advice would be appreciated,




  3. #3
    Ardus Petus
    Guest

    Re: formula for matching text

    Enter formula in B:
    =VLOOKUP(A1,{"N","Navy";"A","Army";"F","Air Force";"D","DoD"},2,0)

    That should do it!

    HTH
    --
    AP

    "kath_moi" <[email protected]> a écrit dans le message de
    news:[email protected]...
    > I am trying to create a formula where text entered in one cell will
    > automatically populate another cell with text.
    >
    > So that if in column A had rows with:
    >
    > N
    > A
    > F
    > D
    >
    > then Column B would automatically return:
    >
    > Navy
    > Army
    > Air Force
    > DoD
    >
    > seems like it should be easy but for the life of me, I can't get it

    working.
    > Any advice would be appreciated,




+ 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