Hello,
I am building a tool for work, and in one of the sections of the main worksheet, I would like the cells to pull specific data from another worksheet that contains the results of a web query. The web query pulls a table of data, with a double header (rows 3 and 4). One column header is for the date and the other is for the time the data below corresponds to. There are also row titles along the left hand side.
I need a formula that will find the column that meets two conditions:
1) Today's date
2) A specific time (referenced from a cell on the main sheet)
It must then pull the data from the cell in that column that is in the row marked "Total".
Here is an example of the data set from the web query:
I have done quite a bit of looking on the web and tried out several different formulas/variations. I think I'm getting close, but just can't get it quite right. Here are a couple that seem close and their results:
=INDEX('Rodeo Data'!$D$5:$JS$50,MATCH("Total",'Rodeo Data'!$B$5:$B$50,0),MATCH(J3,'Rodeo Data'!$D$4:$JS$4,0)*AND(MATCH(TODAY(),'Rodeo Data'!$D$3:$JS$3,1)))
This one correctly finds the date and "Total" row, but seems to ignore the MATCH(J3,'Rodeo Data'!$D$4:$JS$4,0) section, which is designed to find the specific time in row 4. It returns either the "Total" row value from the first or last column with the correct date depending on which match type argument I use.
=INDEX('Rodeo Data'!$D$5:$JS$50,MATCH("Total",'Rodeo Data'!$B$5:$B$50,0),MATCH(TODAY()&O3,'Rodeo Data'!$D$3:$JS$3&'Rodeo Data'!$D$4:$JS$4,))
This one returns the standard "#N/A" error message.
I am using Windows 7 and Excel 2010. "Rodeo Data" is the name of the sheet that contains the web query data I have included. The J3 and O3 references are cells in the main worksheet that contain the time I want the match function to find.
The desired output from the formula would be if I referenced it to today (20 Nov 2012) and 19:45, it would return the value of 65,826.
It may also be worth noting that the number of columns and rows in the data set is dynamic.
This is my first time posting, so I apologize if I left anything out. Please let me know if you need any further information, and thank you in advance for your help!
I am building a tool for work, and in one of the sections of the main worksheet, I would like the cells to pull specific data from another worksheet that contains the results of a web query. The web query pulls a table of data, with a double header (rows 3 and 4). One column header is for the date and the other is for the time the data below corresponds to. There are also row titles along the left hand side.
I need a formula that will find the column that meets two conditions:
1) Today's date
2) A specific time (referenced from a cell on the main sheet)
It must then pull the data from the cell in that column that is in the row marked "Total".
Here is an example of the data set from the web query:
Excel 2010 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | AT | AU | AV | AW | AX | AY | AZ | BA | BB | BC | BD | BE | BF | BG | BH | BI | BJ | BK | BL | BM | BN | BO | BP | BQ | BR | BS | BT | |||
3 | Total | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 19-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 20-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 21-Nov | 22-Nov | 22-Nov | 22-Nov | 22-Nov | 22-Nov | 22-Nov | 22-Nov | 22-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 23-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 24-Nov | 26-Nov | 26-Nov | 28-Nov | 29-Nov | 30-Nov | 3-Dec | 4-Dec | |||
4 | 19:45 | 20:30 | 21:30 | 22:00 | 22:30 | 22:59 | 23:00 | 23:25 | 23:30 | 23:40 | 23:50 | 1:00 | 2:00 | 16:45 | 17:00 | 18:30 | 19:00 | 19:15 | 19:30 | 19:45 | 20:30 | 21:30 | 22:30 | 22:59 | 23:25 | 23:30 | 1:00 | 2:00 | 16:45 | 19:15 | 19:30 | 19:45 | 21:30 | 22:59 | 23:25 | 23:30 | 16:45 | 19:15 | 19:30 | 19:45 | 21:30 | 22:59 | 23:25 | 23:30 | 16:45 | 17:00 | 19:15 | 19:30 | 19:45 | 21:30 | 22:59 | 23:25 | 23:30 | 13:00 | 17:30 | 18:00 | 18:15 | 19:00 | 20:25 | 21:10 | 21:30 | 23:30 | 19:15 | 19:45 | 19:45 | 13:00 | 13:00 | 13:00 | 1:00 | ||||
5 | PP1LTower | 352 | 0 | 0 | 1 | 0 | 0 | 16 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 13 | 25 | 186 | 0 | 8 | 0 | 14 | 7 | 15 | 0 | 0 | 1 | 1 | 1 | 36 | 0 | 0 | 2 | 3 | 0 | 2 | 0 | 9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
6 | PPFracsDamageLTL | 8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 0 | 0 | 0 | 0 | ||
7 | PPFracsDamageMultiLarge | 37 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |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| 0 | 0 | 0 | 0 | ||
11 | PPRebinLarge | 18111 | 143 | 67 | 57 | 0 | 0 | 127 | 0 | 31 | 288 | 0 | 31 | 0 | 0 | 0 | 0 | 39 | 14 | 290 | 726 | 12010 | 2 | 369 | 0 | 462 | 249 | 781 | 0 | 0 | 0 | 8 | 45 | 1191 | 12 | 149 | 38 | 41 | 0 | 30 | 15 | 490 | 11 | 28 | 9 | 48 | 0 | 0 | 4 | 5 | 124 | 0 | 7 | 0 | 20 | 0 | 0 | 0 | 57 | 84 | 2 | 0 | 0 | 5 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | ||
12 | PPRebinMedium | 67182 | 29 | 0 | 49 | 0 | 0 | 148 | 0 | 62 | 280 | 0 | 96 | 0 | 0 | 797 | 0 | 4 | 16 | 2751 | 3715 | 43474 | 2 | 1584 | 0 | 1057 | 1557 | 2593 | 0 | 0 | 246 | 53 | 168 | 5225 | 76 | 118 | 63 | 177 | 115 | 356 | 42 | 1330 | 24 | 45 | 16 | 70 | 27 | 0 | 33 | 16 | 327 | 34 | 22 | 15 | 40 | 39 | 17 | 17 | 126 | 82 | 5 | 4 | 4 | 30 | 2 | 4 | 0 | 0 | 0 | 0 | 0 | ||
13 | PPSIOCEnv | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
14 | PPSingleAuto58 | 6435 | 7 | 0 | 31 | 0 | 0 | 101 | 0 | 147 | 175 | 0 | 0 | 0 | 0 | 9 | 0 | 0 | 0 | 215 | 702 | 3587 | 0 | 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778 | 748 | 6 | 318 | 876 | 4092 | 225 | 2779 | 2897 | 3699 | 733 | 60 | 54 | 3696 | 5889 | 65826 | 11 | 2453 | 231 | 2031 | 2371 | 3874 | 414 | 36 | 585 | 84 | 253 | 7659 | 89 | 340 | 111 | 245 | 290 | 542 | 85 | 2196 | 40 | 129 | 40 | 132 | 70 | 3 | 55 | 29 | 597 | 41 | 89 | 22 | 76 | 53 | 83 | 32 | 350 | 179 | 21 | 26 | 7 | 45 | 3 | 17 | 13 | 3 | 6 | 1 | 1 | ||
Sheet1 |
I have done quite a bit of looking on the web and tried out several different formulas/variations. I think I'm getting close, but just can't get it quite right. Here are a couple that seem close and their results:
=INDEX('Rodeo Data'!$D$5:$JS$50,MATCH("Total",'Rodeo Data'!$B$5:$B$50,0),MATCH(J3,'Rodeo Data'!$D$4:$JS$4,0)*AND(MATCH(TODAY(),'Rodeo Data'!$D$3:$JS$3,1)))
This one correctly finds the date and "Total" row, but seems to ignore the MATCH(J3,'Rodeo Data'!$D$4:$JS$4,0) section, which is designed to find the specific time in row 4. It returns either the "Total" row value from the first or last column with the correct date depending on which match type argument I use.
=INDEX('Rodeo Data'!$D$5:$JS$50,MATCH("Total",'Rodeo Data'!$B$5:$B$50,0),MATCH(TODAY()&O3,'Rodeo Data'!$D$3:$JS$3&'Rodeo Data'!$D$4:$JS$4,))
This one returns the standard "#N/A" error message.
I am using Windows 7 and Excel 2010. "Rodeo Data" is the name of the sheet that contains the web query data I have included. The J3 and O3 references are cells in the main worksheet that contain the time I want the match function to find.
The desired output from the formula would be if I referenced it to today (20 Nov 2012) and 19:45, it would return the value of 65,826.
It may also be worth noting that the number of columns and rows in the data set is dynamic.
This is my first time posting, so I apologize if I left anything out. Please let me know if you need any further information, and thank you in advance for your help!