Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / April 2008



Tip: Looking for answers? Try searching our database.

text reference to cell...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brinded - 29 Apr 2008 04:10 GMT
I have column of entries, each of which has a cell with text
consisting of a few letters, either 'DPA', 'DP', 'ST'

I'd like to make a formula where the text points to a value given in
another cell - a key as it were.

something like =IF(B1='DPA',$X$10)

since I can't get a formula to 'lookup' a key, is there an easier way
of doing this?

thanks
brinded - 29 Apr 2008 04:19 GMT
I should add, there are only four text codes, each representing a
whole number, so the lookup would be really simple:

DPA    10
DP       20
ST       32
DG      42
JE McGimpsey - 29 Apr 2008 11:53 GMT
In article
<2496449e-bd3e-458a-a6e5-ceaf600d25c5@l28g2000prd.googlegroups.com>,

> I should add, there are only four text codes, each representing a
> whole number, so the lookup would be really simple:
[quoted text clipped - 3 lines]
> ST       32
> DG      42

If the lookup table above were in, say, Sheet2!A1:B4, then one way:

  =VLOOKUP(B1,Sheet2!$A$1:$B$4,2,FALSE)

or, if B1 may contain something other than the four values:

  =IF(ISNA(MATCH(B1,Sheet2!$A$1:$A$4,FALSE), "", VLOOKUP(B1,
Sheet2!$A$1:$B$4,2,FALSE))
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.