• 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

Extract unique sorted list from two different columns ignoring blank cells.|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Extract unique sorted list from two different columns ignoring blank cells.|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 QueryExtract unique sorted list from two…
sp_PrintTopic sp_TopicIcon
Extract unique sorted list from two different columns ignoring blank cells.
Avatar
Vijay Vardhan
Member
Members
Level 0
Forum Posts: 15
Member Since:
January 27, 2023
sp_UserOfflineSmall Offline
1
January 27, 2023 - 1:08 am
sp_Permalink sp_Print

Hallo I am a stock trader. I am having an profit and loss account Excel file with two tables in it. One table is for delivery based spot market trades and other for derivative trades. I need a formula for extracting unique sorted list from two different columns ignoring blank cells. Two columns in my case are from above two different tables. These are columns for dates and thus is a numerical data. The co-founder Mynda says that a formula is not possible for older version of Excel and the outcome can be achieved only through Power Query. I can't spend time learning Power Query just for this single use case. Can anyone tell me what exact steps are to be taken to achieve the objective?

sp_AnswersTopicSeeAnswer See Answer
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
January 27, 2023 - 7:40 am
sp_Permalink sp_Print

Hi Vijay,

Can you please supply an example file showing the result you are after?

Regards

Phil

Avatar
Vijay Vardhan
Member
Members
Level 0
Forum Posts: 15
Member Since:
January 27, 2023
sp_UserOfflineSmall Offline
3
January 27, 2023 - 7:19 pm
sp_Permalink sp_Print

I have attached the file. I have tried with some formula but it doesn't work in older versions of Excel because of two different columns. Can you please tell how to do it using power query?

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
4
January 28, 2023 - 2:10 am
sp_Permalink sp_Print

I don't know if I'm just dense this morning or what, I'm confused as to what you're looking for? You're looking for a unique list of dates from both of your tables, am I understanding correctly?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4439
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
5
January 28, 2023 - 8:43 am
sp_Permalink sp_Print

Hi Vijay,

I agree with Jessica, the question is not clear because you didn't provide an example in the file that shows the desired result as requested by Phil. If you can add an example of the result you're looking for, then there is less chance of ambiguity, and we can help you more quickly.

Thanks,

Mynda

Avatar
Vijay Vardhan
Member
Members
Level 0
Forum Posts: 15
Member Since:
January 27, 2023
sp_UserOfflineSmall Offline
6
January 28, 2023 - 8:12 pm
sp_Permalink sp_Print sp_EditHistory

There are two tables viz JAN and CASH01. Each have their second column as 'DATE'. The dates in both column can be same if I execute trades in both the segment (Spot market and derivative market) on same date. As seen in the file, I just want to extract unique and sorted {Sorted from early to later date} list of dates from these two columns into the column AX below the title 'DATE' from cell AX2 onwards. As you can see the only viable formula that I have entered in AX2 throws #NA error occasionally which I don't want. Since at the start of the month there will be lots of blank cells in the lower rows of the columns hence they needs be ignored by the formula.
I want this list so that I can extract summed up CN VALUE (Contract note value) corresponding to each date in the adjacent column AY.
The file is attached in my earlier reply. If you need any further clarifications on the desired outcome please reply without any hesitation. Thanks for the prompt response.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
7
January 29, 2023 - 7:20 am
sp_Permalink sp_Print sp_EditHistory

Hello,

Once you start working in Power Query and get to know what you can do with it, you will start using it, so I do think you should put some time to learn using it.
The method used is described in Combine Excel worksheets with Power Query.

The table in AX column needs to be updated after you add more dates in your JAN or CASH01 tables, just right click any cell in that table and click update.
I also took the liberty to write another formula in AY column, so you get correct results, based on my assumption of what you want to see.

As you are stock trader, perhaps this could be of interest Personal Stock Portfolio Dashboard.

Br,
Anders

sp_AnswersTopicAnswer
Answers Post
Avatar
Vijay Vardhan
Member
Members
Level 0
Forum Posts: 15
Member Since:
January 27, 2023
sp_UserOfflineSmall Offline
8
January 30, 2023 - 1:31 am
sp_Permalink sp_Print

Thank you so much Anders and thanks for the formula in column AY too. It works well. I will definitely look forward to learn Power Query in the future whenever I will be having some spare time; as per your advice. Thanks again.

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:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

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