+ Reply to Thread
Results 1 to 4 of 4

Automatically create new column based on pre-defined number

  1. #1
    Forum Contributor
    Join Date
    12-09-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    103

    Automatically create new column based on pre-defined number

    Hi All,

    I am wondering if there is any way we can tell excel to automatically generate new column based on pre-defined number.

    For example, let say pre-defined number is 3, it generates 3 columns


    pre-defined number is 5, it generates 5 columns



    and so on.

    Many Thanks

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Automatically create new column based on pre-defined number

    Hi uqls and welcome to the forum,

    This sounds like a VBA or Macro problem to me. Where do you want to generate/add/insert those columns? Could you supply a sample workbook and we can give a better answer.

    This might be a start.. https://www.exceldemy.com/insert-column-excel-vba/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-09-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    103

    Re: Automatically create new column based on pre-defined number

    Thanks for your response.

    It does not matter. The column can be anywhere in the excel. Can this be done through s simple excel function?

    Hope to here from you

    Many thanks

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Automatically create new column based on pre-defined number

    Hey uqls,

    I don't think inserting a column can be done with a function. I think it must be done manually or using a VBA script.

    BUT - I've been proven wrong by some of the smart Guru's here on the forum.

+ 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 copy some cells from row based on number in column A
    By Bennett_Vic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2022, 08:29 AM
  2. Replies: 3
    Last Post: 03-16-2021, 09:43 AM
  3. Automatically fill a cell based on number - Column coloring
    By carduel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-04-2016, 03:42 PM
  4. [SOLVED] I want to create a variable based on the number of Y's in a column
    By Jubb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 08:33 PM
  5. [SOLVED] Create a defined number of copied cells for values found in a column
    By S.Taylor in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 11-08-2013, 04:25 AM
  6. Add Random Number in a Column based on defined Number in another Column
    By Pack Dog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2010, 05:09 AM
  7. Automatically create rows of defined data in a new sheet
    By imgr8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2008, 05:01 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