+ Reply to Thread
Results 1 to 3 of 3

ignore the rows of data that do not meet criteria and then put next result on next row

  1. #1
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    ignore the rows of data that do not meet criteria and then put next result on next row

    Hello I have a line of code

    Please Login or Register  to view this content.
    I want to do something like

    Please Login or Register  to view this content.
    however I get a error 424

    What i am trying to do is copy the data from .range("D" & r & ":J" & r).value there will be some gaps in the rows from this data as some will not meet the criteria

    On Sheet("Play") i want the data but without the blank rows. blank rows are the rows that the data does not match the criteria

    Is that possible ?


    Thank you or any help provided

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: ignore the rows of data that do not meet criteria and then put next result on next row

    Hello UltimateNeo,

    You said...
    What i am trying to do is copy the data from .range("D" & r & ":J" & r).value there will be some gaps in the rows from this data
    The variable "r" is the row in this range that spans columns "D:J". This is a single row with multiple columns. Did you mean gaps in the columns?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: ignore the rows of data that do not meet criteria and then put next result on next row

    Is this what you wanted?
    Please Login or Register  to view this content.

+ 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. Delete rows in data where column B doesn't meet criteria
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-01-2017, 11:58 AM
  2. Copy rows of data that meet date range criteria to new sheet
    By natik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2015, 09:58 PM
  3. Deleting Rows of Data that meet certain criteria
    By stlawr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 04:09 PM
  4. [SOLVED] Count of rows in an array that meet criteria in column 2 and different criteria in column3
    By reynoldslarry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2013, 01:51 AM
  5. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  6. Replies: 1
    Last Post: 01-29-2013, 09:31 AM
  7. Adding rows that meet a criteria and consolidating data
    By matador_73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2012, 07:06 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