+ Reply to Thread
Results 1 to 3 of 3

Help on filling in cells based on the value of another cell(s)

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    9

    Help on filling in cells based on the value of another cell(s)

    Hi all,

    I'm stuck and hoping you guys can help me out...once again.

    I have a spreadsheet where Column A contains a person's employee ID, Column B may (or may not) contain what department they are in. For example:

    Emp123
    Emp123
    Emp123 Finance
    Emp123
    Emp123
    Emp456
    Emp456
    Emp456 IT
    Emp456
    Emp789 Operations
    Emp789

    What I am trying to do is populate Column B with the person's department if it is not already populated, based on a value where it is populated. Each EmpID will only have one value in Column B. Desired Result for above would be:

    Emp123 Finance
    Emp123 Finance
    Emp123 Finance
    Emp123 Finance
    Emp123 Finance
    Emp456 IT
    Emp456 IT
    Emp456 IT
    Emp456 IT
    Emp789 Operations
    Emp789 Operations


    Any help would be greatly appreciated!!!
    Last edited by NBVC; 01-26-2011 at 02:27 PM.

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

    Re: Help on filling in cells based on the value of another cell(s)

    In a new column enter formula:

    =LOOKUP(2,1/(($A$2:$A$12=A2)*($B$2:$B$12<>"")),$B$2:$B$12)

    adjust ranges and copied down

    where A2:B12 contains current list.

    Then you can copy this new column and paste special >> Values over original column B.
    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
    Registered User
    Join Date
    11-04-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Help on filling in cells based on the value of another cell(s)

    I'll have to take a look later at WHAT you did, but it worked perfectly! Thanks a ton!

+ 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