+ Reply to Thread
Results 1 to 4 of 4

combine lines

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    USA
    Posts
    2

    combine lines

    Is there a way to combine the lines of a spreadsheet if the first coloum is the same, but coloum b,c has different data?

    see attachment for info

    Line 1-3 is the same in coloum a

    but i want it to look like line 9 since coloum A is the same..
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    
    b9=INDEX(B$1:B$8,MAX(IF(($A$1:$A$8="hello")*(B$1:B$8>0),ROW(B$1:B$8))))
    Then copy to right, or copy down.
    I need your support to add reputations if my solution works.


  3. #3
    Registered User
    Join Date
    10-08-2008
    Location
    USA
    Posts
    2

    ???

    I'm not sure what this does and how I am supposed / where to add this code.. Iam not sure what you are saying..

    Myk3

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    1. Open your file "Book1"
    2. Go to sheet1, Cell b9
    3. Insert the following fomula


    
    =INDEX(B$1:B$8,MAX(IF(($A$1:$A$8="hello")*(B$1:B$8>0),ROW(B$1:B$8))))
    4. Ctrl + Shift + Enter.
    5. select B9 again, Copy,
    6. Select C9 D9, Paste
    7. Done

+ 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. Multiple lines in single cell
    By Bill Pearce in forum Excel General
    Replies: 5
    Last Post: 04-02-2015, 10:59 AM
  2. Pasting multiple lines of text into one cell
    By hoopz in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 08:28 PM
  3. Blank lines in array filled listbox
    By macquarl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2008, 12:42 PM
  4. Moving Vertical Lines
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2008, 09:50 PM
  5. Extracting specific lines from datasheet
    By SlipperyPete in forum Excel General
    Replies: 5
    Last Post: 12-21-2006, 10:54 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