+ Reply to Thread
Results 1 to 6 of 6

How to autofill a column with a cell content depending on content in another cell.

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    How to autofill a column with a cell content depending on content in another cell.

    I hope someone can help me here, though I probably am not very good at explaining it.

    I have a sheet with different types of working hours (D= dayshift, V=night shift, W=weekend shift)

    I want a column (K) that automatically shows the person from row 2, that has either V or W on that particular day.

    How do I do that?

    TEST.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to autofill a column with a cell content depending on content in another cell.

    One way could be this.

    In K3 and copy down.

    =IFERROR(IFERROR(INDEX($C$2:$J$2,MATCH("V",C3:J3,0)),INDEX($C$2:$J$2,MATCH("W",C3:J3,0))),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-02-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How to autofill a column with a cell content depending on content in another cell.

    Thanks, but I can't get it to work

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to autofill a column with a cell content depending on content in another cell.

    I copied and pasted as well. You have to alter the function for each row. The parts in the formula that read MATCH("V",C3:J3,0) and MATCH("W",C3:J3,0), have to be changed for each row (to C4:J4, C5:J5, C6:J6, etc.)

    EDIT: Never mind. Computer was giving me trouble today. (shocking!)
    Last edited by themurph2000; 08-17-2012 at 09:26 AM.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to autofill a column with a cell content depending on content in another cell.

    Take a look to the example.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-02-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How to autofill a column with a cell content depending on content in another cell.

    Fotis1991
    Thanks a lot. That worked just perfekt

+ 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