Macro code for filling up data with respect to count of Next column

purandhar

New Member
Joined
May 11, 2016
Messages
6
Sample:
A B C D E
1 ani sq 250 33 450
2 111 22 222
3 444 44 222
4 123 12 899
5 122 34 113

Now i want to make a code that fills same data in A1 and B1 up to A5 and B5, If i have data in C,D,E column upto 100 count means i want the same A1 and B1 need to fill in upto the C column count... Can abybody help on this ??
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I am afraid that your attempt to post example data did not turn out well, so we cannot really get a good picture of what is going on. Posting data outside of code tags does not maintain spacing.
There are tools you can use to post images, mentioned in the Posting Aids section here: http://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html

Also, if you are unable to use those, you can use Code tags around all your data to maintain spacing. There are also a few ways to see what your posting will look like before committing it to the thread:
- Use the "Test Here" forum to post it there first and see what it will look like
- Use the "Advanced Editor" and use the Preview button to see what it will look like before committing it (I use this with the Code Tags option, as you can keep going back-and-forth easily until you have it looking good).
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

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