+ Reply to Thread
Results 1 to 2 of 2

Copy data from one column to another

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Copy data from one column to another

    I have a spreadsheet with a bunch of account numbers in column A many of which are duplicates. In Column C i have the same account numbers only not duplicates. In column D i have passcodes for each of these account numbers.

    What i basically want to do is lookup the account numbers in column C and copy the passcode from column D to column B if what's in column A matches up with the passocde on the same row in column C.

    This is the formula i'm using in column B where i want the data to be.

    =if(A2=C:C,D)
    Is there another way to accomplish this? =lookup maybe?

  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 from one column to another

    Try

    =Vlookup(A2,C:D,2,0)
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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