+ Reply to Thread
Results 1 to 8 of 8

Add criteria to existing formula and skip blanks if criteria not met and move to next cell

  1. #1
    Registered User
    Join Date
    07-06-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    8

    Add criteria to existing formula and skip blanks if criteria not met and move to next cell

    Hi all,

    Some very kind people helped me yesterday solve an issue, i now need to add more criteria to my existing formula but can't for the life of me get it to work!!
    Please see my data below. I am trying to list the date (without blanks rows), for all Mr Smiths with the out come Open and Percentage at 70 or higher.
    The formula i was given yesterday is:

    {=IFERROR(INDEX($C$13:$C$24,SMALL(IF($A$13:$A$24="mr smith",IF($B$13:$B$24="open",ROW($A$13:$A$24))),ROWS(E$13:$F13))-ROW($A$13)+1),"")}

    This worked great but unfortunately doesn't include my new criteria of percentage of 70 or higher...can anyone help?!

    Name Outcome Date Percentage Result
    Mr Smith Open 01.02.14 70 01.02.14
    Mr Brown Disqualified 01.02.14 70 04.02.14
    Mr Brown Qualified 01.02.14 70
    Mr Barnes Disqualified 01.02.14 70
    Mr Smith Open 02.02.14 70
    Mr Brown Open 02.02.14 90
    Mr Smith Qualified 02.02.14 90
    Mr Smith Qualified 04.02.14 50
    Mr Smith Disqualified 04.02.14 30
    Mr Brown Qualified 04.02.14 100
    Mr Alexander Open 06.02.14 100
    Mr Barnes Qualified 06.02.14 70

    thanks in advance!

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    Hi,

    Can u post a workbook with sample (insensitive) data to work with?
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Registered User
    Join Date
    07-06-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    8

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    Hi,

    Please see data attached!

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    Is the percentage an actual percentage? It looks like an integer?

    Maybe this:

    =IFERROR(INDEX($C$13:$C$24,SMALL(IF($A$13:$A$24="mr smith",IF($B$13:$B$24="open",IF($D$13:$D$24>70,ROW($A$13:$A$24)))),ROWS(E$13:$F13))-ROW($A$13)+1),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    Quote Originally Posted by sprewett View Post
    Please see data attached!
    Now that I've seen your file...

    Array entered**:

    =IFERROR(INDEX(C:C,SMALL(IF(A$13:A$24="mr brown",IF(B$13:B$24="qualified",IF(D$13:D$24>70,ROW(A$13:A$24)))),ROWS(E$13:E13))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    try this out..

    check the attachment...
    easy and simple solution..



    Say thanks, click *
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-06-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    8

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    Hi all,

    That works perfectly, it's taken me ages to try and work that out! Lol!
    Thank you for your kind replies

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Add criteria to existing formula and skip blanks if criteria not met and move to next

    You're welcome. Thanks for the feedback!

+ 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 - Skip rows that dont meet criteria
    By AusBec in forum Excel General
    Replies: 7
    Last Post: 09-03-2014, 09:52 PM
  2. [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
  3. [SOLVED] Copy only When criteria met. Skip to next line if Criteria not met.
    By excellearner121 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-10-2014, 09:16 AM
  4. 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
  5. Need to move data that matches criteria in cell and move to new worksheet
    By panagle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:23 AM

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