+ Reply to Thread
Results 1 to 5 of 5

If and criteria formula

  1. #1
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    If and criteria formula

    what i really need is that formula IN L1 , which will work like:

    if in K1 is a number >=1 and in J:J the last two numbers are 2 1 and the third from the end is not 3 show at L1 number 3 ,
    if in K1 >=1 and in J:J the last two numbers are 1 2 and the third from the end is not 3 show at L1 number 3 ,
    if in K1 >=1 and in J:J the last two numbers are 2 3 and the third from the end is not 1 show at L1 number 1,
    if in K1 >1 and in J:J the last two numbers are 3 2 and the third from the end is not 1 show at L1 number 1 ,
    if in K1 >=1 and in J:J the last two numbers are 3 1 and the third from the end is not 2 show at L1 number 2 ,
    if in K1 >=1 and in J:J the last two numbers are 1 3 and the third from the end is not 2 show at L1 number 2 .

    I will be so thankful,if you can help me . i know that is not easy.
    Last edited by louis128; 01-13-2019 at 06:34 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: If and criteria formula

    Hello,

    It's not quite clear what the order of the numbers is or should be, but here are a few pointers:

    get the last number of J:J =INDEX(J:J,MATCH(99^99,J:J,1))
    get the second last number of J:J =INDEX(J:J,MATCH(99^99,J:J,1)-1)
    get the third last number of J:J =INDEX(J:J,MATCH(99^99,J:J,1)-2)

    So, now you just need to create a nested IF statement. You can combine conditions with the AND() function.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: If and criteria formula

    Please attached file with the sample and the expected result.

  4. #4
    Banned User!
    Join Date
    09-04-2018
    Location
    cyprus
    MS-Off Ver
    2007
    Posts
    282

    Re: If and criteria formula

    i just made it.is working! thanks so much

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: If and criteria formula

    That's Great.

    I have the shortened version.

    =IF(K1>2,IFERROR(MATCH(1,--ISERROR(MATCH({1,2,3},INDEX(J:J,N(IF(1,COUNT(J:J)-{0,1,2}))),)),),),)
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 11-21-2018, 02:36 PM
  2. Replies: 4
    Last Post: 04-14-2017, 05:14 PM
  3. [SOLVED] Index and Two Match Criteria- meeting both criteria (need help to repair formula)
    By OilAndGasMan1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 10:56 PM
  4. Formula for summing on multiple row criteria and a dynamic column criteria
    By ianswilson815 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2016, 01:58 PM
  5. Replies: 3
    Last Post: 04-21-2015, 07:45 AM
  6. Replies: 7
    Last Post: 07-07-2014, 09:48 AM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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