+ Reply to Thread
Results 1 to 7 of 7

Find pattern in different sets of similar data and compare/find the closest ones.

  1. #1
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    Find pattern in different sets of similar data and compare/find the closest ones.

    I have got a data with date & time with two corresponding columns that contain certain values. I want to find dates that have similar 'patterns' of data. I ultimately want to predict what the next value is going to be of the current day data till a specific time, by comparing it with other days and finding the closest match.
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Find pattern in different sets of similar data and compare/find the closest ones.

    and some manually calculated results
    in the file will be nice.

  3. #3
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Find pattern in different sets of similar data and compare/find the closest ones.

    Quote Originally Posted by BMV View Post
    in the file will be nice.
    actually i'm wanting to find ways/formulas to compare which data sets are similar. For example from 9:15 to 10:30 which data set has ascended or descended in a similar way so as i can make a prediction of what will happen next.

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find pattern in different sets of similar data and compare/find the closest ones.

    So I implemented a macro because I thought it was too "hard" for a formula. This is what I came up with:

    Please Login or Register  to view this content.
    It finds the closest match on a different day for each row. It takes a little while to run but might help you to identify the patterns that you're looking for.

    WBD
    Office 365 on Windows 11, looking for rep!

  5. #5
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Find pattern in different sets of similar data and compare/find the closest ones.

    Quote Originally Posted by WideBoyDixon View Post
    So I implemented a macro because I thought it was too "hard" for a formula. This is what I came up with:

    Please Login or Register  to view this content.
    It finds the closest match on a different day for each row. It takes a little while to run but might help you to identify the patterns that you're looking for.

    WBD
    it's finding the exact values from other days. i want to find the similar order of ascending or descending values. For example 4/26/19, 9:16 has 2 and 5. The next values for 9:21 are 5 and 11. I want to find which days had the similar ascend from 9:15 to 9:25.

  6. #6
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find pattern in different sets of similar data and compare/find the closest ones.

    Oh I see. I don't think the data lends itself to such scrutiny very easily. The measurements taken on different days differ in number (e.g. 69 in first day, 65 in second) so you can't match like that. The times also don't match so you can't use that as a comparison. The best I can think of is to calculate the "differential" between values and then run something like the above to determine when the same differential was observed. Tricky.

    WBD

  7. #7
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171
    Quote Originally Posted by WideBoyDixon View Post
    Oh I see. I don't think the data lends itself to such scrutiny very easily. The measurements taken on different days differ in number (e.g. 69 in first day, 65 in second) so you can't match like that. The times also don't match so you can't use that as a comparison. The best I can think of is to calculate the "differential" between values and then run something like the above to determine when the same differential was observed. Tricky.

    WBD
    Instead of time we can replace it with an ascending series (1,2,3,4...). What is more important for me is to find a way to compare them. So for example if we want to compare the serial no. 10 of a day and find it's closest match, then the comparison has to take into account it's progression from serial no. 1 of the day. I want to find how to create the pattern (stdev, var, skew, kurt etc) through which we will compare.

+ 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. Replies: 7
    Last Post: 08-27-2019, 08:37 AM
  2. Compare to sheets with very similar data to find closest match
    By ashley72788 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2017, 02:34 AM
  3. How To Compare Two Sets Of Similar Data Sets To Find a Good Match
    By Mark123456789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2016, 01:29 AM
  4. [SOLVED] Compare two lists of words to find closest matches
    By elise.benjamin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2015, 10:02 AM
  5. Formula to compare two sets of similar data on two sheets
    By twoheadedgames in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-23-2013, 04:18 AM
  6. [SOLVED] Compare ID's and find closest match for each section
    By marrott2 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2013, 02:37 PM
  7. Replies: 0
    Last Post: 07-31-2009, 09:44 AM

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