+ Reply to Thread
Results 1 to 4 of 4

Auto fill column based on adjacent column

  1. #1
    Registered User
    Join Date
    06-08-2011
    Location
    Falls Church, VA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Auto fill column based on adjacent column

    Hello,

    I'm trying to write a macro to do the following:

    - In a sheet, auto fill the column "Adjusted" with the values in the column "PM"
    - Only auto populate the column of the active sheet, as this is a shared workbook. I do not want to overwrite other people's work.

    Is this possible? I've attached my workbook with the six tabs. I have not been able to figure this out. Thanks for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto fill column based on adjacent column

    you have a lot of columns named PM and about as many named Adjusted.
    You'll have to be more specific about which column you want to autopopulate and with which data.
    Are you adding multiple PM column?
    Please advise.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    06-08-2011
    Location
    Falls Church, VA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Auto fill column based on adjacent column

    I would like the PM column for each color (named AMS46, Borg, etc) to populate the column next to it labeled Adjusted. So, you would see the same values in each column for each color

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto fill column based on adjacent column

    the following macro will work on the PM Input sheet only as all your sheets have different number of rows used as titles.
    If you can make all your sheet first rows all the same, you could use only one macro.
    One way around this would be to ask your operator to select the first PM cell in the table before running the macro.
    You could also add a check in the macro to make sure he or she has selected a cell with PM in it.

    The whole macro is based on the activecell.
    Please Login or Register  to view this content.

+ 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. [SOLVED] Fill Adjacent Cell with 0-30/30+/60+/90+ Past Due based on Dates in Column
    By Excelrookie01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-09-2017, 01:08 PM
  2. Auto fill macro when adjacent column has blank cells
    By ElsiePOA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2014, 09:49 PM
  3. [SOLVED] Auto fill a column based on date and color a column if past that date
    By thegunder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2013, 03:06 PM
  4. [SOLVED] auto fill series linear growth trend between non-adjacent cells in a column
    By gshorey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 04:34 PM
  5. Replies: 0
    Last Post: 08-10-2012, 12:55 PM
  6. [SOLVED] Auto Fill Column with Date based on rows in other column
    By JOUIOUI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2006, 01:35 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