+ Reply to Thread
Results 1 to 3 of 3

Variable=2 - Duplicate Row - Divide data by Variable - can anyone help me with this?

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    Manchester
    MS-Off Ver
    2016
    Posts
    12

    Variable=2 - Duplicate Row - Divide data by Variable - can anyone help me with this?

    Hi All,

    I have put together a dummy spreadsheet for this query (Please see attached Fig 1 and Excel Forum Sheet).

    I want to create a macro that when it runs, it reads the varible and duplicates that row. So if that row has a vairable of 2 i want it to duplicate it by 1 row so in total i have 2, if it has a variable of 3 then duplicate it 2 times so i have it 3 times. I also want the data in the data fields to be divided by the variable.

    Would really appreciate all you help with this.

    Many Thanks

    Maverick
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Variable=2 - Duplicate Row - Divide data by Variable - can anyone help me with this?

    try
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Variable=2 - Duplicate Row - Divide data by Variable - can anyone help me with this?

    Quote Originally Posted by protonLeah View Post
    ...Operation:=xlDivide, _
    Now THAT is a parameter you don't see very often! Glad somebody has a use for it.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

+ 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. Help to divide a number from a variable cell
    By maym in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-03-2017, 05:32 AM
  2. Select a variable amount of Data with duplicate info
    By nhudtwalcker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2014, 06:24 PM
  3. Replies: 2
    Last Post: 08-22-2014, 03:55 AM
  4. Duplicate Rows from Total sheet into individual sheets via variable data in column
    By natesdmf03 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2012, 11:47 PM
  5. variable in to input data into variable named sheet and if does not exist create
    By rwhidden in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2011, 12:08 AM
  6. divide variable value between variable cells????
    By richardeallen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2008, 01:54 PM
  7. [SOLVED] Variable as result of Divide (Sum) Function
    By David in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2006, 09:25 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