+ Reply to Thread
Results 1 to 6 of 6

Autofill a Column based on Value

  1. #1
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Autofill a Column based on Value

    Hello Everybody,

    Does anybody know how to create a macro that will autofill a column based on information in another Column. I would need for the macro to Check Column I first and see if it has any value. If it does it will then move onto Column N. If column N has no value then Column O will equal Manual. If Column N = Yes then Column O will equal Import. If Column I has no values then the macro will stop running. Thanks for your help.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Autofill a Column based on Value

    Please Login or Register  to view this content.
    two comments/questions:
    1) why you have not posted an attachment (to test code) - the above one uis not testet, but hope it works
    2) why use macro, and not filtering?

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Autofill a Column based on Value

    Just use a formula:
    =IF(I1<>"",IF(N1="",O1="Manual",IF(N1="Yes",O1="Import","")),"")
    if you really need it as a macro:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Autofill a Column based on Value

    PS. How about column N not empty, but also not "Yes"?

  5. #5
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Autofill a Column based on Value

    Its close. Is there a way to make it so that after the macro runs and the value in Column N changes so can the value in Column O. I attached the spreadsheet this time and included the coding I already have. I have a Dropdown menu in Column O that allows it to be changed to Yes. And the reason why I'm creating a macro is because I'm making it for a user not myself so I'm trying to make it as simple as possible and all they have to do is click a button.

  6. #6
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Autofill a Column based on Value

    Test123.xlsmSorry forgot to put this in the last post.

+ 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] AutoFill the first emty column based on the values of the last filled column
    By runneer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2013, 01:04 PM
  2. Need help with Macro to autofill formula in Column B based on length of Column A
    By soxsrules in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2013, 02:43 PM
  3. Autofill a column based on number in adjacent column
    By fbonetti in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2011, 04:19 PM
  4. Autofill Column B based on Column A entries
    By cprickett in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2009, 10:23 AM
  5. Autofill one column based on another column using a certain logic
    By arnabarnab in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2009, 02:38 AM

Tags for this Thread

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