One to many to many formulae

pierre robinson

New Member
Joined
Sep 28, 2016
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Afternoon all.

The question I have relates to what I believe is a many to many formula - and I accept that Excel may not be able to cope with this.

What I have is a column of addresses, which include single homes and flats. They are unique.
A column of Com identifiers - these are council issued identifiers - they arent entirely unique
A column of water meter numbers - again, not unique.

What I need is a formula that counts the number of meters, per COM number, per address.
Any thoughts greatly appreciated as 3 coffees down & I havent solved it yet...

Example
AddressCOM Meter
20 LYNDALE PLCOM10001A10A642062
1/27 ALLENBY RDCOM10055X16A654364
2/27 ALLENBY RDCOM10055X16A654364
3/27 ALLENBY RDCOM10055X16A654364
1/29 KINGS RDCOM10056A07A001002
2/29 KINGS RDCOM10056A07A001131
3/29 KINGS RDCOM10056A07A017287
1A KAPUNI RDCOM10057A88014011
1B KAPUNI RDCOM10057A88014012
21 CAEN RDCOM10058A06A145484

<tbody>
</tbody>
TIA

<tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Ultimately then, do you want to create a report such as:

Meters COM Addresses
1...... COM10001 ......1
1...... COM10055...... 3
3...... COM10056...... 3
2 ...... COM10057......2
1...... COM10058...... 1...... ?

This would seem to require VBA but I'm not sure where to start.
 
Last edited:
Upvote 0
OK, so my colleague has posed the problem to me a different way: he is struggling with the formula to calculate the number of meters, apparently. He wants to include this in a larger formula. Hopefully the below makes sense?

Meters
COM
Address
# of meters




X123
COMAB
A
2
X567
COMAB
B
2
X123
COMAB
C
2
X123
COMAB
D
2
X345
COMBZ
E
3
X345
COMBZ
F
3
X789
COMBZ
G
3
X901
COMBZ
H
3
X565
COMJA
I
1

<tbody>
</tbody>
 
Upvote 0
Hi Pierre
Posting #4 is not very helpful because you have used different data to the initial posting.
Using the data layout form your first posting and assuming it is located from A1, and (as I understand it) you want to count the number of different meters that exist at each COM reference
then, in D2
= COUNTIFS($B$2:$B$11,B2,$C$2:$C$11,"<>"&C2)+1
and copy down.
 
Upvote 0
Kia ora konew1.

You have to make allowances for me being a Dorklander. I'll bounce your response off my colleague - I'm just the messenger here - and see what he thinks. He's an accountant. Nuff said...
 
Upvote 0

Forum statistics

Threads
1,216,179
Messages
6,129,334
Members
449,503
Latest member
glennfandango

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top