+ Reply to Thread
Results 1 to 8 of 8

Gap in every other cell

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Wink Gap in every other cell

    Hello

    I used merged cells and found out later that I can't sort so I have un-merged them.

    Now my data looks like this\/

    49522 GNL Responsive Time 1
    __________Completion Time 1
    49715 GNL Responsive Time 1
    __________Completion Time
    49994 URS Responsive Time 1
    __________Completion Time 1

    but I want it to look like this\/

    49522 GNL Responsive Time 1
    49522 GNL Completion Time 1
    49715 GNL Responsive Time 1
    49715 GNL Completion Time
    49994 URS Responsive Time 1
    49994 URS Completion Time 1

    It isn't a matter of copying and pasting or draging each number down holding ctrl as there are 5000 lines
    of data.

    Thanks for the help
    Last edited by Gappy; 06-11-2015 at 06:08 PM.

  2. #2
    Registered User
    Join Date
    11-15-2011
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Gap in every other cell

    Try placing this into a module:

    Please Login or Register  to view this content.
    Last edited by Bradleybww; 06-11-2015 at 06:43 PM.

  3. #3
    Registered User
    Join Date
    06-11-2015
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Re: Gap in every other cell

    I received this error when de-bugging

    x(2) = "Completion" = <Subscript out of range>

  4. #4
    Registered User
    Join Date
    11-15-2011
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Gap in every other cell

    The error probably occurs on a row where there is no matching "Responsive Time". See what value xlRow has and you may need to insert a row to follow the scheme of Responsive then Completion Time as demonstrated above. In other words, every Completion Time has to have a Responsive Time in the prior row.

    If that is not the case then please let me know.

  5. #5
    Registered User
    Join Date
    06-11-2015
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Re: Gap in every other cell

    The data definitely follows the order Responsive then Completion the xlRow value = 0
    forgive me, my coding knowledge is very low.

    I have attached a screen shot to make sure we are on the same page

    Untitled.png

    Thanks again

  6. #6
    Registered User
    Join Date
    11-15-2011
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Gap in every other cell

    Can you attached the actual workbook you are using because xlRow should never be 0 inside of the for loop.
    Last edited by Bradleybww; 06-12-2015 at 11:55 AM.

  7. #7
    Registered User
    Join Date
    06-11-2015
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Re: Gap in every other cell

    Book1.xls

    Thanks

  8. #8
    Registered User
    Join Date
    06-11-2015
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    14

    Re: Gap in every other cell

    I figured out I'm a total retard ha.

    In a separate column I just did this:

    =a1
    =a1
    =a3
    =a3

    and dragged it down, then I copied the data and pasted into column A.

    Hurr Durr why didn't I think of this earlier?

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  3. Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  4. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  5. Replies: 1
    Last Post: 11-03-2012, 09:05 PM

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