+ Reply to Thread
Results 1 to 4 of 4

Formula to Skip row and move to the next if criteria is not met

  1. #1
    Registered User
    Join Date
    04-10-2017
    Location
    Long Island
    MS-Off Ver
    2016
    Posts
    2

    Formula to Skip row and move to the next if criteria is not met

    Hello all,

    Not sure how to word this appropriately.

    I am trying to fill in consecutive rows with data from another sheet that has a column with an X in it to mark its more important. How can I do this so if the first row does not have the "x", it will move to the next row. Then once the next one is found, move on to the next row without copying the data already marked in the first row.

    I was going to try to use vba, but this sheet will also be used on google sheets. Which to my understanding, that code will not work on googlesheets.

    Data Sheet
    Row
    1
    2x
    3x
    4
    5x

    new sheet
    Row
    1,2x
    2,3x
    3,5x

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Formula to Skip row and move to the next if criteria is not met

    You could use a helper column (C) in the first sheet with this formula in C2:

    =IF(B2="x",MAX(C$1:C1)+1,"-")

    copy this down as far as you like.

    Then in the second sheet you could have this formula in A2:

    =IFERROR(INDEX(Sheet1!A:A,MATCH(ROWS($1:1),Sheet1!$C:$C,0)),"")

    which you can copy into B2, and then copy those two formulae down until you get blanks.

    The attached file illustrates.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-10-2017
    Location
    Long Island
    MS-Off Ver
    2016
    Posts
    2

    Re: Formula to Skip row and move to the next if criteria is not met

    Hey Pete,


    Sorry for the delay on getting back. That Did Work. I appreciate your help!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Formula to Skip row and move to the next if criteria is not met

    You're welcome - glad to help.

    Pete

+ 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. If Formula to skip down if criteria is not met
    By skate1991 in forum Excel General
    Replies: 4
    Last Post: 11-19-2014, 07:32 AM
  2. IF formula - Skip rows that dont meet criteria
    By AusBec in forum Excel General
    Replies: 7
    Last Post: 09-03-2014, 09:52 PM
  3. Replies: 7
    Last Post: 07-07-2014, 09:48 AM
  4. [SOLVED] Skip cells and move onto next cell that don't meet criteria using IF fucntion in Excel
    By sprewett in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2014, 07:49 AM
  5. Move rows up in the sheet and skip printing
    By flavio in forum Excel General
    Replies: 1
    Last Post: 07-17-2013, 09:30 PM
  6. Formula to skip a cell if it does not meet criteria
    By viciann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2013, 12:17 AM
  7. how do I skip a cell and move on to the next one?
    By Darkflame808 in forum Excel General
    Replies: 4
    Last Post: 08-08-2009, 12:02 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