LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro to Copy Var. Ranges to Var. Rows

Macro to copy Var. Ranges to Var. Rows
a b c d
1 100 first 5000 0
2 100 sec. 4000 1
3 100 thr 2000 2
4 101 fif 50 0
5 101 six 250 1
6 101 sev 1000 2
7 101 sev 1000 3

If D1 is zero - no action
If D2 is 1 - Copy {B2 to C2) to E1
If D3 is 2 - Copy (B3 to C3) to G1
If D4 is zero - no action
If D5 is 1 - Copy (B5 to C5) to E4
so on and so on

The E column can go up to 14. The marco needs to read to the end of the
spread sheet for last row.

This is short and sweet. I can provide more detail if required.

Thank you

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
run a macro which looks at ranges with added rows aussiebob New Users to Excel 1 February 19th 09 10:02 AM
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Using macro/vba to copy varying ranges of rows BCLivell Excel Discussion (Misc queries) 3 June 6th 07 02:52 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Create a Macro that will copy the rows that have a value < 0 wil4d Excel Discussion (Misc queries) 1 December 18th 05 05:28 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"