• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Fast last row and then create named range|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Fast last row and then create named range|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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…Fast last row and then create named…
sp_PrintTopic sp_TopicIcon
Fast last row and then create named range
Avatar
Rod R
London, United Kingdom
Member
Members

Excel Expert

Power Query
Level 0
Forum Posts: 6
Member Since:
July 14, 2022
sp_UserOfflineSmall Offline
1
August 13, 2022 - 8:26 pm
sp_Permalink sp_Print

Hi everything

Please could someone point be in the right direction - using Excel 365.

Want to detect the last row of data (I know the last column) and then create a named range based on my known column and the last row that I detected?

Any ideas please?

Cheers all

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 13, 2022 - 9:19 pm
sp_Permalink sp_Print

Hi Rod,

You don't need VBA to do this. You can use a dynamic named range. You can use INDEX and MATCH to find the last value in a column and define it as a dynamic named range.

If you get stuck come back with a sample Excel file so we can give you a specific solution.

Mynda

Avatar
Rod R
London, United Kingdom
Member
Members

Excel Expert

Power Query
Level 0
Forum Posts: 6
Member Since:
July 14, 2022
sp_UserOfflineSmall Offline
3
August 14, 2022 - 7:59 pm
sp_Permalink sp_Print

Thanks Mynda, I'll give it a try.

My situation is that I'm combining data from some 20 external Excel worksbooks into a single sheet using Paste Link, then sorting the white space, then I have a load of pivot charts I want to create based on a dynamic named range. My external sheets are all fixed size (so maybe 100 rows and 20 columns) but not all full of data, so I run a short sort macro to move everything to the top in the new sheet (does that make sense?).  I'm keeping the "shell" of my destination sheet read-only, so that I can repear the process as the data in my source sheets change.

I've discovered that I can't paste link into a table, and paste link doesn't copy formatting.  So I need a way of dymanically creating a new name range (or table) based on my newly sorted data, so that the pivot charts that are in the destination sheet can refresh and update a dashboard.

I didn't realise that you can have a formula in range manager - and that helps a lot!!!

Really appreciate you getting back to me

Rod

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
August 15, 2022 - 2:12 pm
sp_Permalink sp_Print

Hi Rod,

Sounds like you could be using Power Query to automate this whole process. 

Mynda

Avatar
Rod R
London, United Kingdom
Member
Members

Excel Expert

Power Query
Level 0
Forum Posts: 6
Member Since:
July 14, 2022
sp_UserOfflineSmall Offline
5
August 16, 2022 - 5:54 am
sp_Permalink sp_Print

Thanks Mynda

Been looking at Power Query for a few hours - what a revelation!!! Thanks 🙂

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
August 16, 2022 - 8:01 am
sp_Permalink sp_Print sp_EditHistory

Glad you like the look of Power Query, Rod. It's a game changer. If you'd like to learn more, please consider my Power Query course.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Rob Rooth
Tom Lewis
Jennifer Rodriguez-Avila
Khaled Ibrahim
Kiran Supekar
Lisa Myers
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Forum Stats:
Groups: 3
Forums: 24
Topics: 6531
Posts: 28604

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.