Jemma Atkinson
Well-known Member
- Joined
- Jul 7, 2008
- Messages
- 509
Hi, i have a work task which is very manual, i was hoping a macro could automate this. I have a list of brokers which buys and sells FX, i need a macro to create a tab for each currency and put the Buy and sells in one column for each broker, i am after a layout as shown below for the USD.
Please take note of Rawdata columns, i have hidden the columns which are not in use. Below is just an example, just to show you what i want the macro to do.
Please take note of Rawdata columns, i have hidden the columns which are not in use. Below is just an example, just to show you what i want the macro to do.
Excel Workbook | |||||||
---|---|---|---|---|---|---|---|
E | F | I | J | T | |||
1 | BUY_CURRENCY | BUY_QUANTITY | SELL_CURRENCY | SELL_QUANTITY | EXEC_BROKER | ||
2 | AUD | 1478500 | USD | 1500677.5 | DEUTSCHE BANK AG CORP. | ||
3 | USD | 668304.76 | KRW | 744491500 | BARCLAYS BANK PLC WHOLESA | ||
4 | TWD | 13753200 | USD | 479372.6 | STATE STREET BANK AND TRU | ||
5 | KRW | 654212700 | USD | 589593.28 | BARCLAYS BANK PLC WHOLESA | ||
6 | USD | 446627.37 | HUF | 88214600 | UBS SECURITIES L.L.C. | ||
7 | CZK | 7746200 | USD | 443859.98 | BARCLAYS BANK PLC WHOLESA | ||
8 | USD | 439083.93 | CLP | 212143400 | THE ROYAL BANK OF SCOTLAN | ||
9 | BRL | 734200 | USD | 438328.36 | BARCLAYS BANK PLC WHOLESA | ||
10 | MXN | 5336600 | USD | 443158.23 | BARCLAYS BANK PLC WHOLESA | ||
11 | CZK | 7759200 | USD | 444632.91 | UBS SECURITIES L.L.C. | ||
12 | EUR | 1066800 | USD | 1470669.14 | CREDIT SUISSE | ||
13 | USD | 1528258.82 | AUD | 1514300 | STATE STREET BANK AND TRU | ||
14 | EUR | 4078200 | USD | 5622320.71 | STATE STREET BANK AND TRU | ||
15 | CAD | 4122200 | USD | 4153220.4 | STATE STREET BANK AND TRU | ||
16 | AUD | 719100 | USD | 725697.02 | CITIBANK, N.A. | ||
17 | EUR | 3117700 | USD | 4298694.11 | CITIBANK, N.A. | ||
18 | CAD | 2792300 | USD | 2813910.84 | CITIBANK, N.A. | ||
19 | AUD | 1206800 | USD | 1217781.88 | BARCLAYS BANK PLC WHOLESA | ||
Rawdata |
Excel Workbook | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Broker | CCY | Quantity | Method | Broker | CCY | Quantity | Method | |||
2 | BANC OF AMERICA SECURITIE | USD | 23,829.88 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 668,304.76 | BUY | |||
3 | BANC OF AMERICA SECURITIE | USD | 116,330.39 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 4,071,417.78 | BUY | |||
4 | BANC OF AMERICA SECURITIE | USD | 6,651,688.08 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 201,583.80 | BUY | |||
5 | BANC OF AMERICA SECURITIE | USD | 1,477,594.34 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 812,395.09 | BUY | |||
6 | BANC OF AMERICA SECURITIE | USD | 179,715.67 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 818,319.84 | BUY | |||
7 | BANC OF AMERICA SECURITIE | USD | 206,333.42 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 1,614,417.63 | BUY | |||
8 | BANC OF AMERICA SECURITIE | USD | 1,459,231.67 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 491,060.89 | BUY | |||
9 | BANC OF AMERICA SECURITIE | USD | 862,380.85 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 436,926.61 | BUY | |||
10 | BANC OF AMERICA SECURITIE | USD | 436,319.31 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 435,050.89 | BUY | |||
11 | BANC OF AMERICA SECURITIE | USD | 440,696.11 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 434,180.39 | BUY | |||
12 | BANC OF AMERICA SECURITIE | USD | 1,502,044.36 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 434,059.85 | BUY | |||
13 | BANC OF AMERICA SECURITIE | USD | 1,822,838.50 | BUY | BARCLAYS BANK PLC WHOLESA | USD | 1,459,465.03 | BUY | |||
14 | BANC OF AMERICA SECURITIE | USD | 334,199.37 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 589593.28 | SELL | |||
15 | BANC OF AMERICA SECURITIE | USD | 441,367.24 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 443859.98 | SELL | |||
16 | BANC OF AMERICA SECURITIE | USD | 435,944.41 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 438328.36 | SELL | |||
17 | BANC OF AMERICA SECURITIE | USD | 1,446,390.60 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 443158.23 | SELL | |||
18 | BANC OF AMERICA SECURITIE | USD | 442,413.33 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 1217781.88 | SELL | |||
19 | BANC OF AMERICA SECURITIE | USD | 733,387.80 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 289598.4 | SELL | |||
20 | BANC OF AMERICA SECURITIE | USD | 444,025.92 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 11798943.9 | SELL | |||
21 | BANC OF AMERICA SECURITIE | USD | 235,913.98 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 1341943.93 | SELL | |||
22 | BANC OF AMERICA SECURITIE | USD | 986,223.99 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 46593.17 | SELL | |||
23 | BANC OF AMERICA SECURITIE | USD | 123,505.75 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 460306.13 | SELL | |||
24 | BANC OF AMERICA SECURITIE | USD | 6,746,424.24 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 687199.77 | SELL | |||
25 | BANC OF AMERICA SECURITIE | USD | 746,351.08 | SELL | BARCLAYS BANK PLC WHOLESA | USD | 28067.7 | SELL | |||
USD |