+ Reply to Thread
Results 1 to 3 of 3

Question Inserting Rows based on cell differences and interpolating in between

  1. #1
    Registered User
    Join Date
    07-04-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Question Inserting Rows based on cell differences and interpolating in between

    Hello -

    I have a complicated issue. I have a file with 5 columns (A, B, C, D, E).
    A is fixed string value.
    B is a number increasing irregularly.
    C, D, E, are given values.

    What I need to do is have column B regular (i.e. every 1). So I have to insert rows between B i.e.(B2-B1) will determine how many rows between B1 & B2 and then (B3-B2) will determine how many rows between B2 & B3 and so on.
    After inserting the rows, I have to linear interpolate columns C, D & E in the newly created empty rows. In all cases I want to keep the original values and interpolate between them.

    The other issue is that column B has decimal/fraction, but I think I can round this to the nearest integer to make it easier for interpolation.

    I tried this one but I think I have a problem with the insert loop!

    Please Login or Register  to view this content.
    Example Input: http://i65.tinypic.com/v30kz6.jpg
    Desired output: http://i66.tinypic.com/2hrod4n.jpg
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-04-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Question Inserting Rows based on cell differences and interpolating in between

    Other posts I have in other forums - I apologize for not posting these earlier:
    http://www.mrexcel.com/forum/excel-q...g-between.html
    http://www.ozgrid.com/forum/showthre...001#post776001
    http://www.vbaexpress.com/forum/show...tween&p=348053
    https://groups.google.com/forum/#!to...ng/gjmgjk3KyU8

  3. #3
    Registered User
    Join Date
    07-04-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Question Inserting Rows based on cell differences and interpolating in between

    I had help here: http://www.vbaexpress.com/forum/show...ing-in-between and it works perfectly now.

+ 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. inserting rows based on cell range not being blanks
    By benoj2005 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2014, 08:33 AM
  2. Inserting Rows Based on Cell Value.
    By feather-chaser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 05:39 AM
  3. [SOLVED] Splitting cell contents based on Comma and inserting new rows below it.
    By SS113 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2013, 09:09 AM
  4. Inserting Rows based on a cell value and populating them.
    By Cleanroomservices in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2012, 11:24 AM
  5. Inserting, Cutting, and Pasting Rows Based on What's in a Cell
    By 4EverLearning in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2010, 04:42 PM
  6. Inserting rows based on cell value
    By iwontbelost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2009, 07:45 AM
  7. [SOLVED] Inserting Rows w/formulas question
    By Buckwheat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2005, 06:06 PM

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