+ Reply to Thread
Results 1 to 8 of 8

Linear Values Dissolve

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Linear Values Dissolve

    I want to dissolve linear measured values so they split based on Begin & End values. I have attached image of data and desired results. Need to determine if values in Column B equal same value in Column C from previous row. If not, this would indicate a break in the value therefore creating a new output. If they are the same, then move to next row and execute the same test between Column B and Column C values.

    Linear Values Dissolve.JPG

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Linear Values Dissolve

    If I'm understanding correctly, then try the following formula in E3. It should be array-entered with Ctrl + Shift + Enter instead of Enter:

    =IFERROR(INDEX(A$3:A$19,SMALL(IF($B$3:$B$19<>$C$2:$C$18,ROW($C$3:$C$19)-ROW($C$3)+1),ROW(1:1))),"")

    Fill it right into F3. Array-enter the following into G3:

    =IFERROR(INDEX(C$3:C$19,SMALL(IF($C$3:$C$19<>$B$4:$B$20,ROW($C$3:$C$19)-ROW($C$3)+1),ROW(1:1))),"")

    Fill E3:G3 down beyond what you think you'll need and you should be good to go. It should automatically adjust as figures are changed in columns A:C. If you need it cover a bigger range, just change all of the range sizes to fit or exceed your actual ranges. Just make sure that the one range in each formula that is offset by one is changed to match. Take a look at the attachment to see if it'll do:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Linear Values Dissolve

    Amazing and so grateful for your quick response!! It works perfect!!! Thank you very much CAntosh !!!!

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Linear Values Dissolve

    Glad to help, good luck!

  5. #5
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Linear Values Dissolve

    It works great but when I change value in Column C with the second to last value (C:19), then ALL output becomes blank in Columns E & F. So for instance, I added two additional rows. A:19 = TEST 3, B:19 = 200.5, C:19 = 1500, A:20 = TEST 3, B:20 = 1500, C:20 = 3000. If I change C:19 from 1500 to 1300 then all data in Columns E & F become blank.

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Linear Values Dissolve

    Can you post a sample of what you're seeing? All blanks suggests that the ranges in the formula are not all the same size (one range in each formula should be offset one cell up or down, but it should still be the same size), but it's hard to be certain without seeing what you've got.

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Linear Values Dissolve

    My apologies. Please disregard.... I just extended my Range Wayyyyy down and it is now accepting dynamic values. Thank you again CAntosh.

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Linear Values Dissolve

    No worries, I'm glad it's working for you!

+ 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. Solver: How to maximize a mark average (non-linear problem) in a linear way?
    By Sunday4th in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2017, 07:42 AM
  2. Finding values using linear extrapolation
    By DMG5895 in forum Excel General
    Replies: 20
    Last Post: 03-26-2014, 04:34 PM
  3. How to graph a linear equation with x and y values.
    By Nickbruno in forum Excel General
    Replies: 2
    Last Post: 01-22-2012, 12:10 AM
  4. Predicting values for non-linear set of data
    By scoffman in forum Excel General
    Replies: 4
    Last Post: 04-22-2011, 09:50 AM
  5. Dissolve One Field, Append to another
    By floyd434 in forum Excel General
    Replies: 15
    Last Post: 09-22-2010, 05:02 PM
  6. Replies: 2
    Last Post: 01-15-2006, 05:10 PM
  7. Can you interpolate a non-linear set of values?
    By Piffas in forum Excel General
    Replies: 2
    Last Post: 11-18-2005, 06:25 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