+ Reply to Thread
Results 1 to 13 of 13

Insert new row based on condition ?

  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Insert new row based on condition ?

    Hi,

    My requirement is :-
    A B C
    1000 500 500
    500
    300 300 0
    475 275 200
    200
    650 650 0
    400 400 0
    300 100 200
    200


    IF A - B > 0 (C), new line needs to be inserted automatically with the pending value as per the example.
    How to achieve the expected ? Please treat this as most urgent.
    Thanks in advance.

    Regards
    RAM
    Attached Files Attached Files
    Last edited by ramshakku; 09-29-2014 at 01:32 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Insert new row based on condition ?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Hi Sixthsense,

    I have uploaded my issue in the separate excel as requested by you.
    Kindly help me to arrive my desired output at the earliest please.
    Thanks in advance.

    Ram.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Insert new row based on condition ?

    Hi ramshakku,

    Welcome to the forum!!

    Though there's no attachment I think this is what you're after:

    Please Login or Register  to view this content.
    If this doesn't meet your needs you'll have to try to attach a workbook again as Sixthsense has nicely documented.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Hi Robert,

    I have uploaded my issue in the main thread.
    Anyway once again I am uploading the same here for your scrutiny.
    Please do the needful.

    Regards,
    RAM
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Insert new row based on condition ?

    Hello robert,

    Please review my attachment and provide me the necessary VB Code to proceed further.

    Regards,

    RAM
    Please do not PM members for help as it's against forum rules (Rule 4 from here to be precise).

    I'm glad you posted the workbook as your actual requirements are quite different from your request!!

    See how this goes:

    Please Login or Register  to view this content.
    Regards,

    Robert

  7. #7
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Hello Robert,

    Thanks for the update.
    Sorry for disturbing thru PM.
    Will keep in touch with you.

    Regards,
    RAM

  8. #8
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Hi Robert,

    I need just more validation in that Code.
    If Item Number and Date combination already exists, the new line should not be created.
    Kindly help me to achieve the above validation.
    Thanks in advance.

    Regards,
    Ram.

  9. #9
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Insert new row based on condition ?

    If Item Number and Date combination already exists, the new line should not be created.
    I don't know what you mean as the item and date combination already exist for each line.

    You'll need to attach another workbook with a before and after scenario.

  10. #10
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Hi Robert,

    The Last line of the every Item only should be validated.
    Based on that new line needs to be created with pending quality.
    Please do the needful.

    Regards,
    RAM
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Insert new row based on condition ?

    Try this:

    Please Login or Register  to view this content.
    Robert

  12. #12
    Registered User
    Join Date
    09-29-2014
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    7

    Re: Insert new row based on condition ?

    Thanks Robert. Thanks a lot

    Ram

  13. #13
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Insert new row based on condition ?

    You're welcome

    If you could mark the thread as solved it would be appreciated.

+ 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] Insert a blank row after based upon a condition
    By mm82 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-09-2014, 12:12 PM
  2. Insert Row and Values based upon condition
    By btamulis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 01:52 PM
  3. Need to insert Rows Based on a Condition
    By skandkamat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 12:06 AM
  4. Insert value to a different cell based on condition
    By Ramzes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-24-2011, 09:49 AM
  5. Insert row based on condition
    By Letthew in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2009, 08:39 AM

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