+ Reply to Thread
Results 1 to 2 of 2

Start new row If cell contains "SOC" and merge all rows until next instance of "SOC"

  1. #1
    Registered User
    Join Date
    08-09-2021
    Location
    Canada
    MS-Off Ver
    Canada
    Posts
    1

    Red face Start new row If cell contains "SOC" and merge all rows until next instance of "SOC"

    Hey there!

    Long time lurker, new poster

    I am trying to help clean up data in an attempt to streamline a data entry input process for ordering.

    The report I receive is extracted from another program that's output displays key information across 3 and sometimes 4 rows (Dirty_Data.xlsx). This is because the vendor has tabs/spaces in the description that are copying and pasting. Unfortunately I need it to be on 1 row so I can copy and paste it into my ordering program.

    Every new row of information starts with "SOC". I have attached what the data should turn into in a perfect world (test_clean_copy.xlsx)

    The first entry to every row would start with Column A, then Column B, then Column A again, and again, and possibly again, until there is a number value in column B, then it would be B, C, D, E, F, G.

    Apologies if my verbiage makes this one harder to help with, I can clarify anything, thank you in advance for any help or guidance!

    Happy Monday
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Start new row If cell contains "SOC" and merge all rows until next instance of "SOC"

    Hello FriendlyBear and Welcome to Excel Forum.
    The following seems to work for most instances:
    1. For the "SOC" cells in column J: =IFERROR(INDEX(A$1:A$26,AGGREGATE(15,6,ROW(A$1:A$26)/(LEFT($A$1:$A$26,3)="soc"),ROWS(A$1:A1))),"")
    2. For the cells in column K:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. For columns L:Q =IF(J8="","",INDEX(B$3:B$28,AGGREGATE(15,6,ROW(B$1:B$26)/(ISNUMBER($B$3:$B$28)),ROWS(B$1:B1))))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 1
    Last Post: 09-21-2013, 03:18 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