+ Reply to Thread
Results 1 to 2 of 2

How to find blank rows of data - macro

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    How to find blank rows of data - macro

    I am writing to request a macro which can find missing rows of data from column E and F using the condition below:

    Macro condition:

    If a name (column D) has no ids in either columns (E or F) in one row and the same name, in another row has either one id or both, then highlight this variance.

    Please see the attachment below, for further reference (Please use the sample4 file, which is updated, as I am little unsure how to delete other files. So please ignore the other attachments (samepl3). Thanks.
    sample4.xlsm

    The attachment shows sample dataset with desired output highlighted.

    Thank you for your time and help.
    Attached Files Attached Files
    Last edited by missy22; 06-20-2014 at 06:45 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: How to find blank rows of data - macro

    D15 and D21 are not same . corrected by just copy pasting.

    what about D18. is it because it is only one row you did not color it

    you blanks are NOT ACTUAL BLANKS. WHAT DID YOU DO
    CHECK"
    in an empty cell type
    =isblanks(E2)
    you get FALSE
    This gave me lots of probloem
    WHY?????????
    I have corrected it with a macro -see vbeditor

    your sheet exacly your coloring is copied in second sheet "original missy sheet"
    sheet 1 is now the source data(activesheet) on which macros work. the macro removes original coloring and codes work.

    a main macro "test" gives what you want--not exactly.
    why did you not color rows 6 and 7
    and rows 19 and 20. either your conditions are not cler to me or there is some error you
    in your manual coloring.

    I am attaching the file


    IT IS ENOUGH IF YOU RUN "FINALMACRO"
    you are at liberty to modify tHe macros

    you cab tweak the codes by removing lines not required.

    ATTACHING THE FILE
    Attached Files Attached Files
    I am not an expert. better solutions may be available
    [email protected]

+ 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. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  2. [SOLVED] VBA Find last row and column that contain data and delete all blank rows and blank columns
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 01:07 PM
  3. [SOLVED] Find Last Row Containing Data (DO NOT count blank rows at the end)
    By ryanmorris in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 02:06 PM
  4. Excel 2003 - Macro to Find Page Range and Delete All Blank Rows
    By AnneL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2011, 04:50 PM
  5. macro to find first blank cell in rows and insert text
    By jlm13 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-21-2010, 06:27 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