+ Reply to Thread
Results 1 to 6 of 6

Repeat text in a range of cells in between defined cells in another column?

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Repeat text in a range of cells in between defined cells in another column?

    Hello,

    I have a file connected to a data source that contains a couple tables separated by blank rows and specific text. The first table shows check out times and the second check in. I am attempting to add a column to this data specifing OUT or IN. Ref the attached example: The Equipment Check Out Text is always present so I was thinking to use this as a starting point, then use a do until Equipment Check In text to add this, but I am struggling with defining the starting Row-Col parameter, and then repeating this for the IN cells. I am using index match functions to retrieve the data for further use.

    I originally had this broken up into two tables, which made it a lot easier, but the Report generated date and time information is separate, making me have three separate table queries. I would also add that the two tables are dynamic and that one can be only as many rows as the row count of the tables combined.

    Any help is greatly appreciated.

    Thanks,
    Curtis
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Repeat text in a range of cells in between defined cells in another column?

    So what's the expected result?

    If there is Asset ID in both tables and IN has later datetime, then it's IN?
    And only appears in Out then OUT and vice versa?
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Repeat text in a range of cells in between defined cells in another column?

    The expected result is highlighted in yellow. In this example, column D would show OUT for D18:D48 and IN for D56:D114.
    Status can be either way and only shows up in one table or the other. The date time is a status change time.

    Sorry, didn’t realize the yellow cells were empty.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Repeat text in a range of cells in between defined cells in another column?

    Something like below?

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Repeat text in a range of cells in between defined cells in another column?

    Try
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Repeat text in a range of cells in between defined cells in another column?

    Both work flawlessly, thanks you for your time!

    Curtis

+ 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. [SOLVED] Copy Defined Range of Cells Based on Value in One Column
    By Deano30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2015, 05:30 PM
  2. [SOLVED] Cocatenate Range of Cells in a column, remove blank cells, and stack text in a cell
    By paxile2k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2014, 07:47 PM
  3. [SOLVED] analyze cells of text-return defined text phrase if all cells have same text
    By vtwinsport in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2014, 09:30 PM
  4. Replies: 2
    Last Post: 04-17-2014, 03:30 PM
  5. Merge data from cells on 2nd columns in which the cells of 1st column repeat
    By jagke in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2013, 01:06 PM
  6. [SOLVED] Macro to repeat action too a range of cells with assending numbers in the cells.
    By 2k05gt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2012, 02:13 PM
  7. Filling a range of cells defined by input into a text box
    By Zeke XA3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2006, 07:37 AM

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