+ Reply to Thread
Results 1 to 11 of 11

How to use MATCH() to reference a row number with its column location

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    PA, USA
    MS-Off Ver
    2007
    Posts
    7

    How to use MATCH() to reference a row number with its column location

    The MATCH() command produces a row number. Is there a way to use that row number to reference a cell? For example, instead of typing A3 can you type the A and use the match commmand to be the 3? I tried using ADDRESS() at first but for some reason I could not get that command to work. If I can figure out this problem my entire spreadsheet will work.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: How to use MATCH() to reference a row number with its column location

    =INDIRECT("A" & Match())

    Use indirect(), replace my Match() with whatever match function you were using and "join" it to the "A" with an ampersand
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to use MATCH() to reference a row number with its column location

    What is the end result should be?
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: How to use MATCH() to reference a row number with its column location

    Need more info.

    MATCH returns the RELATIVE position of the lookup value within an array.

    Ram
    Sam
    Pam
    Lam
    Tam
    Jam
    Bam

    =MATCH("Pam",Array,0) = 3

    Pam is the 3rd element of the array.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    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
    43,959

    Re: How to use MATCH() to reference a row number with its column location

    Posted this in the wrong place...
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to use MATCH() to reference a row number with its column location

    I would use INDEX

    =INDEX(A1:A100,MATCH(....))

    As Tony pointed out, Match returns the relative position # of the matching value in the lookup range.
    Not necessarily the actual Row#.

    Make sure both the A1:A100 and the range used in the Match function use the same row #s.

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How to use MATCH() to reference a row number with its column location

    =INDIRECT(CONCATENATE("A",MATCH(xx,xx:xx,x)))

  8. #8
    Registered User
    Join Date
    07-01-2014
    Location
    PA, USA
    MS-Off Ver
    2007
    Posts
    7

    Re: How to use MATCH() to reference a row number with its column location

    = MATCH("B","A" & INDIRECT("A"&MATCH("A",'input off vb scout'!AB1:'input off vb scout'!AB1000)):'input off vb scout'!AB1000,0)
    Is that what you were saying?
    Excel is telling me that the array is volatile

  9. #9
    Registered User
    Join Date
    07-01-2014
    Location
    PA, USA
    MS-Off Ver
    2007
    Posts
    7

    Re: How to use MATCH() to reference a row number with its column location

    = MATCH("B","A" & INDIRECT("A"&MATCH("A",'input off vb scout'!AB1:'input off vb scout'!AB1000)):'input off vb scout'!AB1000,0)
    Is that what you were saying?
    Excel is telling me that the array is volatile...

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to use MATCH() to reference a row number with its column location

    What's the formula you were using before you decided to use match to vary the row #?

    In other words, what would the formula ultimately look like with a Hard Coded Row# ?

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

    Re: How to use MATCH() to reference a row number with its column location

    Explain in words what you're wanting to do.

    Be very specific.

+ 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. Dynamic Index/Match function when column location is unknown?
    By ac1987 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2014, 09:47 PM
  2. Replies: 1
    Last Post: 02-21-2013, 05:49 PM
  3. Replies: 4
    Last Post: 02-19-2013, 02:19 PM
  4. Replies: 7
    Last Post: 07-17-2011, 09:49 AM
  5. Replies: 1
    Last Post: 06-24-2010, 09:29 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