Vlookup Technique Help

Excel777

Well-known Member
Joined
Jul 3, 2009
Messages
912
Office Version
  1. 2019
Hey,
Plz Need Help In This Lookup Technique

Excel Workbook
ABCDEFGHIJKLM
1
2FormulaLookUp ValuesTable ArrayDataResultsTable1Table2Table3
3#N/AA1:A9Table2A1100A11A1100A11000
4A2101A22A2101A21001
5A3102A33A3102A31002
6A4103A44A4103A41003
7A5104A55A5104A51004
8A6105A66A6105A61005
9A7106A77A7106A71006
10A8107A88A8107A81007
11A9108A99A9108A91008
12A1010A10109A101009
13A1111A11110A111010
14A1212A12111A121011
15A1313A13112A131012
16A1414A14113A141013
17A1515A15114A151014
Sheet2





My look Up Formula Is In Cell A3
In Cell B3 The "Lookup Values" It's The Range From "A1:A9"
In Cell C3 The Data List Including Table 1,2,3 "Table Array"
My Results Of Shoul Be In Cells F3:F11

How Can I Apply This

Thanks In Advance
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Your vlookup formula will be in cells F3:F11, not in A3

I am assuming that Table2 is a named range.

In F# put

=VLookup(E1,Table2,2,false)

If Table2 is not a named range put

=VLookup(E1,$J$3:$J$17,2,false)

Then drag this formula down to F11.

Now ...

This will not change if you change the cells B3 and C3. If you want to do that you will need to use cells that contain addresses of single cells at B3 to B11 and a range at C3. Then you will need to use the indirect function for the addresses in col 2 and and an indirect absolute reference to $C$3.
 
Upvote 0
VLOOKUP can only search one value at a time. You're going to need a vlookup for each of your lookup values.

Try

=VLOOKUP(B3,INDIRECT(C3),2,0)
 
Last edited:
Upvote 0
Thnks For All The Answer But I Want To Get Results Direct
In Column F With Writting Only One Formula In A3

B3 IS "A1:A9" This All Range

Not
A1
A2
A3
A4
 
Last edited:
Upvote 0
Impossible unless you feel like doing the work of writing VBA to do it in which case you would not even need a formula in A3.
 
Upvote 0
Why Impossible, i Don't See This
When In look up values i look up each Range In Speceifc Table and it's more easy to Write lookup values in B3 "A1:A9" Than Modifying Formulas In Column F

Imagine You Deal with 40,000 Row

I Thin Expert Can Make VBa Function For It
 
Upvote 0
Grugeon is right, without VBA you van't have results magically appear in cells without them containing formula.

Dom
 
Upvote 0
Try this

Code:
Sub lkup()
Dim c As Range, i As Integer
i = 2
Range("E3:F1000").ClearContents
For Each c In Range(Range("B3").Value)
    i = i + 1
    Range("E" & i).Value = c.Address(False, False)
    Range("F" & i).Formula = "=VLOOKUP(""" & Range("E" & i).Value & """," & Range("C3").Value & ",2,false)"
Next c
End Sub
 
Upvote 0
Thanks A alot Peter This Is The Code I Need Exactly
But It's Need Little Modification To Corrrspond With My Work

A1:A9 Which In Column "E" This If Fixed Data "Names"

For Ex

Sheet2

<table style="font-family: Calibri,Arial; font-size: 11pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 65px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td>
</td><td>E</td></tr><tr style="height: 18px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td style="text-align: center;">George</td></tr><tr style="height: 18px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">4</td><td style="text-align: center;">Mark</td></tr><tr style="height: 18px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">5</td><td style="text-align: center;">Peter</td></tr><tr style="height: 18px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">6</td><td style="text-align: center;">Andro</td></tr></tbody></table>

So I Should Write In "B3" Range E3:E6 it Refers To The Names From George To Andro Si In Need To Lookup This Name And Put the Values In Column "F"
Thanks In Advance

Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,194
Members
449,072
Latest member
DW Draft

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