allocating specific range of data to each value in a cell.

kshitij_dch

Active Member
Joined
Apr 1, 2012
Messages
362
Office Version
  1. 365
  2. 2016
  3. 2007
Platform
  1. Windows
I am working on a sheet where i have 500 A1 to A500 Id's .

I have a range of data from F1 to F300.

Manually allocating the data to each cell in A column is time consuming .

is it possible to create a macro that will allocate range of data against each cell in column A .

For Example

A1 - 123 Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
A2 - 345 Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
A3 - 678 Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I looked at this yesterday. But to begin with I do not know what:
Manually allocating
means.

Please define allocated.
 
Upvote 0
And why are you repeating yourself like this:
A3 - 678 Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
Allocated data F1 to F300
 
Upvote 0
Manually allocating means that i have a sheet in which column A has names , column A is dynamic , can be A1 to A5 and can be A1 to A100. Sheet come to us daily.

In that sheet column F has specific range of data. It can be F1 to F50 or can be F1 to F100 etc.

looking at the range in column F , we need to distribute the range or allocate the data to each cell in column A

suppose column F has Range F1 to F30 , I need to copy that range and paste it against A1, again paste this range to A2 , paste range to A3 and so on .......
 
Upvote 0
So you want to copy Range("F1:F300") to Range("A1:A300") for example. Is that correct?
Or:

Range("F1:F30") to Range ("A1:A30") for example.

Do you want all the data that was previously in Column A cleared out? Or are we adding this new data to column A?
 
Upvote 0
No , i need to copy range F1:F30 to A1 , then same range F1:F30 to A2 and so on , Each Cell has unique name in Column A. for each unique name F1:F30 should be allocated .

Need to clear out the data in sheet so that i can copy new data in the current sheet.
 
Upvote 0
So do you want line breaks between each value.

What your asking for will look like this:
MomDadSallyBillyMarkJohnCarolCarDogCatMice
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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