+ Reply to Thread
Results 1 to 4 of 4

Need to delete the empty line

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2007
    Posts
    5

    Need to delete the empty line

    Hi, I get data1 with an empty line between them, and I want to match them to data2 without space between lines, so should I remove the sapce betwenn lines first (I don't know how) and then match them to data2 (I also don't know how to match them except of ex: B1=D1)

    Thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Need to delete the empty line

    You could delete the empty lines using Autofilter. Filter one of the columns on blank, select the visible rows and delete them.

    With regard to matching them, you could use VLOOKUP if you want to return information or just use COUNTIF if you only need to know if there is a match

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-28-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need to delete the empty line

    Thanks I appreciate your help

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Need to delete the empty line

    You don't need to get rid of the blank rows if you don't want/need to.

    If the values you are comparing are in column A in each sheet, then this will indicate Match/No Match

    =IF(A1="","",IF(COUNTIF(Data2!A:A,A1)>0,"Match","No Match")) and drag down.

    It will work regardless of whether there are blank rows or not.

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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