+ Reply to Thread
Results 1 to 2 of 2

How to increment column value as per previous column and validations

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Post How to increment column value as per previous column and validations

    Hi All,

    I Require help in creating Macros for Excel sheet . I have a Excel sheet in which there are many numbers of columns. There is duplication of columns too. I am attaching the Excel for Reference.

    I want to create Macro for a particular column name “Id” whose first occurrence should be ‘2’ and after that it must increment by 1.
    There must be a validation that before setting the “Id” column value, the previous column (left one attached column) must not empty other don’t set the “Id” column Value and check for it’s next occurrence and same validation.

    One More Thing as the column numbers can vary means can increase i.e. there is no fix no of “Id” column. So this setting of value should occurs till the last occurrence of “Id” column.
    Attached Files Attached Files
    Last edited by pan07; 08-31-2012 at 10:01 AM. Reason: Moderator asked

  2. #2
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    How to increment column value as per previous column and validations

    I Require help in creating Macros for Excel sheet . I have a Excel sheet in which there are many numbers of columns. There is duplication of columns too. I am attaching the Excel for Reference.

    I want to create Macro for a particular column name “Id” whose first occurrence should be ‘2’ and after that it must increment by 1.
    There must be a validation that before setting the “Id” column value, the previous column (left one attached column) must not empty other don’t set the “Id” column Value and check for it’s next occurrence and same validation.

    One More Thing as the column numbers can vary means can increase i.e. there is no fix no of “Id” column. So this setting of value should occurs till the last occurrence of “Id” column.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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