I am after a macro that will return either "OK" or "ERROR" in D6:D if there is a difference between Previous and Current Count. The data does not have a fixed end range, it will change from day to day.
Excel Workbook | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
5 | Stock | Previous | Current | Check | ||
6 | TLS | 12 | 12 | OK | ||
7 | BHP | 3 | 1 | ERROR | ||
8 | NAB | 45 | 45 | OK | ||
9 | CBA | 7 | 7 | OK | ||
10 | MQB | 23 | 23 | OK | ||
11 | WES | 8 | 8 | OK | ||
Sheet1 |