iggydarsa
Well-known Member
- Joined
- Jun 28, 2005
- Messages
- 1,813
- Office Version
- 365
- Platform
- Windows
Hi All,
I have a table on Sheet1 that looks like this:
Company --- User --- Count --- %
CompA --- UserA --- 100 --- 0
CompB --- UserB --- 50 --- 25
CompC --- UserA --- 75 --- 10
CompD --- UserC --- 50 --- 20
CompE --- UserB --- 25 --- 25
CompF --- UserC --- 50 --- 10
CompG --- UserB --- 10 --- 50
On Sheet2 I have this and need a formula to get the value from Sheet1:
User --- Company with lowest %
UserA --- [Need formula here]
UserB --- [Need formula here]
UserC --- [Need formula here]
The rule is find the Company that User works for with the lowest percantage. If there are multiple records with the lowest % then get the one with the highest count.
So the outcome should look like this:
User --- Company with lowest %
UserA --- CompA
UserB --- CompB (Company B and E has the lowest % but B has the highest count)
UserC --- CompF
I know SUMPRODUCT returns number so it might not work to get the company name.
PS: for this thing I'm working on Pivot tables wont help.
Any help is greatly appreciated.
I have a table on Sheet1 that looks like this:
Company --- User --- Count --- %
CompA --- UserA --- 100 --- 0
CompB --- UserB --- 50 --- 25
CompC --- UserA --- 75 --- 10
CompD --- UserC --- 50 --- 20
CompE --- UserB --- 25 --- 25
CompF --- UserC --- 50 --- 10
CompG --- UserB --- 10 --- 50
On Sheet2 I have this and need a formula to get the value from Sheet1:
User --- Company with lowest %
UserA --- [Need formula here]
UserB --- [Need formula here]
UserC --- [Need formula here]
The rule is find the Company that User works for with the lowest percantage. If there are multiple records with the lowest % then get the one with the highest count.
So the outcome should look like this:
User --- Company with lowest %
UserA --- CompA
UserB --- CompB (Company B and E has the lowest % but B has the highest count)
UserC --- CompF
I know SUMPRODUCT returns number so it might not work to get the company name.
PS: for this thing I'm working on Pivot tables wont help.
Any help is greatly appreciated.