+ Reply to Thread
Results 1 to 3 of 3

Rearange data from sheet 1 on sheet 2

  1. #1
    Registered User
    Join Date
    05-13-2019
    Location
    Netherlands
    MS-Off Ver
    O365 latest
    Posts
    1

    Rearange data from sheet 1 on sheet 2

    Hello,

    I have a sheet of data, containing names, residence and some other stuff.

    On sheet 2 i would like to get "tables?" so the names are grouped on residence.

    See the test.xlsx to clarify what i mean. I have no clue on how things are named in excel so i have also no clue on what to search for in google.

    Thanks,
    Jazzery
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Rearange data from sheet 1 on sheet 2

    See the attached file, where I have put this formula in D2 of Sheet1 (coloured blue):

    =IF(B2="","-",B2&"_"&COUNTIF(B$2:B2,B2))

    and then copied this down to beyond your data. In Sheet2 I have arranged the tables to go across with the location headings in C1, F1, I1 and L1, and then used these formulae in the cells stated:

    C2: =IFERROR(INDEX(Sheet1!$A:$A,MATCH(C$1&"_"&ROWS($1:1),Sheet1!$D:$D,0)),"")

    D2: =IFERROR(INDEX(Sheet1!$C:$C,MATCH(C$1&"_"&ROWS($1:1),Sheet1!$D:$D,0)),"")

    These formula can be copied down as far as required (until you start to get blanks), and then the block of formulae can be copied across to generate the other tables.

    I've attached the file, so that you can see the formulae in your regional language.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Rearange data from sheet 1 on sheet 2

    I don't know how you want to deal with these going forward but I think Pivot Table do the job.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Rearange Data to use PivotTable
    By brisardo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2017, 04:56 AM
  2. Replies: 3
    Last Post: 12-15-2015, 05:04 PM
  3. [SOLVED] Rearange the data in a table to fit another format
    By masben in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2015, 03:36 PM
  4. [SOLVED] Rearange an inventory sheet or scan it to the wanted arangement.
    By Armand0 in forum Excel General
    Replies: 3
    Last Post: 03-03-2014, 11:36 AM
  5. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  6. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 PM
  7. vba code to rearange data
    By joshuamccann in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2010, 03:41 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