I'm using Excel 365 and trying to take advantage of VisualBasic for this query. I'm working with two tables where if Table: EventDiary[Match] = 1 then I want to enter the [Actual] value (-30) into Table Sim.
The value will replace the cell's contents in Table: Sim (which is currently 60). The column is found via EventDiary[L] which equals 2. The row is found via EventDiary[Index] which equals 3.
How would I achieve this?
Table Name: EventDiary
| L | Match | Index | Actual |
|---|---|---|---|
| 2 | 1 | 3 | -30 |
| 4 | 0 | 0 | 0 |
| 6 | 0 | 0 | 0 |
Table Name: Sim
| Index | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| 1 | 51 | 24 | ||||
| 2 | 9 | 15 | ||||
| 3 | 12 | 60 |
