RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Morning everyone. In excel I have a dataset which has multiple rows per projectID.
Column A is ProjectID, and column E is Version, which holds information on what version of the ProjectID it is. For example, there can be 30 lines for Project 12345, which only has Version 3, so the result I want is "1" because there's only one combination of Project 12345 with Version 3.
If there's another ProjectID such as Project 09876 with 20 lines for Version 3, and then another 20 lines for Project 09876 for Version 5, then I'd like the formula to result in "2" for each line of Project 09876 because there are two valid combinations of ProjectID and Version.
What formula can I use for this? I'm thinking of some clever combination of Countifs etc.
This table is being imported into Power BI so if there's a better way to do this with a measure, I'm all ears. I just thought I'd do it in Excel for familiarity
Column A is ProjectID, and column E is Version, which holds information on what version of the ProjectID it is. For example, there can be 30 lines for Project 12345, which only has Version 3, so the result I want is "1" because there's only one combination of Project 12345 with Version 3.
If there's another ProjectID such as Project 09876 with 20 lines for Version 3, and then another 20 lines for Project 09876 for Version 5, then I'd like the formula to result in "2" for each line of Project 09876 because there are two valid combinations of ProjectID and Version.
What formula can I use for this? I'm thinking of some clever combination of Countifs etc.
This table is being imported into Power BI so if there's a better way to do this with a measure, I'm all ears. I just thought I'd do it in Excel for familiarity