+ Reply to Thread
Results 1 to 8 of 8

Finding Match in actual position.

  1. #1
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Finding Match in actual position.

    When we use Match function it returns the relative position of an item. And if we have same items in a data sheet the result mentioned first cell position repeatedly. My problem is,

    "Is it possible to get exact position of different cells?" For example, when 200 is mentioned in F2,F4,F5,F6 and F7 and we match 200 of E3 with this function [=Match(F2,E:E,0), the result returns 3, #N/A,3,3,3,3. But I want to get matching result in actual position like, 2,4,5,6,7.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Finding Match in actual position.

    In G2, paste this array formula.:

    =IFERROR(IF($D2="","",SMALL(IF($D2=$E$2:$E$90,ROW($E$2:$E$90)-ROW($D$2)+1),COLUMNS($A:A))),"")

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...n Drag across ( to at least column P) and then down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Finding Match in actual position.

    What version of Excel are you using?

    I see your file is in the *.xls format. So, Glenn's formula will not work in that file format.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Finding Match in actual position.

    Indeed!! Thanks Tony.
    If you are using 2003, you'll have to use this 'un:

    =IF(ISERROR(IF($D2="","",SMALL(IF($D2=$E$2:$E$90,ROW($E$2:$E$90)-ROW($D$2)+1),COLUMNS($A:A)))),"",IF($D2="","",SMALL(IF($D2=$E$2:$E$90,ROW($E$2:$E$90)-ROW($D$2)+1),COLUMNS($A:A))))

    also array-entered.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding Match in actual position.

    Modifying Glenn's formula for Excel 2003

    =IF(COUNTIF($E$2:$E$90, $D2)>= ROWS($A$1:$A1), ERROR(IF($D2="","",SMALL(IF($D2=$E$2:$E$90,ROW($E$2:$E$90)-ROW($D$2)+1),COLUMNS($A:A))),"")
    Still is an ARRAY formula so use cNTRL SHFT ENTER
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Finding Match in actual position.

    I am getting the message,"This function is not valid" and high lighting "....ERROR..."

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Finding Match in actual position.

    With which formula and in which version of Excel?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Finding Match in actual position.

    If you are using Excel 2007 or later use the formula in G2; if you are using Excel 2003, use the formula in S2. Array enter (as described above) and drag accross then down.
    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. Finding actual start of shift for employees
    By notsamsnead in forum Excel General
    Replies: 3
    Last Post: 05-20-2014, 09:08 AM
  2. Replies: 5
    Last Post: 12-21-2010, 10:25 AM
  3. How to make formula to calculate position per Schedule and actual time
    By wcedeno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2010, 12:03 PM
  4. finding position of number in text
    By momo123 in forum Excel General
    Replies: 9
    Last Post: 08-07-2009, 07:35 AM
  5. Finding the position of a value in an array
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2009, 06:06 AM
  6. Finding the position of a value in a matrix
    By jamesryan in forum Excel General
    Replies: 2
    Last Post: 04-27-2009, 02:47 PM
  7. Finding Column Position
    By Brian Mann in forum Excel General
    Replies: 1
    Last Post: 09-22-2005, 04:26 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