+ Reply to Thread
Results 1 to 3 of 3

Formulas with Index, If, Match function

  1. #1
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    Formulas with Index, If, Match function

    Thanks for help in advance, this forum is the best

    I will add an attachment of what I would like to achieve.

    Im lost with what to do with this formula.

    I have learned a little about Index Function, but not sure which functions to use with my numbers

    Can someone help with this?

    I have a column of random 3 digit numbers from 000 to 999. Examples: 326, 459, 846, 342, 267, etc.

    I want to return Yes or No in 3 different columns beside the column with the 3 digit numbers.

    the complicated part is:

    The first column I want the formula to look at the last number in column of 3 digit numbers and see if one of its 3 digit matches the cell right above it.
    Example would be the Last 3 digit number is 580, the number right before it is 256, so the formula would return a "Yes" because one of the 3 digit numbers (580) match the other 3 digits in cell right above it (256) the matching digit is 5. It doesn't matter if two or all three numbers match, it would still return "Yes"
    Also this would continue for future numbers, always looking at number right above the last 3 digit number for a matching digit and return "Yes" or "No"

    The second column formula would be same as first except it would look at the 4th cell above it for a matching number.
    Example would be last number in column of 3 digit numbers is 580, the 4th number above it is 432, so the formula would return "No" in the 2nd column

    The same for the last column which is looking at the 7th number above the last 3 digit numbers column.
    See attachment for examples
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Formulas with Index, If, Match function

    Hi Brian- Here's a formula that uses the MID, SEARCH, and ISERROR functions. All cells are similar, varying only by cells checked against.
    MID extracts each digit, SEARCH looks for it. If not found, SEARCH returns #VALUE, which makes ISERROR true (=1). 3 errors means NO match.

    Paste this in B9:
    =IF(ISERROR(SEARCH(MID($A9,1,1),$A8))+ISERROR(SEARCH(MID($A9,2,1),$A8))+ISERROR(SEARCH(MID($A9,3,1),$A8))=3,"No","Yes")
    Paste this in C9:
    =IF(ISERROR(SEARCH(MID($A9,1,1),$A5))+ISERROR(SEARCH(MID($A9,2,1),$A5))+ISERROR(SEARCH(MID($A9,3,1),$A5))=3,"No","Yes")
    Paste this in D9:
    =IF(ISERROR(SEARCH(MID($A9,1,1),$A2))+ISERROR(SEARCH(MID($A9,2,1),$A2))+ISERROR(SEARCH(MID($A9,3,1),$A2))=3,"No","Yes")

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 05-15-2017 at 12:59 AM.

  3. #3
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    Re: Formulas with Index, If, Match function

    Thank you Lee
    My problem was solved very quick by you with no issues.

    Great Job

    Thanks Again,
    Brian

+ 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. Help with Index and Match formulas...
    By Setheroth in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2015, 10:34 PM
  2. [SOLVED] Index/Match Formulas
    By Nuccio92 in forum Excel General
    Replies: 1
    Last Post: 07-06-2015, 07:24 PM
  3. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  4. INDEX and MATCH formulas
    By jls141 in forum Excel General
    Replies: 34
    Last Post: 04-20-2012, 11:07 AM
  5. INDEX / Match formulas
    By Sophster in forum Excel General
    Replies: 7
    Last Post: 03-11-2011, 01:21 PM
  6. index and match formulas
    By bstormes in forum Excel General
    Replies: 1
    Last Post: 04-23-2010, 01:28 PM
  7. Index & Match Formulas
    By Fatnslow in forum Excel General
    Replies: 2
    Last Post: 10-08-2009, 02:14 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