• 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
    • SALE 20% Off All Courses
    • 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
    • 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
    • Logout
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Select Last Values from other Columns|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Select Last Values from other Columns|Power Query|Excel Forum|My Online Training Hub

sale now on

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 ForumPower QuerySelect Last Values from other Colum…
sp_PrintTopic sp_TopicIcon
Select Last Values from other Columns
Avatar
Alex Gavryliuk
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 23, 2016
sp_UserOfflineSmall Offline
1
August 28, 2017 - 8:27 pm
sp_Permalink sp_Print

Dears,

would appreciate, if you can help with Power Query. i would like to add 3 more columns into my table Last Submission Date, Last Validation Date and Last Validation Status. how to find Last Submission Date i did like this: choose all Submission Date columns => Add Column = > Date => Latest. after this i need somehow to lookup values from Validation Date and Validation Status... if there are any way to do it by formulas, it will be also great (i have tried MAX, MATCH, VLOOKUP: for some cased results were not correct 🙁 ). attached file as an example. many thanks in advance for any idea.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 29, 2017 - 11:41 am
sp_Permalink sp_Print

Hi Alex,

Thanks for sharing your file, however I couldn't follow what you mean by: "after this i need somehow to lookup values from Validation Date and Validation Status..."

Can you please give me some examples of the desired result?

Thanks,

Mynda

Avatar
Alex Gavryliuk
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 23, 2016
sp_UserOfflineSmall Offline
3
August 29, 2017 - 2:44 pm
sp_Permalink sp_Print

Dear Mynda

Firstly, let me thanks for your great work your are doing and sharing your experiences! 

Originally, i have a simple documentation tracker which contain sequence of Submission Date; Validation Date and Validation Status (Approved; Rejected; Under Validation). 1st Submission Date ... 4th Submission Date (or even N-Submission Date). for one ID i can have 4 Submission of the documents, for other - only 2 Submission. if Status is Under Validation than Validation Date cell will be emty

Result i want to get:  i want to generate only 3 Unique Columns: Submission Date; Validation Date and Validation Status (in my file marked by green) which can show me the latest status of each document.

i have updated file and added some formulas. Firstly, i have found the last Submission Date by MAX function, then i VLOOKUP this last Submission Date to find our to Last Validation Date and Status. how to make it via Power Query unfortunately no idea... (maybe with Record.Field ...) 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
August 29, 2017 - 3:25 pm
sp_Permalink sp_Print

Hi Alex,

Thanks for clarifying. In the attached file I took a copy of your original data and removed columns B:D so I could create these using Power Query. You'll see it's on a sheet called 'Source Data' in a table called 'Source_Table'.

I loaded this table to Power Query and you'll see the query is called 'Status' and the output is on the sheet also called 'Status'. Please inspect the query to see the steps I took.

Please let me know if you have any questions.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Alex Gavryliuk
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 23, 2016
sp_UserOfflineSmall Offline
5
August 29, 2017 - 6:14 pm
sp_Permalink sp_Print

Dear Mynda

many thanks! that was exactly i need! and  the code was really not difficult... 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
August 30, 2017 - 12:07 pm
sp_Permalink sp_Print

Great 🙂 glad I could help.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Riny van Eekelen, Jose Molina, Victoria Turner
Guest(s) 103
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 858
Velouria: 580
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 214
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 189
Newest Members:
Richard Adams
Vincent Starcevich
Patrick Lawrence
Louise Bell
GIJO GEORGE
Kumud Patel
Atos Franzon
Andrew MacDonald
Artie Ball
Jenn Cain
Forum Stats:
Groups: 3
Forums: 24
Topics: 6079
Posts: 26684

 

Member Stats:
Guest Posters: 49
Members: 31571
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, 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
trustpilot excellent rating
 

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.