VLOOKUP for multiple colums
On Fri, 25 Jul 2008 09:49:06 -0700, MagicBill
wrote:
I am trying to return a number (1-9) for a letter.
For instance:
A B C D
A J S 1
B K T 2
C L U 3
D M V 4
E N W 5
F O X 6
G P Y 7
H Q Z 8
I R 9
I can do the first column, but when I try the second or third columns, I get
an error value. So how can I type in a W and get it to return a 5, an I to
return a 9, and so on?
If your input is in cell E1 you can try the following formula:
(Note: This is an array formula and must be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER)
=SUM(((E1=A1:C9))*(D1:D9))
Hope this helps / Lars-Åke
|