Assign list of names to a sheet of customers

russellcarless

New Member
Joined
Dec 17, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. MacOS
Hi All

I have a list of 2000 customers and i want to assign a name of a person to contact them from a list of 49 people I have on another tab. I would like to evenly provide the 49 people a set of customers to call from the 2000. Ideally I would like to assign a name from the 49 to each entry in the 2000 list.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Welcome to the Board!

Let's say that you have two sheets, named "Customers" and "Contacts"

On the "Customers" sheet, you have the name of all your customers. The first row is a header/title row, and your data begins on row 2. Column A is the name of your customer, and column B is where you want to list the Contact.

On the "Contacts" sheet, you have the name of all your contacts. The first row is a header/title row, and your data begins on row 2. Column A is the name of your Contact.

In order to populate column B on the Customer sheet with the "Contact" name, place this formula in cell B2 and copy down for all your Customer rows:
Excel Formula:
=OFFSET(Contacts!$A$2,MOD((ROW()-2),49),0)

This will go through and list all your Contacts in order, and when it gets to the last one (in row 50), it will repeat the pattern.

A simple example/preview. Here is what the Contacts sheets looks like for the first bunch of rows:
1734437148113.png


And here is what the Customer sheet looks like for the first bunch of rows, with our formula in column B:
1734437208340.png


As you get down to the end of the first 49 records, you can see the pattern repeat, like this:
1734437267397.png
 
Upvote 0
Solution
Welcome to the Board!

Let's say that you have two sheets, named "Customers" and "Contacts"

On the "Customers" sheet, you have the name of all your customers. The first row is a header/title row, and your data begins on row 2. Column A is the name of your customer, and column B is where you want to list the Contact.

On the "Contacts" sheet, you have the name of all your contacts. The first row is a header/title row, and your data begins on row 2. Column A is the name of your Contact.

In order to populate column B on the Customer sheet with the "Contact" name, place this formula in cell B2 and copy down for all your Customer rows:
Excel Formula:
=OFFSET(Contacts!$A$2,MOD((ROW()-2),49),0)

This will go through and list all your Contacts in order, and when it gets to the last one (in row 50), it will repeat the pattern.

A simple example/preview. Here is what the Contacts sheets looks like for the first bunch of rows:
View attachment 120406

And here is what the Customer sheet looks like for the first bunch of rows, with our formula in column B:
View attachment 120407

As you get down to the end of the first 49 records, you can see the pattern repeat, like this:
View attachment 120408
Hey Joe, superb, thanks for your help and speed to reply too. Worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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