Hi
I've been breaking my head with a problem which looks quite simple and yet, I just keep running around in circle and can't get my workflow to work. I am an average, not advanced user.
I have the following data sample (real data is several thousand lines by 32 columns)

Each [Project #] is unique. I want to get the total sales by Project Group, like this:

The problem is the data is incomplete. Here are the issues:
Green: I need to sum the sales but retain the Project # and Name corresponding to the Project Group. Not first or last or whatever, but the one matching the Group Name.
Grey: The project # corresponding to the Project Group by does not exist, I need to replace those Project # by the Project Group and sum.
Amber: Project 100-09 belongs to a group but the info is missing. I need to change to Project Group to 100-09 before grouping
The rest are projects that don't belong to a group and need to be left a they are
So if anyone wants to take a crack at this, I'd really appreciate the help!