+ Reply to Thread
Results 1 to 9 of 9

Return row & column number from cell in 2d array

  1. #1
    Registered User
    Join Date
    08-17-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    27

    Return row & column number from cell in 2d array

    Hi Guys & gals,

    I should say firstly that I've tried searching for a solution within the forum but with no luck, although that could just be my searching!

    I have a sheet (attached) that collates all of the pit stops during a motor race. A2:A27 = race positions, B1:AY1 = lap, the table itself contains the car numbers.

    I would like to be able tabulate the point at each car made its FIRST stop (cars could make more than one). i.e. Enter the car number into cell D29 and have the position (D30) and lap pit stop occurred (D31) returned.

    initially I thought that this was a simple problem but lots of google searches later suggests otherwise. Any advice would be much appreciated.

    RanaldPitStops_01.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Return row & column number from cell in 2d array

    May be this in D29 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-17-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Return row & column number from cell in 2d array

    Hi Sixthsense,

    That isn't quite what I need. Rather than have two inputs (D30 & D31 in your equation) I would like to search using just one, the car number (entered into D29).

    So, for instance if I were to enter 15 into cell D29 I would like D30 = 8 (position) and D31 = 11 (lap)

    Thanks,

    Ranald

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,287

    Re: Return row & column number from cell in 2d array

    Take a look at this for different search actions
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Return row & column number from cell in 2d array

    Position
    Please Login or Register  to view this content.
    Lap
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-17-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Return row & column number from cell in 2d array

    Thank you for you're replies guys.

    Whilst these are not solutions I've tried I they don't seem to work sadly. I think the problem is that there may be more than one possible entry for each value (i.e. each car may stop more than once). This I think does for your solution particularly Pepe.

    Edit:
    On further looking at your examples popipipo I think the last one may do. I'll have a quick go with it and get back.



    Ranald
    Last edited by ranald; 03-13-2013 at 10:34 AM.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,287

    Re: Return row & column number from cell in 2d array

    Is this an alternative?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-17-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Return row & column number from cell in 2d array

    That's great bu not quite what I need. I really would like to tabulate the results for each car# as a quick lookup.

    The final suggestion in your previous suggestion works however Excel gives up and returns an 'Excel ran out of resources' message when I place the equation in the full workbook (PitStops_1 is just an example). Do you have any suggestions as to how I can over come this by reducing/simplifying the following?

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,287

    Re: Return row & column number from cell in 2d array

    I dont have any other suggestion.
    What I do know is that a array formula doesn't work on large ranges.
    Dont make the ranges in the formula larger than needed.

+ 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