Indirect??

RandyD123

Active Member
Joined
Dec 4, 2013
Messages
296
Office Version
  1. 2016
Platform
  1. Windows
I have multiple sheets that I want to create a master tab. It needs to pull one cell value (J55) from each sheet. Not sure the easiest way to go about it. See example: column B,D,F,H....have to pull the day of month (each sheet is named for each day of month) Column C,E,G,I..... have to pull cell (J55) from each sheet. I'm sure I need a formula in each of those cells and I need to be able to just copy it down for all the days. See example sheet here
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
try this


Book1
ABCDEFG
1
2MayJuneJuly
312414117341
422467222712
532494325403
642045420444
752295520505
862414622446
972047724737
1082224819038
1192551910529
1210245910113310
1311207311011
1412253912012
1513304313102813
1614244814014
1715241515229715
1816262616252316
1917281517265117
2018018250918
2119267019255419
2220296120250920
2321244421021
2422259622022
2523258923023
2624282924024
2725212125025
2826126326026
2927201927027
3028272228028
3129204129029
323021033030
3331228231
Sheet2
Cell Formulas
RangeFormula
C3=INDIRECT("'"&TEXT(DATE(2019,MONTH(1&LEFT(B$2,3)),B3),"ddd mmm ")&TEXT(B3,"00")&" 2019'!$J$55")
 
Upvote 0
This should work, fiddly to test properly since your sheet is protected and I didnt fancy copying all the sheets across to a new spreadsheet.

in Sheet1!C3
=INDIRECT("'"&TEXT(B3&"/"&B$2,"ddd")&" "&TEXT(B3&"/"&B$2,"mmm dd yyyy")&"'!J55")
copy down the column
copy to other columns
 
Upvote 0
Thank You Very Much. Just one last question, If the sheets don't exist I get a #REF ! error. How can I avoid this error or have the cell show a blank value. I don't mind the "0" value for sheets that exist and there is in fact a "0" value in that cell. Just trying to avoid #REF ! errors for my columns for the future months.
 
Upvote 0
can use this to trap the error

Code:
=iferror(INDIRECT("'"&TEXT(DATE(2019,MONTH(1&LEFT(B$2,3)),B3),"ddd mmm ")&TEXT(B3,"00")&" 2019'!$J$55"),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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