+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    109

    Cycle between next lowest number

    Hi,

    I'd like to be able to cycle through a restricted number of values in a matrix, using a form. In addition, I'd like to use a formula to define the first value of that cycle. Eg:

    matrix:{5;12,5;21;23;30}

    find lowest number higher than 16

    should be: 21, 23, 30 <- i want to be able to cycle through these numbers with a form (scroll bar)

    if possible, would also like this formula to show not only {21,23,30} but also {5+12,5=17,5;21;23;30}

    Is it possible?

    Thanks
    Attached Files Attached Files
    Last edited by Coaster; 03-21-2010 at 12:28 AM.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Cycle between next lowest number

    Hi,

    first it is possible
    second it is not straightforward

    To know how best to answer this it would be helpful to have somebackground information.
    - is this a one-off exercise
    - where is the data in the table coming from (and how is it entered)
    - are the row and column headings always the same values and the same number of them
    - How big is the table likely to be
    - who is going to use the spreadsheet (just you or other people)
    - what does the data relate to

    My thoughts are :
    - if the data was stored as three columns eg:
    col, row, value
    0.10,6,3.83

    - then you can use ADO sql query to do a select of all values greater than your value.
    - and another ADO sql query to do a union self join witha sum as a returned value and again exceeding your value.
    - it would be easy to have a table displayed in the same form as your current one



    Hope this was useful or entertaining.

  3. #3
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Cycle between next lowest number

    Hi tony h,

    Thanks for your reply.

    1. This is something I want to do to speed up the process of selecting the right combination. The table and all of its values are constant and of that size you see in the attachment, that is, it won't be changed (neither values nor headings)

    2. Background: this work is related to civil engineering. The row headings are diameters of reinforcement steel and the column headings are spacings. The data values are steel areas. Given a steel area (input) I want to select the lowest combination of diameter and spacing higher than the input area.

    3. I thought about and I would be please if it were possible to come up with a drop menu that showed the row's diameters and another that showed the column's spacings, thus not making it completely automatic (I would have to select the right combination) and then according to that selection, showed the corresponding value in the table.

    I guess this is simpler, the thing is that I have no idea how to do this

  4. #4
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Cycle between next lowest number

    This isn't quite the same as your suggestion But I wondered if this would do the job.

    My assumption is that only the sheet "Final" would be used. I left the others in there so you could see my working


    Hope this was useful or entertaining.

  5. #5
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Cycle between next lowest number

    Hi tony h,

    I guess you wanted to attach something but you didn't lol

    Thanks anyway

  6. #6
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Cycle between next lowest number

    The curses of having problematic broadband.

    Hopefully this one is attached.

    Attached Files Attached Files


    Hope this was useful or entertaining.

  7. #7
    Forum Contributor
    Join Date
    10-11-2008
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Cycle between next lowest number

    tks a lot! this solves my problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0