Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Conditional Copy and paste

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pedro F. - 23 Jan 2006 15:30 GMT
How can I set up a "conditional" copy and paste procedure?

I need to copy certain values from a column and paste them into another
depending on the date (that is settled in another column) associated to them.

Example:

ColumnA        ColumnB                  ColumnC
Date         Delay(nº of days)       Where to paste

13-01-06             15                         ........
22-02-05             20                         ........
24-01-06             30                         ........
 
So..., I need to copy the values in Column B to the Column C if the
corresponding values in Column A are greater than 01-01-2006 for example?

Taking into account that I have an huge list in which I'm adding new rows
every now an then, I would like to find a way that every time I added a new
row, depending on the values in column A it would copy the values in column B
and paste them to the column C.

I could really use some help!

Many Thanx!
Tom Ogilvy - 23 Jan 2006 16:09 GMT
Why not use a formula in column C

=if(A2>DateValue("some date"),B2,"")

then drag fill it down the column.  If you want to prefill it for as far as
you think you will ever need it

=if(Or(A2="",A2<DateValue("some date")),"",b2)

Signature

Regards,
Tom Ogilvy

> How can I set up a "conditional" copy and paste procedure?
>
[quoted text clipped - 21 lines]
>
> Many Thanx!
Pedro F. - 24 Jan 2006 15:40 GMT
Thanks Tom!

I think that´s the best way indeed!

Rgds

Pedro

> Why not use a formula in column C
>
[quoted text clipped - 33 lines]
> >
> > Many Thanx!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.