+ Reply to Thread
Results 1 to 4 of 4

Copy data on Condition

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Copy data on Condition

    Hi everybody,

    This one is hard to describe so I hope the attachment will make it more clear.

    I'd like to get the cell in column E, which has the word "dept." on the same row in column B, copied down in column D, till the word "name" occurs in column B.
    One extra difficulty is that I'd like it to start from one row up.

    I hope the enclosed example is more clear.
    How the result should look like is shown in range K:N
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy data on Condition

    Perhaps with a formula:

    =IF(B7="name",LOOKUP(2,1/(B$8:B8="dept."),E$8:E8),D6)

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Copy data on Condition

    This seems to work:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Copy data on Condition

    Thanks NBVC and Stephen, I used NBVC's formula, it worls great!

+ 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