Results 1 to 1 of 1

Macro for inserting a new ROW based on a condition

Threaded View

elaph Macro for inserting a new ROW... 07-31-2024, 09:55 AM
  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Al Khobar, Saudi Arabia
    MS-Off Ver
    Excel 2010-2013
    Posts
    51

    Macro for inserting a new ROW based on a condition

    I have come across a requirement wherein a new row shall be inserted if a set of criteria are met. I would like to get the same done with the help of a button when clicked will run the MACRO.

    I have briefly elaborated in the excel spreadsheet attached here with. Please support.

    Many thanks in advance.

    Conditions / Criteria :

    1. If COLUMN "I" (Bal Qty.) = 0, then COLUMN "H" (Ship Qty.) should be made equal to COLUMN "G" (Quantity)

    2. If COLUMN "I" (Bal Qty.) <> 0, then COLUMN "H" (Ship Qty.) should be made equal to COLUMN "G" (Quantity), check IF COLUMN "D" (Concatenate) has duplicate line item, IF YES, a new line needs to be inserted and value of COLUMN "I" (Bal Qty.) from the previous row should be inserted into COLUMN "G" (Quantity)

    3. Insert a formula in COLUMN "I" (Bal Qty.) to be Column "G" (Quantity) - Column "H" (Ship Qty.) and will be applicable for all rows.

    The above condition will be applicable for all the rows in the spreadsheet. I hope I was able to clarify my requirement.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro for automatically inserting a new row and updating value based on condition
    By elaph in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2024, 05:01 PM
  2. Inserting blank rows based on condition
    By ananth22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2015, 04:32 PM
  3. [SOLVED] Inserting a sheet row based on condition
    By TMNuclear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2015, 11:11 AM
  4. [SOLVED] Inserting from table/legend based on condition
    By koshersalt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2012, 07:17 PM
  5. Inserting extra row based on condition
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2010, 08:40 PM
  6. Inserting row based on condition
    By XL2008 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2009, 01:03 PM
  7. [SOLVED] inserting a row based on a condition.
    By Gary in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2006, 09:15 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