PC Review


Reply
Thread Tools Rate Thread

Copy and past using a lookup

 
 
christie.taru@gmail.com
Guest
Posts: n/a
 
      12th Sep 2007
I have Months in format (Jan-07, Feb-07, to Dec-07) as headings in row
(B1 to M1) one in Sheet1 and 10 Categories in Column A starting A2 to
A11. This is a big sheet that continuously stores monthly data for
each categories (10 Categories) and I don't want this sheet to be
touched by the data entry person.
Therefore, I have a data entry Sheet2 which has the 10 Categories (A2
to A11) and only the current month is manually entered in B1 cell with
corresponding data for each category.
How can I write a macro that will copy the data entered for that
current month from the Sheet2 and paste it into the respective Month
and Category in Sheet1?

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      12th Sep 2007
Maybe you don't need a macro?

It sounds like =index(match()) would work for you.

Take a look at Debra Dalgleish's notes:
http://www.contextures.com/xlFunctions03.html

Depending on what you have in those column headers (strings or dates) and if
you're entering strings or dates in the input sheet, you may need to use:

...match(text(a1,"mmm-yy"),sheet2!b1:m1,0),...

in part of the formula


(E-Mail Removed) wrote:
>
> I have Months in format (Jan-07, Feb-07, to Dec-07) as headings in row
> (B1 to M1) one in Sheet1 and 10 Categories in Column A starting A2 to
> A11. This is a big sheet that continuously stores monthly data for
> each categories (10 Categories) and I don't want this sheet to be
> touched by the data entry person.
> Therefore, I have a data entry Sheet2 which has the 10 Categories (A2
> to A11) and only the current month is manually entered in B1 cell with
> corresponding data for each category.
> How can I write a macro that will copy the data entered for that
> current month from the Sheet2 and paste it into the respective Month
> and Category in Sheet1?


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and Past =?Utf-8?B?Sm9l?= Microsoft Excel Misc 1 17th Aug 2006 02:10 AM
Keep original lookup value data for past records after changing lo =?Utf-8?B?Q3JhaWc=?= Microsoft Access Database Table Design 6 28th Jun 2006 09:25 PM
Copy And Past =?Utf-8?B?Um9k?= Windows XP Help 1 21st May 2004 08:35 PM
Re: Copy and past Chek Windows XP New Users 0 4th Sep 2003 11:45 PM
copy and past Luba Windows XP New Users 3 1st Sep 2003 07:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:09 AM.