+ Reply to Thread
Results 1 to 3 of 3

Really hard!!! Copy data from column B to C and add empty cells.Please see example.

  1. #1
    Registered User
    Join Date
    09-26-2015
    Location
    london
    MS-Off Ver
    10
    Posts
    14

    Really hard!!! Copy data from column B to C and add empty cells.Please see example.

    Hello
    I have text data in column A and B. What I'm trying to do is copy data from column B to C. But if A(n)<>A(n-1) then I need to add extra blank cell into column C.
    Please see example below.


    Column A.......................Column B.................................OUTPUT Column C
    TEXT1.........................."cell B1 is always empty" ..........."empty cell"
    TEXT1..........................Random Text A......................... Random Text A
    TEXT2..........................Random Text B.........................."empty cell on transition from TEXT1 to TEXT2" note... If(A3<>A2, Then empty cell)
    TEXT2..........................Random Text C..........................Random Text B
    TEXT3..........................Random Text D.........................."empty cell on transition from TEXT2 to TEXT3"
    TEXT3..........................Random Text E.......................... Random Text C
    TEXT3......................... Random Text F.......................... Random Text D
    TEXT4..........................Random Text G.......................... "empty cell on transition from TEXT3 to TEXT4"
    TEXT4..........................Random Text H............................Random Text E
    TEXT4..........................Random Text I.............................Random Text F
    TEXT2..........................Random Text J............................."empty cell on transition from TEXT4 to TEXT2"
    TEXT2..........................Random Text L..............................Random Text G
    TEXT5..........................Random Text M............................."empty cell on transition from TEXT2 to TEXT5"
    TEXT5..........................Random Text N............................. Random Text H
    . . .
    . . .
    . . .

    *"Dots are used just to properly format text."

    So basically every time A(n) <> A(n-1) then C(n) = "empty cell"
    If A(n) = A(n-1) then write next text string from column B into cell C(n)

    Hopefully I'm clear enough. It is quite hard to explain it properly.


    Thank you very much.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Really hard!!! Copy data from column B to C and add empty cells.Please see example.

    Perhaps try
    If does not work, attach a file to show the data and the result
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    09-26-2015
    Location
    london
    MS-Off Ver
    10
    Posts
    14

    Re: Really hard!!! Copy data from column B to C and add empty cells.Please see example.

    Thank you very much PCI. It works exactly as I need.

+ 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: 0
    Last Post: 07-03-2015, 03:30 AM
  2. Copy data and paste to another column incrementing that column to next empty cell
    By edens2021 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 11:43 AM
  3. [SOLVED] Copy all cells in column that contain data & paste to first empty row of another column.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 08:45 AM
  4. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  5. Copy and paste data if row in Column N is empty.
    By Hopper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2009, 03:25 PM
  6. Copy a formula to cells in column A which don't have an empty cell in column B
    By floep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2006, 04:57 AM
  7. [SOLVED] How to copy data to the next empty cell in a column
    By suruukko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2006, 07:40 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