Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kath_moi
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default 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" a écrit dans le message de
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert text to formula - Help pleaaase Ayrton Excel Discussion (Misc queries) 5 December 7th 05 05:26 PM
text in formula explaining formula not to print Leon Klopper Excel Worksheet Functions 1 June 24th 05 01:04 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Using the text from a cell as a range name in a formula Fletch Excel Discussion (Misc queries) 3 June 13th 05 07:57 PM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 01:45 PM


All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"