aliaslamy2k
Active Member
- Joined
- Sep 15, 2009
- Messages
- 416
- Office Version
- 2019
- Platform
- Windows
Dear Experts,
Can i get a formula or VBA code to extract selected cells from closed workbooks
I have around 120 workbooks in a folder with all stations names, which will be replaced every month with new workbook but the file name will remain same.
I need to get the data from particular cells and paste in my final excel sheet.
Below cells to be copied from all stations workbooks.
J4, J7, J8, J9, E20, G18, I18, E21, G21, I21, E22, F25, F26, F27, F30, F31, F32, D35, D36, H35, H36, F39, G39, H39, F40, H40, F43, H43, J45, J47, J49
Below is the current formula I am using, but when i replace the workbook, my final sheet is not capturing the latest information.
='D:\Extract Data\DATABASE\[ALG.xls]GS use'!$J$7
To be pasted here
Sheet3
<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 87px"></colgroup> <tbody>
</tbody>
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Can i get a formula or VBA code to extract selected cells from closed workbooks
I have around 120 workbooks in a folder with all stations names, which will be replaced every month with new workbook but the file name will remain same.
I need to get the data from particular cells and paste in my final excel sheet.
Below cells to be copied from all stations workbooks.
J4, J7, J8, J9, E20, G18, I18, E21, G21, I21, E22, F25, F26, F27, F30, F31, F32, D35, D36, H35, H36, F39, G39, H39, F40, H40, F43, H43, J45, J47, J49
Below is the current formula I am using, but when i replace the workbook, my final sheet is not capturing the latest information.
='D:\Extract Data\DATABASE\[ALG.xls]GS use'!$J$7
To be pasted here
Sheet3
| A | 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 |
1 | | FREQUENCIES | | | | | TOTAL PAX - IN | | | TOTAL PAX - OUT | | | DNB | UG | | | DG | | | CGO | | | MEALS ON | | | WASTAGE | | | EXCESS BAGG | | | MISHANDLED | | |
2 | Stations | A340/B777 | A330 | A300 | A319/A320/A321 | | F | J | Y | F | J | Y | | J to F | Y to J | Y to F | F to J | J to Y | F to Y | In | Out | In | Out | F | J | Y | F | J | Y | Target | Achieved | Waived | Nbr | Compensation |
3 | ALG | 0 | 0 | 0 | 49 | | 0 | 742 | 8283 | 0 | 781 | 10488 | | 0 | 9 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 781 | 10488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 250 |
4 | AMD | 0 | 31 | 0 | 31 | | 0 | 231 | 4533 | 0 | 136 | 3639 | | 0 | 3 | 0 | 0 | 3 | 0 | 1869 | 39735 | 21 | 9 | 0 | 143 | 3730 | 0 | 7 | 91 | 9679 | 20015 | 923 | 45 | 1803 |
5 | AMM | 0 | 28 | 0 | 31 | | 383 | 0 | 4317 | 383 | 0 | 4575 | | 0 | 0 | 3 | 0 | 0 | 0 | 63503 | 53246 | 6514 | 15 | 415 | 0 | 4574 | 32 | 0 | -1 | 0 | 0 | 0 | 27 | 0 |
6 | ARN | 0 | 0 | 0 | 31 | | 0 | 297 | 7209 | 0 | 341 | 6437 | | 0 | 55 | 0 | 0 | 0 | 0 | 301989 | 358435 | 74 | 83 | 0 | 366 | 6505 | 0 | 25 | 68 | 0 | 27135 | 3441 | 60 | 0 |
7 | ATH | 0 | 62 | 0 | 62 | | 0 | 481 | 8295 | 0 | 571 | 9396 | | 0 | 2 | 0 | 0 | 0 | 0 | 52887 | 57921 | 322 | 0 | 0 | 577 | 9404 | 0 | 6 | 8 | 0 | 34045 | 0 | 66 | 1916 |
8 | ATQ | 0 | 31 | 0 | 31 | | 0 | 158 | 4057 | 0 | 96 | 3967 | | 0 | 59 | 0 | 0 | 0 | 0 | 851 | 10307 | 0 | 0 | 0 | 102 | 3937 | 0 | 6 | -30 | 0 | 14216 | 390 | 40 | 1947 |
9 | AUH | 0 | 169 | 0 | 170 | | 847 | 0 | 10678 | 807 | 0 | 13241 | | 0 | 0 | 0 | 0 | 0 | 0 | 57701 | 260587 | 8151 | 36266 | 881 | 0 | 13159 | 74 | 0 | -82 | 0 | 50836.44 | 553 | 158 | 10004 |
10 | BAH | 0 | 139 | 0 | 173 | | 1223 | 7 | 14628 | 1223 | 14 | 13298 | | 0 | 0 | 4 | 0 | 0 | 0 | 459537 | 410173 | 65998 | 27693 | 1217 | 10 | 12986 | -6 | -4 | -312 | 110903 | 76243.39 | 1018 | 152 | 295 |
11 | BCN | 0 | 0 | 0 | 31 | | 0 | 411 | 5918 | 0 | 646 | 7528 | | 0 | 30 | 0 | 0 | 0 | 0 | 343841 | 348519 | 0 | 0 | 0 | 663 | 7606 | 0 | 17 | 78 | 0 | 17691 | 1976 | 30 | 0 |
<colgroup> <col style="WIDTH: 30px; FONT-WEIGHT: bold"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 64px"> <col style="WIDTH: 87px"></colgroup> <tbody>
</tbody>
Spreadsheet Formulas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4