+ Reply to Thread
Results 1 to 6 of 6

Match with a range

Hybrid View

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    99

    Match with a range

    Hi

    I Have this formula =IF(AND(EXACT($J2,$Z2),P2<=2,P2>=1),10,"") that works perfect, now i wish to add a Match formula to it with a range of 1 more and still be a match e.g 2&2=match or 3&2=match but 4&2=not a match.
    Can someone show me how i would go about adding this to the above formula.

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Match with a range

    Not sure I understand what you mean.... What are 2&2 and 3&2 etc.? What are you looking to match? Maybe a workbook with some sample data would help...

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Match with a range

    I have added a sheet with formula in it, i reqiure (adding column B to the formula) as a match formula but with a range of one more. you will see that Cell B1 has 8 and B2 has 7 this is a match because it is in range of B2 by one more. There are only two possible matches, a straight match or a match within a range of one of Cell B2.
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Match with a range

    Not sure exactly what you want to achieve, but see if this is what you are trying to achieve.....

    =IF(AND(EXACT($A1,$A2),C1<=2,C1>=1,OR(B1=B2,B1=B2+1)),10,"")
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    01-16-2014
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Match with a range

    That is exactly it

    Thank you

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Match with a range

    You're welcome.

+ 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. [SOLVED] Index Match Match for weekly range
    By onemoremile in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2014, 04:46 PM
  2. [SOLVED] reference date time range, return the value into all cell that match datetime range
    By Jarvco13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2013, 10:39 PM
  3. [SOLVED] Dynamic Name Range using Offset&Match with Match based off a different column
    By mdlpjr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 06:33 PM
  4. match a cell in a range from a master range & then mark it in some way as matched
    By andrewsparrow in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2013, 03:38 PM
  5. Match values in a range with another range and copy the adjacent column
    By xelmac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 01:42 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