Urgent help with lookup between 2 sheets

beedistinct

Board Regular
Joined
Jun 24, 2011
Messages
62
I have a sheet that has day-wise data. Each day in September has one tab and they are named as Setember1, September2 etc.

I wish to consolidate the data in a second sheet where there is a column with dates from 9/1/2011 through 9/30/2011 by using vlookup.

Code:
=VLOOKUP(R[-2]C,'[Website Stats.xlsx][B]September1'[/B]!R3C1:R18C3,3,FALSE)

I wish to dynamically change the sheet that is being looked up from September1 to September2 if the formula is on a row with date 9/2/2011.

Apparently, using Ampersand doesn't work. Please help.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Never mind! I resolved it using the INDIRECT function!!
Code:
=IFERROR(VLOOKUP(R46C,INDIRECT(R44C2&TEXT(RC2,"mmmmd")&"'!"&R44C3),3,FALSE),0)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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