+ Reply to Thread
Results 1 to 10 of 10

Automatically fill in results tables

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    England
    MS-Off Ver
    Pro Plus 2016
    Posts
    19

    Automatically fill in results tables

    I'm struggling to come up with a formula and even what functions to use for the following problem. I generally sort the data myself and copy and paste, but it would be nice to figure out how to get it to work automatically.

    In the attached spreadsheet, I have a data set on the left, and 4 results boxes (titled with what should go in them).

    For example, the cell H6 should return the value/name in B3 as the smallest male time. Likewise L6 should also return the value in B3 with the highest male %. And so on for the other results boxes.

    Is it also possible if I could start with a blank data set, and entered in B3 the name 'ABC', and corresponding time in C3 of 1:00:00, for it to end up in H6. Only then to enter a new name in B4 of 'XYZ' and a time in C4 of 0:30:00, for THE value in H6 to change to 'XYZ' (as the new smallest time) and the value 'ABC' to be shunted down into cell H7 (as the 2nd smallest time).

    Apologies if the above isn't worded very well.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Automatically fill in results tables

    copy paste below in H6 and then hold control and shift together and then hit enter and drag down to make it array formula
    =IFERROR(INDEX($B$3:$B$34,MATCH(SMALL(IF(($E$3:$E$34="M")*($C$3:$C$34),$C$3:$C$34),ROW(A1)),$C$3:$C$34,0)),"")

    copy paste below in P6 and then hold control and shift together and then hit enter and drag down to make it array formula
    =IFERROR(INDEX($B$3:$B$34,MATCH(SMALL(IF(($E$3:$E$34="F")*($C$3:$C$34),$C$3:$C$34),ROW(A1)),$C$3:$C$34,0)),""

    copy paste below in L6 and then hold control and shift together and then hit enter and drag down to make it array formula
    =IFERROR(INDEX($B$3:$B$34,MATCH(LARGE(IF(($E$3:$E$34="M")*($D$3:$D$34),$D$3:$D$34),ROW(A1)),$D$3:$D$34,0)),"")

    copy paste below in T6 and then hold control and shift together and then hit enter and drag down to make it array formula
    =IFERROR(INDEX($B$3:$B$34,MATCH(LARGE(IF(($E$3:$E$34="F")*($D$3:$D$34),$D$3:$D$34),ROW(A1)),$D$3:$D$34,0)),"")
    ..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
    Last edited by hemesh; 01-28-2016 at 02:50 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

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

    Re: Automatically fill in results tables

    I'd suggest Pivot Tables

    automatically-fill-in-results-tables-Pivot.xlsx

  4. #4
    Registered User
    Join Date
    01-31-2013
    Location
    England
    MS-Off Ver
    Pro Plus 2016
    Posts
    19

    Re: Automatically fill in results tables

    Thanks. I will try both methods and see what works best for me. I hadn't even thought of pivot tables.

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

    Re: Automatically fill in results tables

    You're welcome.

  6. #6
    Registered User
    Join Date
    01-31-2013
    Location
    England
    MS-Off Ver
    Pro Plus 2016
    Posts
    19

    Re: Automatically fill in results tables

    I've marked this as unsolved as I've just encountered a problem with the array formula.

    If I expand the data area (i.e. make it larger to include blank fields that have yet to be filled in), then the formula returns an error as it's including the E column values that don't exist (I'm using lookup tables to determine these). So if I have a blank in the B 'name' column, then all the results in E '***' column are N/A.

    Is there a way to get the formula to ignore these N/A results?

    Cheers
    Attached Files Attached Files

  7. #7
    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
    30,688

    Re: Automatically fill in results tables

    Try

    =IFERROR(VLOOKUP(B35,G35:H45,2,FALSE),"")

    OR

    =IF(B35="","",(VLOOKUP(B35,G35:H45,2,FALSE)))
    Last edited by JohnTopley; 01-31-2016 at 04:35 PM.

  8. #8
    Registered User
    Join Date
    01-31-2013
    Location
    England
    MS-Off Ver
    Pro Plus 2016
    Posts
    19

    Re: Automatically fill in results tables

    Thanks for that, I went with the latter.

    I tried to use the same principle with E column,

    =IF(H37="","",IF(H37="M",$E$1/D37,$E$2/D37))

    so I now get blanks, but this hasn't solved the problem with P and X column array formula results.

    I get the impression I'm missing something very simple with this that would get it to work.
    Attached Files Attached Files

  9. #9
    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
    30,688

    Re: Automatically fill in results tables

    Change column E

    =IF(H5="",0,IF(H5="M",$E$1/D5,$E$2/D5))

  10. #10
    Registered User
    Join Date
    01-31-2013
    Location
    England
    MS-Off Ver
    Pro Plus 2016
    Posts
    19

    Re: Automatically fill in results tables

    Ah I see, thankyou very much.

+ 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. Updating League Tables automatically by inputting Results
    By bm2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 05:50 PM
  2. [SOLVED] Formula to fill two tables automatically
    By canudo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2015, 01:00 PM
  3. [SOLVED] fill out one cell, all others fill out automatically
    By hatsunetsu in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-10-2015, 02:07 PM
  4. Vlookup results from 2 tables
    By emp2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2014, 09:12 PM
  5. Formula to Automatically Fill Blank With Next fill cell's data?
    By VMoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 05:11 PM
  6. Fill Blank Cells Automatically in Pivot Tables
    By jgur88 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-18-2012, 12:12 PM
  7. Results from Multiple Tables
    By UPSguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2008, 09:46 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