Referencing Text Cell within Formula

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,486
I'm vaguely familiar with the INDIRECT() formula, but not enough to solve my problem.

In my Worksheet Named MAIN I currently have the formula (WHICH WORKS!!):

=SUM('Aug 2017'!K25:K28)

I was to modify the above so that I can reference in the 'Aug 2017' portion using another reference.

In my MAIN sheet Cell C1 I have the general number 8 << representjng my calendar Month #.

I have Another Worksheet Named LOOKUPDATA set up as follows:

Excel 2010
ABCDEFG
1
2
3 SS Nancy's Pay Checks
4 Month Wednesday FirstSecond Third WS Names MonthEnd
511/25/20171/6/20171/20/2017Jan 20171/31/2017
622/22/20172/3/20172/17/2017Feb 20172/28/2017
733/22/20173/3/20173/17/20173/31/2017Mar 20173/31/2017
844/26/20174/14/20174/28/2017Apr 20174/30/2017
955/24/20175/12/20175/26/2017May 20175/31/2017
1066/28/20176/9/20176/23/2017Jun 20176/30/2017
1177/26/20177/7/20177/21/2017Jly 20177/31/2017
1288/23/20178/4/20178/18/2017Aug 20178/31/2017
1399/27/20179/1/20179/15/20179/29/2017Sep 20179/30/2017
141010/25/201710/13/201710/27/2017Oct 201710/31/2017
151111/22/201711/10/201711/24/2017Nov 201711/30/2017
161212/27/201712/8/201712/22/2017Dec 201712/31/2017

<tbody>
</tbody>
LookUpData

So I'm hoping in my original formula to reference in the value in Cell F12 above which is Text - using the
VLOOKUP() and the Indirect().

Can someone assist?

Thanks in Advance.

Jim
 

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)
I think you mean:

=SUM(INDIRECT("'"&VLOOKUP(C1,LOOKUPDATA!A:F,6,FALSE)&"'!K25:K28"))
 
Upvote 0
Or

=SUM(INDIRECT("'"&INDEX(LOOKUPDATA!F:F,C1)&"'!K25:K28"))

Or if Current Year can be assumed

=SUM(INDIRECT("'"&TEXT(C1&"/1","mmm yyyy")&"'!K25:K28"))
 
Last edited:
Upvote 0
The lookup table doesn't start in row 1, so you'll need an offset amount added to get the correct row if you just use C1 directly.
 
Upvote 0
Good point, that would have to be

=SUM(INDIRECT("'"&INDEX(LOOKUPDATA!F$5:F$16,C1)&"'!K25:K28"))
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,939
Members
449,134
Latest member
NickWBA

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