+ Reply to Thread
Results 1 to 3 of 3

To group by unique record

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    To group by unique record

    Applicant ID Period Of Stay From Period Of Stay To What I want to achieve
    2021/F/Q1/002 01/03/2020 31/03/2020 2021/F/Q1/002 Mar 2020 - May 2020
    2021/F/Q1/002 01/04/2020 30/04/2020 2021/F/Q1/003 Mar 2020 - May 2020
    2021/F/Q1/002 01/05/2020 31/05/2020 2021/F/Q1/004 Mar 2020 - Apr 2020
    2021/F/Q1/003 01/03/2020 31/03/2020
    2021/F/Q1/003 01/04/2020 30/04/2020
    2021/F/Q1/003 01/05/2020 31/05/2020
    2021/F/Q1/004 01/03/2020 31/03/2020
    2021/F/Q1/004 01/04/2020 30/04/2020

    Our in-house system will generate an excel report in which Column A: Applicant ID, Column B: Period of Stay From, Column C: Period of Stay To. I am seeking the community help to see if we are able to combine the records to show by Column D: Applicant ID and the Column E: Period Start and End Dates.

    Thank you for reading my post.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: To group by unique record

    a) Filter your data on Column D b) put in Pivot Table

  3. #3
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    260

    Re: To group by unique record

    It really is a good idea to attach a workbook.
    I've guessed, probably incorrectly, the contents of your sheet in the attached.
    There are 2 solutions, a pivot table at cell H8 and a Power Query at cell H1.
    They're both simplistic, basing their output on the minimum date from of a given applicant ID and a maximum date to of the same applicant. This means, for example, that if row 3 of the sheet (April for 2021/F/Q1/002) was completely missing, there'd be no change in the results.
    Attached Files Attached Files

+ 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. [SOLVED] Merge name against unique group and get max value for group
    By pnnaik in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-20-2015, 10:02 AM
  2. Replies: 4
    Last Post: 12-17-2012, 10:14 AM
  3. [SOLVED] Record if there is any text in a group of cells
    By u5e10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2012, 11:43 AM
  4. [SOLVED] VBA for insert total line after one group of record
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2012, 07:18 AM
  5. [SOLVED] Unique Record sum
    By LRFT in forum Excel General
    Replies: 7
    Last Post: 07-18-2012, 01:23 PM
  6. Unique Record
    By sumonrezadu in forum Excel General
    Replies: 4
    Last Post: 08-11-2009, 05:16 PM
  7. Replies: 0
    Last Post: 05-31-2005, 07:05 PM

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