I've set up a mock finance sheet, made it into a table. It appears to work fine, you can add a row midtable for a new transaction, you can also add at the bottom and sort by date, I can't find a fault, I just wonder whether there is a better way to do it or if any of you can see a problem with the formula for the future. I'm always looking to improve things. Maybe an UPDATE button using VBA to sort, in case of transactions having a different date? Any suggestions?
Book1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | DATE | TO | FROM | TRANSACTION | AMOUNT | BARCLAYS | NATWEST | SANTANDER | total | ||
2 | 01/01/2024 | Opening balance | £1,000.00 | £1,000.00 | £1,000.00 | £3,000.00 | |||||
3 | 02/01/2024 | SANTANDER | John Smith | Bank Transfer | £500.00 | £1,000.00 | £1,000.00 | £1,500.00 | £3,500.00 | ||
4 | 03/01/2024 | Rates | barclays | direct debit | £200.00 | £800.00 | £1,000.00 | £1,500.00 | £3,300.00 | ||
5 | 03/01/2024 | NATWEST | BARCLAYS | Bank Transfer | £99.99 | £700.01 | £1,099.99 | £1,500.00 | £3,300.00 | ||
6 | 04/01/2024 | santander | natwest | Bank Transfer | £350.00 | £800.00 | £650.00 | £1,850.00 | £3,300.00 | ||
7 | 05/01/2024 | Bill Brown | SANTANDER | Standing order | £75.00 | £800.00 | £650.00 | £1,775.00 | £3,225.00 | ||
8 | 06/01/2024 | SANTANDER | pension | Bank Transfer | £1,000.00 | £800.00 | £650.00 | £2,775.00 | £4,225.00 | ||
9 | 07/01/2024 | ENERGY | SANTANDER | direct debit | £340.00 | £800.00 | £650.00 | £2,435.00 | £3,885.00 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I2:I9 | I2 | =SUM(F2:H2) |
F3:F5,F7:F9 | F3 | =IF($B3=$F$1,F2+$E3,IF($C3=$F$1,F2-$E3,F2)) |
G3:G5,G7:G9 | G3 | =IF($B3=$G$1,G2+$E3,IF($C3=$G$1,G2-$E3,G2)) |
H3:H5,H7:H9 | H3 | =IF($B3=$H$1,H2+$E3,IF($C3=$H$1,H2-$E3,H2)) |
F6 | F6 | =IF($B6=$F$1,F4+$E6,IF($C6=$F$1,F4-$E6,F4)) |
G6 | G6 | =IF($B6=$G$1,G4+$E6,IF($C6=$G$1,G4-$E6,G4)) |
H6 | H6 | =IF($B6=$H$1,H4+$E6,IF($C6=$H$1,H4-$E6,H4)) |