TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 302
- Office Version
- 365
- Platform
- Windows
Hello,
I hope someone can help.
I have a sheet of data (Sheet1) which I need to manipulate using VBA. I want to keep the existing data (for sanity checking) and generate an amalgamated version on a new sheet.
The rules are quite straightforward:
(a) if an asset has a freehold status only then it stays as freehold and the values summed
(b) if an asset has a freehold and a leasehold status, both should be labelled freehold and the values summed
(c) if an asset has a leasehold status only then it stays as freehold and the values summed
The structure of the data before is
And what I'm looking to achieve on a new worksheet is
Thanks so much in advance.
I hope someone can help.
I have a sheet of data (Sheet1) which I need to manipulate using VBA. I want to keep the existing data (for sanity checking) and generate an amalgamated version on a new sheet.
The rules are quite straightforward:
(a) if an asset has a freehold status only then it stays as freehold and the values summed
(b) if an asset has a freehold and a leasehold status, both should be labelled freehold and the values summed
(c) if an asset has a leasehold status only then it stays as freehold and the values summed
The structure of the data before is
Rich (BB code):
AssetID TenureStatus Value
123456 Freehold 1000
123456 Leasehold 4000
123456 Leasehold 3000
123457 Leasehold 3000
123457 Leasehold 2000
123458 Freehold 2000
And what I'm looking to achieve on a new worksheet is
Rich (BB code):
AssetID TenureStatus Value
123456 Freehold 8000
123457 Leasehold 5000
123458 Freehold 2000
Thanks so much in advance.