ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find, Copy and Paste (https://www.excelbanter.com/excel-programming/420483-find-copy-paste.html)

Fabian

Find, Copy and Paste
 
Hi,

I am looking for a piece a code doing the following:
I have 4 variables Sales, Discount, Display, and Dist.
Every variable is in 40 columns, each column is a month=160 columns
Before those 160 columns I have 1 column (I) with the period I am interested
to find info. I have 100 rows, every single row could have a different period
I am interested in.
What I am trying to do is for example for my first row (row #3) find on
those 40 columns for each of those 4 variables (160 columns), the period is
in column I. (the periods in the columns are in row # 2). Then copy and paste
the number on those columns in column E (Sales), then the same for Discount
(column F), Display (column G), Dist (column H). Then I want to repeat the
same for 100 rows (the quantity of rows change always, could be 100 or 120 or
??)

Mihi Caru Futuri

Find, Copy and Paste
 


"Fabian" wrote:

Hi,

I am looking for a piece a code doing the following:
I have 4 variables Sales, Discount, Display, and Dist.
Every variable is in 40 columns, each column is a month=160 columns
Before those 160 columns I have 1 column (I) with the period I am interested
to find info. I have 100 rows, every single row could have a different period
I am interested in.
What I am trying to do is for example for my first row (row #3) find on
those 40 columns for each of those 4 variables (160 columns), the period is
in column I. (the periods in the columns are in row # 2). Then copy and paste
the number on those columns in column E (Sales), then the same for Discount
(column F), Display (column G), Dist (column H). Then I want to repeat the
same for 100 rows (the quantity of rows change always, could be 100 or 120 or
??)


Fabian

Find, Copy and Paste
 
Hi Mihi,

I could not see your post.

Thanks

"Mihi Caru Futuri" wrote:



"Fabian" wrote:

Hi,

I am looking for a piece a code doing the following:
I have 4 variables Sales, Discount, Display, and Dist.
Every variable is in 40 columns, each column is a month=160 columns
Before those 160 columns I have 1 column (I) with the period I am interested
to find info. I have 100 rows, every single row could have a different period
I am interested in.
What I am trying to do is for example for my first row (row #3) find on
those 40 columns for each of those 4 variables (160 columns), the period is
in column I. (the periods in the columns are in row # 2). Then copy and paste
the number on those columns in column E (Sales), then the same for Discount
(column F), Display (column G), Dist (column H). Then I want to repeat the
same for 100 rows (the quantity of rows change always, could be 100 or 120 or
??)



All times are GMT +1. The time now is 10:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com