+ Reply to Thread
Results 1 to 2 of 2

How to separate excel rows based on similar key data in rows

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Harrisburg, PA
    MS-Off Ver
    Excel 2003
    Posts
    11

    How to separate excel rows based on similar key data in rows

    For example I have 200 rows of data with the key being the first field e.g. 'Department ID'

    How do I separate and categorize the excel sheet in a way that it categorizes all the rows which have LIKE Department IDs and when it hits the next NOT LIKE row where Department ID is different, it creates a line or a blank row and starts with the 2nd set of department IDs.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to separate excel rows based on similar key data in rows

    To input a row, you'll need VBA. You can just format a red line using conditional formatting.

    Select your range (i.e A2:G201)
    Go to conditional formatting> Use a formula
    =$A2<>$A3 and format a lower border of a red line

    Will that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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