Consulting

Results 1 to 5 of 5

Thread: Manipulate data in range

  1. #1
    VBAX Newbie
    Joined
    Feb 2007
    Posts
    2
    Location

    Manipulate data in range

    Hi there,

    How do i manipulate a range so that i can ignore certain cells based on the variable criteria without affecting the data in the range.

    If the cells don't meet the criteria i don't want the cell to be set to zero or deleted, i just want the cells skipped

    For example I want to search through two data series (Range A, Range B). Anything which does not meet my criteria in Range A, i want the 2 rows skipped in both Ranges A & B.

    Thanks

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Are range A & B columns?

    If the cells don't meet the criteria i don't want the cell to be set to zero or deleted, i just want the cells skipped
    what criteria?

    I am really lost as to what your trying to do...could you upload a small workbook with 2 sheets. One with the data as is and the second with the kind of results you wish to accomplish. Put a few notes in so we can see what your trying to do.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Newbie
    Joined
    Feb 2007
    Posts
    2
    Location
    Hi lucas,

    I want to be able to sort through the 2 ranges of data in Ranges A & B.
    The condition is searching for all values only in RangeA which are greater than 3. If there are numbers which are <3 in RangeA, ignore that cell and the corresponding cell in RangeB.
    Place the results in a temorary range/array as I don't want the actual cells to be deleted from the worksheet.

    Please see the attached worksheet with the example.

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    This should get you started
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    If you wish to start the copy in a particular cell change this:
    [vba]Row = Sheets("Sheet1").Range("A65536").End(xlUp).Row + 1[/vba]
    to this(where A10 is where you wish to start the copy to)
    [vba]Row = Sheets("Sheet1").Range("A10").Row[/vba]
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •