If A1=H Then B1=1, Excel 2000 & 2003
jfcby wrote:
Hello,
On worksheet6 I have 500 rows of data. In columnA it has data like H,
WH, O, B, AN. In columnB I would to add 1, 2, 3, 4, 5. I want
What my worksheet looks like now ColumnB is blank:
ColumnA
WH
O
O
B
AN
H
H
H
The way I would for my sheet to look like:
ColumnA ColumnB
WH 2
O 3
O 3
B 4
AN 5
H 1
H 1
H 1
Thank you for your help in advance,
jfcby
Hi jfcby,
If your data starts in A1 then fill the following formula down column B
=MATCH(A1,{"H","WH","O","B","AN"},0)
Ken Johnson
|