Hi, we have to collate reports from different departments. And I've been asked if we can help sort out (an evergrowing!) snag.
There is a list of info
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Customer Name[/TD]
[TD]Orders[/TD]
[/TR]
[TR]
[TD]PETER SMITH[/TD]
[TD]ABC123[/TD]
[/TR]
[TR]
[TD]david jones[/TD]
[TD]5962-99-3[/TD]
[/TR]
[TR]
[TD]peter smith[/TD]
[TD]XYZ789[/TD]
[/TR]
[TR]
[TD]222246[/TD]
[TD]Green Bottles[/TD]
[/TR]
[TR]
[TD]David Jones[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]David Jones[/TD]
[TD]5962-99-3[/TD]
[/TR]
[TR]
[TD]Peter Smith_02[/TD]
[TD]abc123[/TD]
[/TR]
</tbody>[/TABLE]
What we are looking to do is add a third field in Col C which tell us how many *different* outcomes there are for each entry in Col A.
i.e.
Peter Smith: 2 different product codes. (no need to list them, just show the number of them).
222246: 1 product code
David Jones 1 product code (a blank wouldn't count as an order code)
Peter Smith_02: 1 product code
I think we could maybe do this via a pivot table (but pivot tables as well as macros have been vetoed by the powers-that-be!).
I've been looking into adding a helper column and concatenating some info together, naming table ranges, trying different functions such as if / whatifs / countifs and a few other things, but I just can't figure it out.
The complications we have are that:
- it needs to be a dynamic count so that if an entry is edited, that gets reflected straight away in the results
- the data in Col A Col B can be in text (upper or lower case) or numeric, or a mix of both
- col B can sometimes be blanks
- I can't ask for the way I receive the info to be changed, grr!
Hoping somebody may be able to point me in the right direction?!
~With many thanks~
Neil
There is a list of info
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Customer Name[/TD]
[TD]Orders[/TD]
[/TR]
[TR]
[TD]PETER SMITH[/TD]
[TD]ABC123[/TD]
[/TR]
[TR]
[TD]david jones[/TD]
[TD]5962-99-3[/TD]
[/TR]
[TR]
[TD]peter smith[/TD]
[TD]XYZ789[/TD]
[/TR]
[TR]
[TD]222246[/TD]
[TD]Green Bottles[/TD]
[/TR]
[TR]
[TD]David Jones[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]David Jones[/TD]
[TD]5962-99-3[/TD]
[/TR]
[TR]
[TD]Peter Smith_02[/TD]
[TD]abc123[/TD]
[/TR]
</tbody>[/TABLE]
What we are looking to do is add a third field in Col C which tell us how many *different* outcomes there are for each entry in Col A.
i.e.
Peter Smith: 2 different product codes. (no need to list them, just show the number of them).
222246: 1 product code
David Jones 1 product code (a blank wouldn't count as an order code)
Peter Smith_02: 1 product code
I think we could maybe do this via a pivot table (but pivot tables as well as macros have been vetoed by the powers-that-be!).
I've been looking into adding a helper column and concatenating some info together, naming table ranges, trying different functions such as if / whatifs / countifs and a few other things, but I just can't figure it out.
The complications we have are that:
- it needs to be a dynamic count so that if an entry is edited, that gets reflected straight away in the results
- the data in Col A Col B can be in text (upper or lower case) or numeric, or a mix of both
- col B can sometimes be blanks
- I can't ask for the way I receive the info to be changed, grr!
Hoping somebody may be able to point me in the right direction?!
~With many thanks~
Neil
Last edited: