+ Reply to Thread
Results 1 to 3 of 3

Automatically copy cells content based on the content of another cell.

  1. #1
    Registered User
    Join Date
    02-01-2014
    Location
    manchester, england
    MS-Off Ver
    Excel 2003
    Posts
    1

    Automatically copy cells content based on the content of another cell.

    Hi i hope someone can help me. i want to be able to automatically generate a list of students who are absent on a given day based on the absence of a "y" in another cell.

    A colleague has suggested i could do this with VLOOKUP but i havent been able to find the answer online.

    i have attached a sample workbook if that is useful.

    Thanks in advance!!

    Chris
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Automatically copy cells content based on the content of another cell.

    Try this (Attached) - the macro code is on the Sheet1 tab in the VBA editor (Alt F11)
    Attached Files Attached Files
    Martin

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Automatically copy cells content based on the content of another cell.

    Hi and welcome to the forum!

    Based on your attachment, this array formula** in B14:

    =IF(ROWS($1:1)>COUNTIF($B$2:$B$9,""),"",INDEX($A$2:$A$9,SMALL(IF($B$2:$B$9="",ROW($B$2:$B$9)-MIN(ROW($B$2:$B$9))+1),ROWS($1:1))))

    Copy down until you start to get blanks for the results.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically filling in cells based on another cell's content
    By Ginger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] Automatically filling in cells based on another cell's content
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 PM
  3. [SOLVED] Automatically filling in cells based on another cell's content
    By Ginger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. Automatically filling in cells based on another cell's content
    By Arvi Laanemets in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 09:05 AM
  5. [SOLVED] Automatically filling in cells based on another cell's content
    By Ginger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM

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