+ Reply to Thread
Results 1 to 5 of 5

Add new column after condition

  1. #1
    Registered User
    Join Date
    02-23-2022
    Location
    paris
    MS-Off Ver
    2019
    Posts
    3

    Add new column after condition

    clients sent me a sheet that have a table from Week 1 to week 13 (13 column) some clients doesnt, for exemple just for 12, 11 weeks
    i want a macro to check if there is 13 column if not add new column in specific place
    Please Login or Register  to view this content.
    for the emplacement where i will add the column, it's dynamic, for example, if one client sends me a table with 12 weeks the headers will be, 1,2,3....12 in this case the new column will be added in the last , but another client send me a table like 1,2,4....13 so the new column should be added in the third place
    any idea how to make this solution, and thank you

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Add new column after condition

    I can get something working for you with an example workbook.

  3. #3
    Registered User
    Join Date
    02-23-2022
    Location
    paris
    MS-Off Ver
    2019
    Posts
    3

    Re: Add new column after condition

    thats a code that work
    Please Login or Register  to view this content.
    now i want to know how to put week X (X depend on what week is missing) on header plus add "0" in all columns
    www . excelforum. com/attachment.php?attachmentid=780083&stc=1&d=1652283439
    Attached Files Attached Files
    Last edited by idrislab; 05-11-2022 at 11:44 AM.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Add new column after condition

    See Top Yellow Banner...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    02-23-2022
    Location
    paris
    MS-Off Ver
    2019
    Posts
    3

    Re: Add new column after condition

    i just upload my file

+ 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] Match values of A column with B column if condition meet then highlight
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2021, 09:49 PM
  2. [SOLVED] Extract Data in Column B and Column C Into Column E and F Based on Condition in Column D
    By bjnockle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2021, 12:18 PM
  3. [SOLVED] Condition for two column if any one or both is true. And if condition for four column
    By omayer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2019, 07:32 AM
  4. [SOLVED] Delete rows if column A matches number and meets condition in another column
    By stokiejames09 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-05-2014, 05:03 PM
  5. [SOLVED] Count repeat numbers in column B based on a condition from Column Al
    By helpbitte in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2012, 10:11 AM
  6. Replies: 3
    Last Post: 08-07-2009, 12:03 PM
  7. Replies: 5
    Last Post: 08-05-2009, 02:43 PM

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