Hi all, hoping somebody can help me with this.
I have a big list of organisation names, populating column B. Some of these are companies, some are not.
When they are companies, I have provided a relevant company number.
However, I have some gaps (as in, the name appears twice in my list, but only one line has a company number).
To avoid having to manually trawl the data, I am sure there must be a formula to work out if
A) There is a duplicated name and
B) If there is a corresponding company number already there which should be used
The below example table may help bring it to light?!
- Organisation 1, 5, 7, 8 and 10 are NOT companies, so correctly have no company number present.
- Organisation 2,3,4,6 and 9 ARE companies, so have the company number populated
- Company 6 has a company number (987654) which is present for three of the four entries; therefore is there a formula to check if a number exists for an existing company in the dataset and then populates that return?
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]Company Number[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]123456[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]123456[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]234566[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]345678[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 5[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 7[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 9[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]678909[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I have a big list of organisation names, populating column B. Some of these are companies, some are not.
When they are companies, I have provided a relevant company number.
However, I have some gaps (as in, the name appears twice in my list, but only one line has a company number).
To avoid having to manually trawl the data, I am sure there must be a formula to work out if
A) There is a duplicated name and
B) If there is a corresponding company number already there which should be used
The below example table may help bring it to light?!
- Organisation 1, 5, 7, 8 and 10 are NOT companies, so correctly have no company number present.
- Organisation 2,3,4,6 and 9 ARE companies, so have the company number populated
- Company 6 has a company number (987654) which is present for three of the four entries; therefore is there a formula to check if a number exists for an existing company in the dataset and then populates that return?
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]Company Number[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]123456[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]123456[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]234566[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]345678[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 5[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]987654[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 6[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 7[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 9[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl71, width: 118"]678909[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 141"]
<tbody>[TR]
[TD="class: xl71, width: 141"]Organisation Name 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="class: xl72, width: 118"]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]