+ Reply to Thread
Results 1 to 7 of 7

Finding the result when looking up a value in a array with result from a choice of colums

  1. #1
    Registered User
    Join Date
    11-12-2014
    Location
    Cape Town
    MS-Off Ver
    2010
    Posts
    3

    Post Finding the result when looking up a value in a array with result from a choice of colums

    I'm trying to break down a chunk formula in smaller parts.

    I must find the value of time closest to time values in an array and the answer must be chosen from a different row. So here goes

    Male 10
    Age Cat GOLD SILVER BRONZE
    < 20 00:34:00 00:36:30 00:39:00
    20-34 00:34:00 00:36:30 00:39:00
    35-39 00:35:30 00:38:00 00:40:00
    40-49 00:36:30 00:39:00 00:41:00
    50-59 00:38:00 00:41:30 00:44:00
    60+ 00:40:00 00:44:30 00:48:30

    Sheet 1: I have data = distance, gender, age cat and time
    Sheet 2: I have above

    I must find/use on Sheet 1 distance, gender, age cat and time end, look up the time on sheet 2 [the data above] and my result must be Gold, Silver of Bronze.

    Example: Distance = 10; Gender = Male; Age cat = 40-49; time = 0:38:38 from Sheet 1. My result must be SILVER as 0:38:38 is slower than 0:36:30 but faster than 0:39:00

    This must be done for male and female, but I think if I got the concept, I can apply it everywhere.
    A mouthful, but if this possible in a formula

  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,208

    Re: Finding the result when looking up a value in a array with result from a choice of col

    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
    11-12-2014
    Location
    Cape Town
    MS-Off Ver
    2010
    Posts
    3

    Post Re: Finding the result when looking up a value in a array with result from a choice of col

    Attached. on sheet 1 is what I need to try and do
    Thanks
    Attached Files Attached Files

  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,208

    Re: Finding the result when looking up a value in a array with result from a choice of col

    I assume that the times relate to maximum allowed: so Male 40-49 in 10 KM must be less than or equal to 00:41:00 for the BRONZE i.e time 00:41:05 will not receive a "medal".

  5. #5
    Registered User
    Join Date
    11-12-2014
    Location
    Cape Town
    MS-Off Ver
    2010
    Posts
    3

    Post Re: Finding the result when looking up a value in a array with result from a choice of col

    correct, If 0:36:21 ==> Gold, if 0:38:00 ==> Silver, if 39:03 ==> Bronze.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Finding the result when looking up a value in a array with result from a choice of col

    Perhaps this will help.
    This proposed solution restructures the tables on sheet 2 into records.
    This proposed solution also employs a helper column on sheet 1, which may be moved and/or hidden for aesthetic purposes. The helper column formula could be embedded into the formula that populates column K, however it would require that formula to find the row value up to three times as opposed to having a helper in column R find it once.
    The helper column (R) is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column K, Club Std., is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Finding the result when looking up a value in a array with result from a choice of col

    Try to keep original format, with array fomular in K2:

    Please Login or Register  to view this content.
    ...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.
    Attached Files Attached Files
    Quang PT

+ 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. compare two colums and return a result from a third
    By excelnewbie1234567 in forum Excel General
    Replies: 2
    Last Post: 03-10-2017, 06:10 PM
  2. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  3. [SOLVED] finding a result of a specific text base on the next day result
    By top00001 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-15-2014, 02:01 AM
  4. Finding the next result from a MATCH, with array conditions
    By StevenAFC in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2013, 03:52 AM
  5. Is it possible to have 1 cell display a result from a choice of other cells?
    By Conundrum02 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-06-2013, 06:53 PM
  6. User choice to display one value or another dependant on result
    By jaypee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2007, 08:52 AM
  7. Can't get OptionButton choice result from form?!!
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 01:05 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