Results 1 to 7 of 7

Condensing multiple rows of a column into the blank cell above them

Threaded View

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    NC, USA
    MS-Off Ver
    2007-2013
    Posts
    4

    Condensing multiple rows of a column into the blank cell above them

    Data coming from a pivot table is being copied to a new page, my overall goal is to condense the years as follows into a single cell. There can be anywhere from 1-15+ years before the next blank cell and they are not always consecutive years. Editing the same column is prefered but if it is easier in a new column that is fine also.
    Cells are in General Format NOT Date (if that matters)

    So basicly:
    In a given range, (e.g. column in table, D2:D583)
    Is cell blank?
    n=count(cells between current blank and next blank)
    if n=1, cell=R[1]C
    if n>1, cell=R[1]C&"-"&R[n]C
    if n=0, end (would have ran off of table at this point)
    Year.png
    Deleting the individual years is not required, they can remain in the column as the entire row gets deleted in a later step of my macro
    Last edited by FreddyK; 07-25-2014 at 10:05 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Condensing Information From Multiple Rows Into One
    By JLV0108 in forum Excel General
    Replies: 1
    Last Post: 04-04-2014, 02:20 PM
  2. Condensing data in new sheet by removing blank rows
    By Ghost Of Casper in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2013, 05:54 PM
  3. Condensing multiple rows into 1
    By Shido151 in forum Excel General
    Replies: 9
    Last Post: 06-10-2013, 05:16 AM
  4. Copying and Condensing Column Data whilst removing blank cells...
    By musicman1985 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-23-2013, 12:04 PM
  5. Replies: 0
    Last Post: 09-26-2012, 01:23 PM

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