+ Reply to Thread
Results 1 to 6 of 6

Look up and sequence multiple values

  1. #1
    Registered User
    Join Date
    05-29-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Look up and sequence multiple values

    Hi Folks,

    New to the site ...thanks so much for all the contributions.

    I have a (race/lap) spreadsheet that has the following (Note: square brackets [text] are to isolate examples and not in the actual formulas) :

    - Sheet 1 (Registration): Manually entered race number (Plate #; Column B), racer info (name, etc) and Number of Laps pulled from "Laps" sheet [=SUMIF(Laps!B7:B500,'Registration List'!B6,Laps!C7:C500)] and Total Race time pulled from race sheet [{=MAX(IF(Laps!B7:B500='Registration List'!B6,Laps!E7:E500))}]

    - Sheet 2 (Laps): Enter initial value (0) in "B7" to start race time [=IF(B7<>"",IF(D7="",NOW(),D7),"")]; and manually enter Racer "Plate #" (Column B) each time racer crosses the line; formula collects the "lap" [=IF(B8<>"",IF(D8="",NOW(),D8),"")] and associated times [=IF(B7<>"",IF(D7="",NOW(),D7),"")] and elapsed race time [=IF(D8<>"",D8-$D$7,"")]

    - Total laps are "counted" and displayed next to racer's info and racer's last (MAX) time is pulled into the "Registration" sheet to show racer's Total race time (see above)

    Ideally, I would like to pull the individual lap times for each racer as well, but this is where I start to get lost ...

    Plate # may occur multiple times in Column B w' associated lap times ... I'd like to isolate the Plate #s (e.g., 41) and pull out the elapsed time for EACH lap. More specifically:

    Start time: 12:00
    Plate #41:
    Lap 1 (12:30:00) ... 00:30:00
    Lap 2 (13:01:02) ... 00:31:02
    Lap 3 (13:33:05) ... 00:32:03
    ... etc for each racer

    Hope I provided enough information ... looking forward to your thoughts. Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Look up and sequence multiple values

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-29-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Look up and sequence multiple values

    Attached (updated) SAMPLE spreadsheet w' desired results ... thanks
    Attached Files Attached Files
    Last edited by Macky70; 05-31-2017 at 08:30 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Look up and sequence multiple values

    See Sheet1

    in B1

    =Laps!D7

    in B5

    =IFERROR(INDEX(Laps!$D$8:$D$1000,SMALL(IF(Laps!$B$8:$B$1000=$B$3,ROW(Laps!$D$8:$D$1000)-ROW($D$8)+1,""),ROWS($D$8:D8))),"")

    ...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 your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy down

    in C5

    =IFERROR(B5-B1,"")

    in C6

    =IFERROR(B6-B5,"")

    Copy down

    There is no check for lap nos: assumption is times are in lap "sequence"
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-29-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Look up and sequence multiple values

    Seems to work - thanks so much!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Look up and sequence multiple values

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Creating a sequence according to matrix values
    By simz92 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-04-2017, 06:45 AM
  2. Vlookup to get Values for repeated sequence
    By awesomeapoo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2016, 02:30 PM
  3. Find a short-sequence in a longer sequence (Clash Royale Chests Challenge)
    By GeneralDisarray in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2016, 12:20 PM
  4. Values in Sequence
    By abhi.shukla15 in forum Excel General
    Replies: 2
    Last Post: 07-06-2015, 02:50 AM
  5. Replies: 7
    Last Post: 06-08-2015, 08:39 AM
  6. [SOLVED] align or combine multiple columns from multiple sheets into one sheet in sequence
    By calif in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 11:49 AM
  7. Adding Sequence # to a duplicate values
    By aravindhan_31 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2010, 11:55 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