+ Reply to Thread
Results 1 to 5 of 5

Conditional copying

  1. #1
    Registered User
    Join Date
    01-29-2009
    Location
    madrid, spain
    MS-Off Ver
    Excel 2003
    Posts
    26

    Conditional copying

    Hi,

    I would need help copying values according to some conditions.

    Each row in my file describes a country and a year. I have data for some years; I would need a way to copy these observations to the following years until there is a new value (conditional to being same country). On the other hand, if there was no value for that country, I would need a ".". Do you think this can be done? I hope the attached file clarifies my question.

    Thanks a lot!
    Last edited by laurafv; 04-08-2009 at 03:51 AM.

  2. #2
    Registered User
    Join Date
    01-29-2009
    Location
    madrid, spain
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Conditional copying

    sorry, I had forgotten the attachment
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-31-2009
    Location
    Childers QLD, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2013
    Posts
    128

    Re: Conditional copying

    Hi,

    I hope this is what you were looking for.


    Cell E3 =IF(A3=A2,IF(C3="",E2,C3),IF(C3="",".",C3))


    Refer to attached sheet.

    Cheers

    Tony
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Conditional copying

    Or similarly, in E3 and copied down, =IF(C3<>"", C3, IF(A3=A2, E2, "."))
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    01-29-2009
    Location
    madrid, spain
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Conditional copying

    Thanks a lot!

+ 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