Is vlookup appropriate?

asker2

New Member
Joined
Dec 18, 2005
Messages
5
MY PROBLEM IS THIS:
I have an EXCEL 2010 spreadsheet with an empty column (titled "AA") with 200 rows, in which each cell can have inserted - only the values "A" thru "Z" (26 single-letter possibilities).

Any letter entry can be repeated as many times as desired in column AA cells. In other words column AA could have 200 entries of letter "A"

In a separate chart, each letter can have a corresponding whole number value from 1 to 200. Duplicate number values from letter to letter are allowed. Note that some letters may have no corresponding value entered.

I would like to create a formula in each cell of a second empty column (titled "BB") such that whenever a letter is entered in any row in column AA, the letter's corresponding numerical value will appear in same row in column BB.

Cells in Column BB should always be empty if there is no value in corresponding cell in Column AA

I hope this is clear

thanks for any assistance in creating the spreadsheet

Alan D
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If what you want is something like this then VLOOKUP will work fine


Book1
ABCDEFGH
1AAA1
2A1B2
3t66C8
4A1D54
5s7E3
6t66F678
7A1G2
8s7H2
9f678I68
10A1J320
11A1K2
12q4L42
13z3M42
14A1N4
15y48O2
16j320P4
17A1Q4
18A1R44
19 S7
20 T66
21 U13
22 V48
23 W2
24 X3
25 Y48
26 Z3
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2="","",VLOOKUP(A2,$G$1:$H$26,2,0))
B3=IF(A3="","",VLOOKUP(A3,$G$1:$H$26,2,0))
B4=IF(A4="","",VLOOKUP(A4,$G$1:$H$26,2,0))
B5=IF(A5="","",VLOOKUP(A5,$G$1:$H$26,2,0))
B6=IF(A6="","",VLOOKUP(A6,$G$1:$H$26,2,0))
B7=IF(A7="","",VLOOKUP(A7,$G$1:$H$26,2,0))
B8=IF(A8="","",VLOOKUP(A8,$G$1:$H$26,2,0))
B9=IF(A9="","",VLOOKUP(A9,$G$1:$H$26,2,0))
B10=IF(A10="","",VLOOKUP(A10,$G$1:$H$26,2,0))
B11=IF(A11="","",VLOOKUP(A11,$G$1:$H$26,2,0))
B12=IF(A12="","",VLOOKUP(A12,$G$1:$H$26,2,0))
B13=IF(A13="","",VLOOKUP(A13,$G$1:$H$26,2,0))
B14=IF(A14="","",VLOOKUP(A14,$G$1:$H$26,2,0))
B15=IF(A15="","",VLOOKUP(A15,$G$1:$H$26,2,0))
B16=IF(A16="","",VLOOKUP(A16,$G$1:$H$26,2,0))
B17=IF(A17="","",VLOOKUP(A17,$G$1:$H$26,2,0))
B18=IF(A18="","",VLOOKUP(A18,$G$1:$H$26,2,0))
B19=IF(A19="","",VLOOKUP(A19,$G$1:$H$26,2,0))
B20=IF(A20="","",VLOOKUP(A20,$G$1:$H$26,2,0))
B21=IF(A21="","",VLOOKUP(A21,$G$1:$H$26,2,0))
B22=IF(A22="","",VLOOKUP(A22,$G$1:$H$26,2,0))
B23=IF(A23="","",VLOOKUP(A23,$G$1:$H$26,2,0))
B24=IF(A24="","",VLOOKUP(A24,$G$1:$H$26,2,0))
B25=IF(A25="","",VLOOKUP(A25,$G$1:$H$26,2,0))
B26=IF(A26="","",VLOOKUP(A26,$G$1:$H$26,2,0))
 
Upvote 0
So elegant, so clean.
Works as you indicated it would.

I thank you for taking the time to solve my problem.



AlanD
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top