+ Reply to Thread
Results 1 to 12 of 12

Determining minimum of ranges separated by blanks

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Determining minimum of ranges separated by blanks

    Hello,

    I am trying to determine the minimum price in several groups separated by blanks with varying quantities of cells. For example:.

    Column D

    1.226
    1.666
    1.233

    1.846
    1.899

    1.555
    1.963
    1.877
    1.856

    There are no common names in other columns that link the groups together.. otherwise I think I could use a pivot. Can anybody help me out? either with a regular function or a macro? I would like to be able to return a value in each cell of Column E.

    Thank you very much!

    Brendan

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Determining minimum of ranges separated by blanks

    Hi.

    So can you add your expected results to that table?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Determining minimum of ranges separated by blanks

    Yes, I would likem them to appear in the next column over.

    Thank you

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Determining minimum of ranges separated by blanks

    No! I meant can you add some manually-calculated results to your post so that we know what results we're aiming for.

    Regards

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Determining minimum of ranges separated by blanks

    With 2 helpcolumns (just column B will do, with the formula below).

    After that an pivot table.

    See the attached file.

    B4=if(A4="","","Group "&countif($A$4:$A4,"")+1) and drag down.
    Attached Files Attached Files
    Last edited by oeldere; 02-13-2015 at 11:17 AM.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Determining minimum of ranges separated by blanks

    Sure, sorry about that. Here is what i'm looking for:

    Column D Column E

    1.226 1.226
    1.666 1.226
    1.233 1.226


    1.899 1.846
    1.846 1.846

    1.555 1.554
    1.963 1.554
    1.554 1.554
    1.856 1.554



    Thank you

  7. #7
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Determining minimum of ranges separated by blanks

    Im' sorry oeldere, but I don't have common group names to create a pivot with! assigning common names would take as long as manual analysis to determine the minimums

  8. #8
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Determining minimum of ranges separated by blanks

    Thanks oeldere, it works great!

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Determining minimum of ranges separated by blanks

    I understand the question as follow:

    1) determine which data belongs in the same group.

    2) after that I (you) be able to get the minimum value (e.g.) with an pivot table.

    The formulat I gave you will solve 1).

  10. #10
    Registered User
    Join Date
    02-13-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Determining minimum of ranges separated by blanks

    excellent, how can i close the thread?

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Determining minimum of ranges separated by blanks

    Since you are new on the forum, you can add rep(utationpoints) to the one's who helped you by clicking on the star on the left side.

    You can close the question above the your first question (#1)

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Determining minimum of ranges separated by blanks

    Enter this formula in A2 and fill down. Data is in B2:B12

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Result:

    A
    B
    2
    1
    1.226
    3
    1
    1.666
    4
    1
    1.233
    5
    6
    2
    1.846
    7
    2
    1.899
    8
    9
    3
    1.555
    10
    3
    1.963
    11
    3
    1.877
    12
    3
    1.856


    Enter this ARRAY formula in C2 and fill down: (Enter with Ctrl + Shift + Enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Result

    A
    B
    C
    2
    1
    1.226
    1.226
    3
    1
    1.666
    1.226
    4
    1
    1.233
    1.226
    5
    6
    2
    1.846
    1.846
    7
    2
    1.899
    1.846
    8
    9
    3
    1.555
    1.555
    10
    3
    1.963
    1.555
    11
    3
    1.877
    1.555
    12
    3
    1.856
    1.555
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Find missing data in columns ignoring blanks, separated by semicolon
    By Cboggie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-28-2014, 10:04 PM
  2. Replies: 10
    Last Post: 01-18-2013, 06:07 PM
  3. Conditional minimum in range, ignoring zero/blanks
    By hriggs in forum Excel General
    Replies: 2
    Last Post: 02-24-2011, 08:13 AM
  4. Determining Blanks in Array
    By Peter00 in forum Excel General
    Replies: 3
    Last Post: 02-08-2011, 02:08 PM
  5. Copy & paste ranges separated by blanks
    By siri4vijji in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2008, 11:37 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