+ Reply to Thread
Results 1 to 2 of 2

rearrange by attribute,value row spacing

  1. #1
    Registered User
    Join Date
    12-29-2020
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    1

    rearrange by attribute,value row spacing

    I have received spreadsheets with many rows that are set up as lists of attribute and value but because not all rows have the same attributes the columns are not aligned similar to below. Is there a way in excel to align the columns where they are for the same attributes?

    this is what my spreadsheet looks like

    animal, dog, name, fido, color, brown
    animal, cat, name, sally, color, yellow
    animal, bird, wings, clipped, name, tweety, color, yellow

    as you can see the name attribute for them would fall into separate columns based on the number of attributes for each type of animal

    and I want this

    dog, fido, brown, ""
    cat, sally, yellow, ""
    bird, tweety, yellow, clipped

    Any ideas on how to align this information in excel? Thanks.

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: rearrange by attribute,value row spacing

    Hi nf1030,

    Here is my solution. I created a sorting solution using formulas on sheet 2. The formulas can be dragged down as far as you need, as well as across as long as you drag the across formulas IN PAIRS.
    Specifically meaning if you want more columns of information you will need to grab, say K4 and L4, then drag across together, then drag down the length of your list on sheet 1.
    In order to make a new category appear simply put the name in the appropriate column in row 1, like the examples I put in. Spelling must be exact however you can arrange them in any fashion.
    I made the following assumption: Your sheet1 began at row 4, so my formulas do as well. If your real data starts elsewhere you will need to adjust the formulas.
    When complete, you can copy/paste values on sheet2 if you wish.
    Squeaky.
    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. Sum of Two Attribute Greater than X
    By MoldyBread in forum Excel General
    Replies: 5
    Last Post: 11-16-2018, 01:47 AM
  2. VBA to Update XML Attribute
    By matrix2280 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2018, 01:46 PM
  3. How to map xml attribute from xml map with cell using VBA
    By kiryl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2018, 05:36 PM
  4. [SOLVED] Get Webpage XML Value/attribute
    By avinash11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2016, 04:49 AM
  5. attribute VB_usermemid=0
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 08:51 PM
  6. Rows Spacing, Column Spacing
    By Pukka83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2008, 12:05 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