+ Reply to Thread
Results 1 to 2 of 2

Skip the row if the logical test is false?

Hybrid View

ridgelyiv Skip the row if the logical... 02-23-2011, 03:21 PM
NBVC Re: Skip the row if the... 02-23-2011, 03:37 PM
  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Clifton Park,NY
    MS-Off Ver
    Excel 2007
    Posts
    1

    Skip the row if the logical test is false?

    Is there a way for the "IF" function to skip to the next row if the logical test returns "false"?

    I am trying to consolidate a list from a master that I can print out for the VP for anybody who has a value higher than 10,000. If they do not meet this criteria I want to completely skip their record (the entire row) and move on to the next one.

    Right now I have this:
    =IF('Master SoB Prospect'!G8>9999,'Master SoB Prospect'!B8&Pipeline!$F$3&'Master SoB Prospect'!A8,"")
    Which returns me "0" where I want the row to be skipped.

    I have seen some similar threads but none that deal with this problem outside of VB. Is there a way to solve this using the simple IF function. If not could someone try to please simplify the VB code.

    Thank you in advance for your help!

    -RH

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Skip the row if the logical test is false?

    Try something like:

    =IFERROR(INDEX('Master SoB Prospect'!B$2:$B$100&Pipeline!$F$3&'Master SoB Prospect'!$A$2:$A$100,SMALL(IF('Master SoB Prospect'!$G$2:$G$100>9999,ROW('Master SoB Prospect'!$G$2:$G$100)-ROW('Master SoB Prospect'!$G$2)+1),ROWS($A$1:$A1))),"")
    adjust ranges to suit, but try not to make them bigger than they need to be. and then confirm the formula with CTRL+SHIFT+ENTER not just ENTER and copy it down....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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