+ Reply to Thread
Results 1 to 9 of 9

Auto populate cells in one column based if cells in next column are populated

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007/10
    Posts
    22

    Auto populate cells in one column based if cells in next column are populated

    Hello,

    Im trying to auto populate cells in one column based if cells in next column are populated...I have copied data from one sheet to another using the following code:

    Please Login or Register  to view this content.
    I have used AL1000 as im not sure how much data will be held but not likely to be more than 1000 rows... the data i want auto populated would go in into A2, A3, A4 ect depending on how many cells in B:B are populated. The data to be auto populated is copied from one cell on Sheet1 and replicated, however i cant seem to get this to work.

    If anyone could help it would be greatly appreciated.

    Thank you in advance.

    Michael

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Michael
    It would help if we could see a sample of the before and after. That way we have an idea what you need to achieve.
    Tony

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007/10
    Posts
    22

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Tony,

    Unfortunately due to the nature of the data held within the workbook, it is not something that i can upload.

    Michael

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Michael
    I fully understand. Can you make up a dummy data sheet in that case?
    Tony

  5. #5
    Registered User
    Join Date
    04-12-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007/10
    Posts
    22

    Re: Auto populate cells in one column based if cells in next column are populated

    Hey,

    I have just done a basic thing with some notes on the sheets, if you need anything more please let me know

    Michael
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Michael
    I am struggling to fully understand the criteria for the copy from Sheets 1 and 2 to Sheet 6.
    Tony

  7. #7
    Registered User
    Join Date
    04-12-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007/10
    Posts
    22

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Tony

    Where the data in Sheet 2 is populated by data held in Google Drive the amount of rows of data that there will be is unknown, however all populated rows will need to be copied to Sheet 6.
    The amount of times the data from Sheet 1 "D2" is copied into column A on Sheet 6 will depend on the amount of rows copied into Sheet 6 from Sheet 2 . So if there are 50 rows copied from Sheet 2 to Sheet 6 then Sheet 1 "D2" will be copied into Sheet 6 "A2:A51" as there are column headings but if only 30 rows are copied over from Sheet 2 on "A2:A31" on Sheet 6 will be populated by the data in Sheet 1 "D2".

    I hope this is a bit clearer, sorry for any confusion.

    Michael

  8. #8
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Michael
    Thanks for your response. In Sheet 6 Column A I have created a formula which populates column A with the contents of Sheet 1 D2 if Column B is populated. See sample attached (it covers 1000 rows).
    Hope this helps
    Tony
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-12-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007/10
    Posts
    22

    Re: Auto populate cells in one column based if cells in next column are populated

    Hi Tony

    Thank you for your help, this works great. Very much appreciated.

    Michael

+ 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. Replies: 9
    Last Post: 06-08-2012, 06:22 PM
  2. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  3. Populate a 2-column list based on highlighted cells
    By Pergo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-02-2011, 11:28 AM
  4. Auto-populate column based on another column
    By technocrawl in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-05-2011, 03:03 PM
  5. [SOLVED] Auto populate cells based on 2 cells division.
    By Chance224 in forum Excel General
    Replies: 0
    Last Post: 04-04-2005, 05:06 PM

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