• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

INDIRECT TAB YEAR & CELL REF OTHER THEN JUST YEAR (YYYY)?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / INDIRECT TAB YEAR & CELL REF OTHER THEN JUST YEAR (YYYY)?|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…INDIRECT TAB YEAR & CELL REF OT…
sp_PrintTopic sp_TopicIcon
INDIRECT TAB YEAR & CELL REF OTHER THEN JUST YEAR (YYYY)?
Avatar
stephanrs
England/Humberside/Hull
Member
Members
Level 0
Forum Posts: 41
Member Since:
February 28, 2017
sp_UserOfflineSmall Offline
1
March 12, 2023 - 7:11 am
sp_Permalink sp_Print sp_EditHistory

Hello, sample file attached.

My question here is best FORMULA to present CELLS from other tabs to automate from TAB NAME in COLUMN A of 2ND TAB (EV YEAR TOTAL)

EXCEL SPREADSHEET WORKBOOK is a EV (ELEC VEHICLE) charge/cost/miles summary which utilises individial YEARS TABS:

2040 & EV2041, these are identical except TAB name & SUMMARY OF ALL YEARS (EV YEAR TOTAL).

SUMMARY TAB uses INDEX FORMULA in EV YEAR TOTAL (2ND TAB), and I devised 2 formula types:

* YEAR ONLY EXAMPLE (ROW4): Also A4 Format Cells, Custom, YYYY

COL B: =IF($A4<=$Z$2,INDIRECT("'"&YEAR($A$4)&"'!A$225"),"")

COL C: =IF($A4<>1,INDIRECT(TEXT($A4,"YYYY")&"!$B$225"),"")

* DESCRIPTION + YEAR EXAMPLE (ROW5): Also A5 Format Cells, Custom, "EV"YYYY, so date display relevant results still work, but as you can see from ROW5 COLUMNS C onwards data is not presented as Formula needs correct edit for more complicated TAB name then basic YEAR only.

COL B: =IF($A5<=$Z$2,INDIRECT("'"&YEAR($A$4)&"'!A$225"),"")

COL C: =IF($A4<>1,INDIRECT(TEXT($A4,"YYYY")&"!$B$225"),"")

Hence what is this the best simple solution for TAB NAME REF when more complicated then just YEAR (YYYY), ideally a method to support numbers/letters/spaces?

Screenshot-464.pngImage Enlarger

Cheers

Stephan

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
March 12, 2023 - 4:54 pm
sp_Permalink sp_Print

Hi Stephan,

I recommend you rethink your file layout and format the data in a Tabular layout so that you can use tools like PivotTables, SUMIFS etc. the way they were intended.

Using a volatile function like INDIRECT en masse is a recipe for a slow file, not to mention the likelihood of formula errors and high maintenance costs.

I hope that points you in the right direction.

Mynda

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 622
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
3
March 13, 2023 - 10:21 pm
sp_Permalink sp_Print sp_EditHistory

FYI, cross-posted here: https://chandoo.org/forum/thre.....ear.51737/

 

In future, please provide links if you cross-post. Thanks! 🙂

The following users say thank you to Velouria for this useful post:

Philip Treacy
Avatar
stephanrs
England/Humberside/Hull
Member
Members
Level 0
Forum Posts: 41
Member Since:
February 28, 2017
sp_UserOfflineSmall Offline
4
March 14, 2023 - 2:31 am
sp_Permalink sp_Print

Hello

FYI:

Posted elsewhere as not intending full REWORK!  For what is likely to be 1 formula to correct in EV YEAR TOTAL (Columns B-P).  But considering future years will still be called... YEARS (YYYY) guess leave.... year as year!  Hence attached work file!

 

TABULAR FORMAT?:

YEAR (2040 & 2041) sheets are inTabular Format.  Maybe was distracted as Lists (A29:R220) not at top of sheet as Cost Guide data comparison feature above for quick glance of EV charging per MILES or TIME (2040 & 2041).

 

SUMIFS?: (Presumably: 3D SumProduct SumIfs Indirect sample file attached)

Aren't these total of ALL TABS?  Recogonise Pivot Tables of Sales data and Employee Hours & £ etc are the correct data set for absolute totals, but the EV spreadsheet isn't total of all tabs, hence Summary per Year, guess closer to a Dashboard display without much need for interaction.

Cheers Stephan

Avatar
stephanrs
England/Humberside/Hull
Member
Members
Level 0
Forum Posts: 41
Member Since:
February 28, 2017
sp_UserOfflineSmall Offline
5
March 15, 2023 - 7:39 am
sp_Permalink sp_Print

Hello

Solved the 3D Indirect Alphanumeric Year myself, 2 versions attached, both 3D Indirect Tabs summary.

1. YEAR date TAB names.

2. Alphanumberic TAB names.

It was some simple formula edit in the end, Text General instead of Year, as I originally asked.

See formulas in EV YEAR TOTAL rows B2:P12, for differences between the 2 versions:

ALPHANUMBERIC TAB TYPE:
B2 =IF(AND(B$15="YES"),IF($AF2<=$AB$1,INDIRECT("'"&TEXT($A2,"General")&"'!A$225"),""))
C2 =IF(AND(C$15="YES"),IF($AF2<=$AB$1,INDIRECT(TEXT($A2,"yyyy")&"!$B$225"),""))

Alphanumeric 3D Indirect Tabs, fixed with few helper columns for Column A2:A12 using Value & Date (AE2:AF12).
AE2 =VALUE(RIGHT(A2,4))
AF2 =DATE(AE2,1,1)

EV-ALPHANUMERIC.pngImage Enlarger

EV-TAB.pngImage Enlarger

Both files have DATE pre check, that I've set in EV YEAR TOTAL (summary tab) cell AB1.

YEAR TAB TYPE:
B2 =IF(AND(B$15="YES"),IF($A2<=$AB$1,INDIRECT("'"&YEAR($A2)&"'!A$225"),""))
C2 =IF(AND(C$15="YES"),IF($A2<=$AB$1,INDIRECT(TEXT($A2,"yyyy")&"!$B$225"),""))

I know I'm impressed!

Stephan

sp_PlupAttachments Attachments
  • sp_PlupImage EV-ALPHANUMERIC.png (213 KB)
  • sp_PlupImage EV-TAB.png (208 KB)
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Sonja Mason, Alexandra Radu
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6219
Posts: 27276

 

Member Stats:
Guest Posters: 49
Members: 31903
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.