+ Reply to Thread
Results 1 to 5 of 5

match data in certain ranges

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    54

    match data in certain ranges

    Hi all, I have a fomular that matches the data in certain range (in the code is "W17") to another (in the code is $S$12:$S$3054 ) with some error.
    The error is determined in "$AP$35".


    Please Login or Register  to view this content.

    My problem is I want to match the data that is not in the same area (I am not sure how to call it), for example


    Please Login or Register  to view this content.


    In the example I want to match "W17" (with the error in $AP$35) to $S$12:$S$3054 and $T$12:$T$3054



    but the code is not working, so can anybody help me for this?


    Any help would be appreciated.
    Last edited by copythat; 11-20-2011 at 06:17 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: match data in certain ranges

    Hi copythat
    a sample workbook would be handy
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: match data in certain ranges

    Hello Pike,

    I already posted the example file and hope it's clear.

    Thanks,

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: match data in certain ranges

    Hi copythat

    An If function can be used to swtich columns if these is no match


    =IF(ISNUMBER(INDEX($A$2:$A$6,MATCH(1,INDEX(($C$2:$C$6>=A2-$H$2)*($C$2:$C$6<=A2+$H$2),0),0))),INDEX($A$2:$A$6,MATCH(1,INDEX(($C$2:$C$6>=A2-$H$2)*($C$2:$C$6<=A2+$H$2),0),0)),INDEX($A$2:$A$6,MATCH(1,INDEX(($E$2:$E$6>=A2-$H$2)*($E$2:$E$6<=A2+$H$2),0),0)))

  5. #5
    Registered User
    Join Date
    10-07-2011
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: match data in certain ranges

    Hello Pike,

    Thanks a lot for your kind help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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