• 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

Renaming selected number of rows with 'Add Column from Example'|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Renaming selected number of rows with 'Add Column from Example'|Power Query|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 ForumPower QueryRenaming selected number of rows wi…
sp_PrintTopic sp_TopicIcon
Renaming selected number of rows with 'Add Column from Example'
Avatar
Sadik Berbic

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 20, 2021
sp_UserOfflineSmall Offline
1
January 20, 2021 - 3:45 am
sp_Permalink sp_Print

Dear MOTH,

I'm relatively new to Power Query and enormously grateful to you for making me aware of this great tool.

I need to rename a selected number of rows (Directorate - parent) to associate with the Division (child). This is needed so that I have an existing directorate split in different parts, to be able to show it separately in pivot table. When I employ 'Add Column from Example' I am being able to achieve the desired for one Directorate/Division combination, but not for the other (below 100 visible lines). Maybe, there is another way to achieve this.

My source data has about 2,700 rows and 38 columns (before unpivot). Hierarchy (text) columns are on one side and value columns on the other (budget, actual spend, forecast etc). I use Excel 365 (PC).

I do apologise if my question is not very clear - I hope the attached file will be of use.

Many thanks for your help and all your kind contribution to us Excel users.

Best Regards

Sadik (London, UK)

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
January 20, 2021 - 6:53 pm
sp_Permalink sp_Print

Hi Sadik,

Welcome to our forum! Your file isn't attached. You need to click the 'start upload' button after selecting your file.

Mynda

Avatar
Sadik Berbic

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 20, 2021
sp_UserOfflineSmall Offline
3
January 20, 2021 - 7:32 pm
sp_Permalink sp_Print

Hi Mynda,

My apology! 

I hope file is now attached ok.

Regards

Sadik

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
January 21, 2021 - 12:19 pm
sp_Permalink sp_Print

Hi Sadik,

Thanks for sharing your file. It's not clear what you want to change these values to and if there is a pattern Power Query can follow. Add Column From Example requires a pattern so that it can predict what you want. If you simply want to Find and Replace some names with something else, then you'd be better off creating a separate table with the new names and using Merge to bring then into a new column.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Sadik Berbic

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 20, 2021
sp_UserOfflineSmall Offline
5
January 21, 2021 - 10:23 pm
sp_Permalink sp_Print

Hi Mynda,

Many thanks. Of course, 'Merge' was much better solution for my problem.

Best Regards.

Sadik

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: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
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.