VLOOKUP with INDIRECT - Need some help!

chefdt

Board Regular
Joined
Jul 1, 2008
Messages
163
trying to write a formula in F7 and autofill the length of the sheet, using VLOOKUP with INDIRECT.

I have approximately 150 sheets (Summary Sheet Below) that have a value in C1 that I need copied to column F in the example below. Sheet names are in column A.

I tried a Vlookup(indirect(a7, blah blah), x, false) Always came away with a #REF error.

Any takers?

DT

ABCDEF
MAMA NameDistrictDistrict Name

<tbody>
[TD="bgcolor: #CACACA, align: center"]6[/TD]

[TD="align: center"]MCCO Opp $[/TD]
[TD="align: center"]60% Opp $[/TD]

[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="bgcolor: #CCFFFF, align: center"]SCA [/TD]
[TD="bgcolor: #CCFFFF, align: center"]CUSTOMER SERVICE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]DCA[/TD]
[TD="bgcolor: #CCFFFF, align: center"]CUSTOMER SERVICE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]0.01[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: center"]SAA [/TD]
[TD="align: center"]DAY OTWELL,KRISTIN[/TD]
[TD="align: center"]DHA[/TD]
[TD="align: center"]GRAHAM, KEVIN[/TD]
[TD="align: center"]17.38[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="bgcolor: #CCFFFF, align: center"]S1Z [/TD]
[TD="bgcolor: #CCFFFF, align: center"]WARREN, JAMIE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]DNA[/TD]
[TD="bgcolor: #CCFFFF, align: center"]AUDAS, BOBBY[/TD]
[TD="bgcolor: #CCFFFF, align: center"]560.27[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: center"]S2F [/TD]
[TD="align: center"]KRAM, KEVIN[/TD]
[TD="align: center"]DNA[/TD]
[TD="align: center"]AUDAS, BOBBY[/TD]
[TD="align: center"]48.64[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
the indirect () part should be

INDIRECT(A7&"!C1")
 
Upvote 0
Forgot to mention something important A1 of each sheet also contains the sheet name.

I tried vlookup(a7,indirect(A7&"!$A$1:$C$1",3,false))

Got #ref

Ugh!
 
Upvote 0
how about

vlookup(a7,indirect(A1&"!$A$1:$C$1",3,false))
 
Upvote 0
Seems pretty simple but the information you provided isn't complete

What exactly is your lookup value?

What exactly is the range you want to look up

Just make a vlookup withOUT the indirect 1st and post that

Or provide us with a larger sample of your data...
 
Last edited:
Upvote 0
trying to write a formula in F7 and autofill the length of the sheet, using VLOOKUP with INDIRECT.

I have approximately 150 sheets (Summary Sheet Below) that have a value in C1 that I need copied to column F in the example below. Sheet names are in column A.

I tried a Vlookup(indirect(a7, blah blah), x, false) Always came away with a #REF error.

Any takers?

DT

ABCDEF
MAMA NameDistrictDistrict Name

<tbody>
[TD="bgcolor: #CACACA, align: center"]6[/TD]

[TD="align: center"]MCCO Opp $[/TD]
[TD="align: center"]60% Opp $[/TD]

[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="bgcolor: #CCFFFF, align: center"]SCA [/TD]
[TD="bgcolor: #CCFFFF, align: center"]CUSTOMER SERVICE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]DCA[/TD]
[TD="bgcolor: #CCFFFF, align: center"]CUSTOMER SERVICE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]0.01[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: center"]SAA [/TD]
[TD="align: center"]DAY OTWELL,KRISTIN[/TD]
[TD="align: center"]DHA[/TD]
[TD="align: center"]GRAHAM, KEVIN[/TD]
[TD="align: center"]17.38[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="bgcolor: #CCFFFF, align: center"]S1Z [/TD]
[TD="bgcolor: #CCFFFF, align: center"]WARREN, JAMIE[/TD]
[TD="bgcolor: #CCFFFF, align: center"]DNA[/TD]
[TD="bgcolor: #CCFFFF, align: center"]AUDAS, BOBBY[/TD]
[TD="bgcolor: #CCFFFF, align: center"]560.27[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: center"]S2F [/TD]
[TD="align: center"]KRAM, KEVIN[/TD]
[TD="align: center"]DNA[/TD]
[TD="align: center"]AUDAS, BOBBY[/TD]
[TD="align: center"]48.64[/TD]
[TD="bgcolor: #CCFFFF"] [/TD]

</tbody>

=VLOOKUP(A7,INDIRECT("'"&A7&"'!$A$1:$C$1"),3,FALSE)

you're missing the ' and ! in there
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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