treeleaf20
Board Regular
- Joined
- Mar 17, 2009
- Messages
- 159
- Office Version
- 365
- Platform
- Windows
All,
I have a table with something like the following data:
I'd like to consolidate/sum the values in Column B and Column D based on the trade date and if the currency is the same in Column C and E. The above table would create the following entries in a new worksheet:
Is there a macro or something that would accomplish this easily? Thanks in advance.
I have a table with something like the following data:
Type | Buy | Cur. | Sell | Cur. | Exchange | Trade Group | Comment | Trade Date |
Trade | 69.86 | CUR1 | 505.1879792 | USD | Exchange1 | 26.11.2022 10:33 | ||
Trade | 67.1 | CUR1 | 485.3636898 | USD | Exchange1 | 26.11.2022 10:33 | ||
Trade | 67.11 | CUR1 | 485.5032684 | USD2 | Exchange1 | 26.11.2022 10:33 | ||
Trade | 280.6 | CUR2 | 2029.983864 | USD | Exchange1 | 23.11.2022 14:21 | ||
Trade | 100 | CUR2 | 723.444 | USD | Exchange1 | 23.11.2022 14:21 | ||
Trade | 126.38 | CUR1 | 914.2885272 | USD | Exchange1 | 21.11.2022 08:53 | ||
Trade | 21.02 | CUR1 | 152.0679288 | USD | Exchange1 | 21.11.2022 08:53 | ||
Trade | 478.83 | CUR1 | 3464.546693 | USD | Exchange1 | 21.11.2022 08:53 |
I'd like to consolidate/sum the values in Column B and Column D based on the trade date and if the currency is the same in Column C and E. The above table would create the following entries in a new worksheet:
Type | Buy | Cur. | Sell | Cur. | Exchange | Trade Group | Comment | Trade Date |
Trade | 136.96 | CUR1 | 990.6 | USD | Exchange1 | 26.11.2022 10:33 | ||
Trade | 67.11 | CUR1 | 485.5 | USD2 | Exchange1 | 26.11.2022 10:33 | ||
Trade | 380.6 | CUR2 | 2753.4 | USD | Exchange1 | 23.11.2022 14:21 | ||
Trade | 626.23 | CUR1 | 4530.9 | USD | Exchange1 | 21.11.2022 08:53 |
Is there a macro or something that would accomplish this easily? Thanks in advance.
Last edited: