+ Reply to Thread
Results 1 to 3 of 3

Conditional Copy and paste

  1. #1
    Pedro F.
    Guest

    Conditional Copy and paste

    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!


  2. #2
    Tom Ogilvy
    Guest

    Re: Conditional Copy and paste

    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)

    --
    Regards,
    Tom Ogilvy


    "Pedro F." <PedroF@discussions.microsoft.com> wrote in message
    news:FF4F01A7-03A8-49E6-904B-2DA25B7C3A89@microsoft.com...
    > 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!
    >




  3. #3
    Pedro F.
    Guest

    Re: Conditional Copy and paste

    Thanks Tom!

    I think thatÂŽs the best way indeed!

    Rgds

    Pedro

    "Tom Ogilvy" wrote:

    > 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)
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Pedro F." <PedroF@discussions.microsoft.com> wrote in message
    > news:FF4F01A7-03A8-49E6-904B-2DA25B7C3A89@microsoft.com...
    > > 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!
    > >

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1