Both of these are perfect! Let's introduce a another component to make this more robust. Say I want to sort Sheet B from smallest to largest. Since the MATCH function is based off of relative location, the values returned will be incorrect. Can we introduce a different function (maybe VLOOKUP would work here) that will match the values based on their unique identifier instead of their relative position?
New Sheet B
Excel Workbook
A B 1 Unique Identifier Value 2 4 38.4 3 5 56.4 4 1 84.5 5 3 94.5 6 2 95.4 Sheet2
Genius! Works perfectly. Thank you!
You are welcome. And thanks for such an interesting question.
* | A | B | C | D | E | F |
ID | Mon | Tues | Weds | Thurs | Fri | |
* | A | B |
ID | Minimum Value | |
* | ||
* | ||
* | ||
* | ||
* |
I have added some functionality to my project and now have an additional question. On the Data tab, I have collected all of my raw data. For each ID, I have 1-4 values in columns B-F for each ID, which are labeled for each day of the week. On the Analysis tab, I want to display the lowest number for each ID, IE. 10 - 24, 5 - 36, 22 - 12, 43 - 48, and 21 - 12. You'll notice the IDs are not in the same order on the Analysis tab. I did this to simulate reordering. I intend to reorder both the Data tab and Analysis tab independently after the formulas are entered. What formula can I use on the Analysis tab to show me the lowest number in each of the rows on the Data tab?
Data
*
A
B
C
D
E
F
ID
Mon
Tues
Weds
Thurs
Fri
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="align: center"]10
[/TD]
[TD="align: right"]24
[/TD]
[TD="align: right"]48
[/TD]
[TD="align: right"]336
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: center"]5
[/TD]
[TD="align: right"]120
[/TD]
[TD="align: right"]48
[/TD]
[TD="align: right"]36
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="align: center"]22
[/TD]
[TD="align: right"]12
[/TD]
[TD="align: right"]72
[/TD]
[TD="align: right"]96
[/TD]
[TD="align: right"]24
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="align: center"]43
[/TD]
[TD="align: right"]48
[/TD]
[TD="align: right"]72
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="align: center"]21
[/TD]
[TD="align: right"]12
[/TD]
[TD="align: right"]336
[/TD]
[TD="align: right"]720
[/TD]
[TD="align: right"]36
[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Analysis
*
A
B
ID
Minimum Value
*
*
*
*
*
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="align: right"]22
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: right"]43
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="align: right"]10
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="align: right"]21
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="align: right"]5
[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
* | A | B | C | D | E | F | G |
ID | Name | Mon | Tues | Weds | Thurs | Fri | |
John | |||||||
Dan | |||||||
Emily | |||||||
Jose | |||||||
Alexis |
Let's take this another step further. Is there a way to summarize the data by creating a list of days and associated values for each ID? For example, I'd like to select a Name (which is associated with an ID), and then generate a list of Days and the associated value entered into the cell.
Referencing the table below, I would like to select John from a drop down menu, which would generate the following output: Tues - 24, Weds - 48, Thurs - 336 (ignores blanks). The syntax of the output is not important - I just need an easy way to see the summary of the matrixed information. How would I do that?
Thanks again for all your help!
Sheet1
* A B C D E F G ID Name Mon Tues Weds Thurs Fri John Dan Emily Jose Alexis
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]336[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]36[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]96[/TD]
[TD="align: right"]24[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]72[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]336[/TD]
[TD="align: right"]720[/TD]
[TD="align: right"]36[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
=IF(COLUMNS($A$3:A3)<=$A$2,INDEX(Sheet1!$B$1:$G$1,
SMALL(IF(ISNUMBER(INDEX(Sheet1!$B$2:$G$6,MATCH($A$1,Sheet1!$A$2:$A$6,0),0)),
COLUMN(Sheet1!$B$1:$G$1)-COLUMN(Sheet1!$B$1)+1),COLUMNS($A$3:A3))),"")
=INDEX(Sheet1!$B$2:$G$6,MATCH($A$1,Sheet1!$A$2:$A$6,0),MATCH(A$3,Sheet1!$B$1:$G$1,0))