+ Reply to Thread
Results 1 to 4 of 4

Clearing cells and deleting rows based on condition

  1. #1
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Clearing cells and deleting rows based on condition

    Hi all,

    Thanks for all the previous help I got from this forum.
    Hoping for a solution and my issue is as follows:
    I have a spread sheet from which I have to clear few cell values and delete few rows based on the following condition:
    Have attached 2 workbooks with the sample datas and output desired.
    I need macro to do these conditions.

    1) condition for sample.xls file:
    when column F contains 'X' and the values in columns V,W,Z,AE,AG in one row =(equals) to the values in columns K,L,O,T,U and contains 'X' in column G in some other row then
    remove the row with 'X' in F column and clear the values in columns K,L,O,T,U,G(contains 'X') and write 'X' in F column.

    2) condition for sample1.xls:
    when column G contains'X' and the values in K,L,O,T,U in one row =(equals) to the values in columns V,W,Z,AE,AG and contains 'X' in column F in some other row then
    remove the row with 'X' in F column and clear the values in columns K,L,O,T,U,G(contains 'X') and write 'X' in G column.

    In the attached workbooks, have included the desired output for these 2 conditions.
    http://www.box.net/files#/files/0/f/...2/sample_files

    Here is the link to the sample files.

    Hoping for a solution.
    Thanks in Advance.
    Last edited by vijay2482; 01-14-2010 at 05:15 AM.
    VIjay

    If you find any of the post useful to your question, please add to the contributor's reputation by clicking the blue scales icon in the blue bar of the post.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Clearing cells and deleting rows based on condition

    Please attach your files here...GO ADVANCED and use the paperclip icon.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Clearing cells and deleting rows based on condition

    JBeaucaire

    thanks for your reply.
    please find the attached samples and give a solution.

    Vijay
    Attached Files Attached Files

  4. #4
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Clearing cells and deleting rows based on condition

    Hi all,

    Someboby please help to finda solution of the above issue.

    Thanks

+ 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