Reading Different Tabs

Jar888

Board Regular
Joined
Jan 15, 2022
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Hi there.

Is there an easier way to set up to read data from separate tabs than the below formulas? There is a DS and NS for every day of the month, but the values I want to pull are in identical columns/rows. I don't particularly want to set up a summary for each day if I can avoid it, I'd rather set up a single summary and be able to change the tab data (DS (1) to say DS (2)) but not sure if you can. Any help would be appreciated or a point in the right direction. Thanks!


2022-2 Feb - 54 Workshop Handover.xlsx
QRSTUVW
3Vehicles(1) Summary(2) Summary
4TRU002 10 GTG  GTG
5TRU013 122OUT  OUT
6TRU039 1212GTG1212GTG
7TRU046  GTG3 GTG
8TRU047  GTG  GTG
9TRU054 2GTG37GTG
10TRU055 2GTG  GTG
118156 4GTG1.54GTG
128158 3GTG1112GTG
1381591212OUT6.57OUT
14DRI004 1 GTG 8GTG
Availability
Cell Formulas
RangeFormula
R4R4=IF(SUM('DS (1)'!$S$23:$T$25)=0,"",SUM('DS (1)'!$S$23:$T$25))
S4S4=IF(SUM('NS (1)'!$S$23:$T$25)=0,"",SUM('NS (1)'!$S$23:$T$25))
T4,W4T4='NS (1)'!$U$11
U4U4=IF(SUM('DS (2)'!$S$23:$T$25)=0,"",SUM('DS (2)'!$S$23:$T$25))
V4V4=IF(SUM('NS (2)'!$S$23:$T$25)=0,"",SUM('NS (2)'!$S$23:$T$25))
R5R5=IF(SUM('DS (1)'!$S$26:$T$28)=0,"",SUM('DS (1)'!$S$26:$T$28))
S5S5=IF(SUM('NS (1)'!$S$26:$T$28)=0,"",SUM('NS (1)'!$S$26:$T$28))
T5,W5T5='NS (1)'!$U$14
U5U5=IF(SUM('DS (2)'!$S$26:$T$28)=0,"",SUM('DS (2)'!$S$26:$T$28))
V5V5=IF(SUM('NS (2)'!$S$26:$T$28)=0,"",SUM('NS (2)'!$S$26:$T$28))
R6R6=IF(SUM('DS (1)'!$S$29:$T$31)=0,"",SUM('DS (1)'!$S$29:$T$31))
S6S6=IF(SUM('NS (1)'!$S$29:$T$31)=0,"",SUM('NS (1)'!$S$29:$T$31))
T6,W6T6='NS (1)'!$U$17
U6U6=IF(SUM('DS (2)'!$S$29:$T$31)=0,"",SUM('DS (2)'!$S$29:$T$31))
V6V6=IF(SUM('NS (2)'!$S$29:$T$31)=0,"",SUM('NS (2)'!$S$29:$T$31))
R7R7=IF(SUM('DS (1)'!$S$32:$T$34)=0,"",SUM('DS (1)'!$S$32:$T$34))
S7S7=IF(SUM('NS (1)'!$S$32:$T$34)=0,"",SUM('NS (1)'!$S$32:$T$34))
T7,W7T7='NS (1)'!$U$20
U7U7=IF(SUM('DS (2)'!$S$32:$T$34)=0,"",SUM('DS (2)'!$S$32:$T$34))
V7V7=IF(SUM('NS (2)'!$S$32:$T$34)=0,"",SUM('NS (2)'!$S$32:$T$34))
R8R8=IF(SUM('DS (1)'!$S$35:$T$37)=0,"",SUM('DS (1)'!$S$35:$T$37))
S8S8=IF(SUM('NS (1)'!$S$35:$T$37)=0,"",SUM('NS (1)'!$S$35:$T$37))
T8,W8T8='NS (1)'!$U$23
U8U8=IF(SUM('DS (2)'!$S$35:$T$37)=0,"",SUM('DS (2)'!$S$35:$T$37))
V8V8=IF(SUM('NS (2)'!$S$35:$T$37)=0,"",SUM('NS (2)'!$S$35:$T$37))
R9R9=IF(SUM('DS (1)'!$S$38:$T$40)=0,"",SUM('DS (1)'!$S$38:$T$40))
S9S9=IF(SUM('NS (1)'!$S$38:$T$40)=0,"",SUM('NS (1)'!$S$38:$T$40))
T9,W9T9='NS (1)'!$U$26
U9U9=IF(SUM('DS (2)'!$S$38:$T$40)=0,"",SUM('DS (2)'!$S$38:$T$40))
V9V9=IF(SUM('NS (2)'!$S$38:$T$40)=0,"",SUM('NS (2)'!$S$38:$T$40))
R10R10=IF(SUM('DS (1)'!$S$41:$T$43)=0,"",SUM('DS (1)'!$S$41:$T$43))
S10S10=IF(SUM('NS (1)'!$S$41:$T$43)=0,"",SUM('NS (1)'!$S$41:$T$43))
T10,W10T10='NS (1)'!$U$29
U10U10=IF(SUM('DS (2)'!$S$41:$T$43)=0,"",SUM('DS (2)'!$S$41:$T$43))
V10V10=IF(SUM('NS (2)'!$S$41:$T$43)=0,"",SUM('NS (2)'!$S$41:$T$43))
R11R11=IF(SUM('DS (1)'!$S$11:$T$13)=0,"",SUM('DS (1)'!$S$11:$T$13))
S11S11=IF(SUM('NS (1)'!$S$11:$T$13)=0,"",SUM('NS (1)'!$S$11:$T$13))
T11,W11T11='NS (1)'!$U$32
U11U11=IF(SUM('DS (2)'!$S$11:$T$13)=0,"",SUM('DS (2)'!$S$11:$T$13))
V11V11=IF(SUM('NS (2)'!$S$11:$T$13)=0,"",SUM('NS (2)'!$S$11:$T$13))
R12R12=IF(SUM('DS (1)'!$S$14:$T$16)=0,"",SUM('DS (1)'!$S$14:$T$16))
S12S12=IF(SUM('NS (1)'!$S$14:$T$16)=0,"",SUM('NS (1)'!$S$14:$T$16))
T12,W12T12='NS (1)'!$U$35
U12U12=IF(SUM('DS (2)'!$S$14:$T$16)=0,"",SUM('DS (2)'!$S$14:$T$16))
V12V12=IF(SUM('NS (2)'!$S$14:$T$16)=0,"",SUM('NS (2)'!$S$14:$T$16))
R13R13=IF(SUM('DS (1)'!$S$17:$T$19)=0,"",SUM('DS (1)'!$S$17:$T$19))
S13S13=IF(SUM('NS (1)'!$S$17:$T$19)=0,"",SUM('NS (1)'!$S$17:$T$19))
T13,W13T13='NS (1)'!$U$38
U13U13=IF(SUM('DS (2)'!$S$17:$T$19)=0,"",SUM('DS (2)'!$S$17:$T$19))
V13V13=IF(SUM('NS (2)'!$S$17:$T$19)=0,"",SUM('NS (2)'!$S$17:$T$19))
R14R14=IF(SUM('DS (1)'!$S$20:$T$22)=0,"",SUM('DS (1)'!$S$20:$T$22))
S14S14=IF(SUM('NS (1)'!$S$20:$T$22)=0,"",SUM('NS (1)'!$S$20:$T$22))
T14,W14T14='NS (1)'!$U$41
U14U14=IF(SUM('DS (2)'!$S$20:$T$22)=0,"",SUM('DS (2)'!$S$20:$T$22))
V14V14=IF(SUM('NS (2)'!$S$20:$T$22)=0,"",SUM('NS (2)'!$S$20:$T$22))
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Have you thought about using Power Query to combine all the tabs into one list? Then you can analyse to your hearts content with ease.
 
Upvote 0
I can't say for sure weather that would work as I have no knowledge on power query. I'll explain a bit more in depth below.

Each worksheet is divided up into a nightshift and dayshift (DS or NS) followed by the day of the month (1, 2, 3, 4). I only really care about the previous days shifts. For instance, today is the 15th, so I am looking at DS (14) and NS (14) worksheets to get the information for reporting to management.

I was hoping you could get excel to read a particular worksheet based off an input into a cell, but I haven't seen if anything like that online, so I wasn't sure if it was possible or not. If power query can get me the same results, I'll look into it though.
 
Upvote 0
You could use INDIRECT to point to a specific tab in a formula .. off an input by cell. Have you used that before?
 
Upvote 0
I'll look into INDIRECT. I'm a complete novice, sort of learning everything on the fly while I work.
 
Upvote 0
I've looked into INDIRECT, and I think it'll work perfectly. I'm just a little bit stuck on the syntax on how I'm supposed to lay it out.

I currently have the below, which brings up a #VALUE error.

=IF(SUM(INDIRECT("'"&R1&"'!$S$23:$T$25")=0),"",SUM(INDIRECT("'"&R1&"'!$S$23:$T$25")))

Cell R1 contians = DS (1)

Any help would be appreciated.
 
Upvote 0
I'd say that one of the cells in the range 'DS (1)'!S23:T25 has a content of #VALUE - did you check?
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

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