+ Reply to Thread
Results 1 to 2 of 2

Macro To Duplicate A Row Based on a Cell Value and to Halve the Quantities/Revenue

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    houston
    MS-Off Ver
    16
    Posts
    6

    Macro To Duplicate A Row Based on a Cell Value and to Halve the Quantities/Revenue

    Hi,

    I'm trying to get the following done for a subset of my master dataset.
    The data has account name, salesrep, revenue, quantity
    Sometimes the salesrep is a salesgroup, i.e. assigned to two reps instead of one.
    When that happens, I need to manually insert a line, copy the row, then split the revenue and and quantity equally between the original and duplicated row.
    Can someone please help me with a vba code that would help me achieve this much faster?

    Thank you!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro To Duplicate A Row Based on a Cell Value and to Halve the Quantities/Revenue

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Count if for duplicate quantities
    By Jonmc89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2017, 08:34 AM
  2. Macro to duplicate rows based on cell value
    By KBEZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2016, 11:58 AM
  3. [SOLVED] Summation of Quantities for Duplicate Part Numbers - VBA Help please
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2016, 12:42 AM
  4. Revenue Calculation based on Variable revenue Percentage
    By suhabthan in forum Excel General
    Replies: 0
    Last Post: 06-19-2014, 12:48 PM
  5. Need help summing quantities of numerous duplicate entries
    By luthierwnc in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 11:53 AM
  6. [SOLVED] macro to create rows of data based on divided quantities
    By MSApprentice in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2011, 12:19 PM
  7. Replies: 4
    Last Post: 08-11-2009, 11:16 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