+ Reply to Thread
Results 1 to 5 of 5

How to trim multi-stock data by matching dates

  1. #1
    Registered User
    Join Date
    09-02-2022
    Location
    Iceland
    MS-Off Ver
    MS 365 Enterprise
    Posts
    10

    Question How to trim multi-stock data by matching dates

    Hello everyone,

    Please - does anyone know how I can only keep stockdata that has the same date?
    Here is an example of what I mean:
    Excel_sorting_problem.png

    I only want to keep the dates and the corresponding stock movements that are comparible (i.e. don't have missing data).

    Thank you,

    Best regards,
    Last edited by HappyExcelLife; 02-16-2023 at 06:38 AM.

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: How to trim multi-stock data by matching dates

    Assuming your real data is as represented by the picture, maybe with a macro like this?
    Please Login or Register  to view this content.
    Last edited by Croweater; 02-14-2023 at 09:50 PM.

  3. #3
    Registered User
    Join Date
    09-02-2022
    Location
    Iceland
    MS-Off Ver
    MS 365 Enterprise
    Posts
    10

    Re: How to trim multi-stock data by matching dates

    Thank you for this - however the number of stocks is dynamic so I would probably have to throw in a loop function like "do until" or "do while" but is there no way to do this within excel itself, besides using Macros? Just curiosity, it's okay if it is the only way.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: How to trim multi-stock data by matching dates

    Try this,

    H2
    =CHOOSECOLS(FILTER(A2:F100,(A2:A100<>"")*(B2:B100<>"")*(C2:C100<>"")*(D2:D100<>"")*(E2:E100<>"")*(F2:F100<>""),""),{1,2,4,6})
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-02-2022
    Location
    Iceland
    MS-Off Ver
    MS 365 Enterprise
    Posts
    10

    Re: How to trim multi-stock data by matching dates

    Thank you so much! This is just what I needed ^_^

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. summing and subtracting in file stock form two files based on matching data
    By abdo meghari in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2021, 02:50 PM
  2. [SOLVED] Stock count based of matching description if serial number is in stock.
    By conwaythibodeaux in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2019, 09:54 AM
  3. [SOLVED] INDEX MATCH function not matching on data in a multi-line cell
    By ericalee83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2017, 10:55 PM
  4. Import Multi-webpage stock data
    By kallall7 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-21-2015, 05:01 AM
  5. [SOLVED] Data Cleaner Macro: Dates, Zeros, and TRIM
    By PolarX in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2013, 01:21 PM
  6. Extracting data from multiple columns with multi value matching
    By Antagonizer82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2012, 02:59 PM
  7. Replies: 5
    Last Post: 08-05-2009, 12:49 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1