+ Reply to Thread
Results 1 to 13 of 13

Button to generate numbers from interval 0.0xx to 0.0yy

  1. #1
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Button to generate numbers from interval 0.0xx to 0.0yy

    Hello,

    It's my first post so I hope it will meet rules. My question is:

    I would like to generate numbers from small interval ex. 0.019 to 0.031 and add it to button, I was trying to use function randbetween but I'm getting error when trying to enter these numbers.
    Ater trying this function (found on this board) I'm getting only 0
    Please Login or Register  to view this content.
    Anyone could help with that?

    Thanks in advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Try this...

    =0.019+(ROW(1:1)-1)*0.012

    Drag it down....


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Hello,

    It worked but how I can manage to generate these numbers from button?
    Last edited by teh.format; 02-05-2014 at 05:12 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Copy the formula only

  5. #5
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    I edited my answer and I think you replied for previous version ;P

    Problem was I'm using polish version of Excel that why i get #NAME? in cell after adding ROW - > WIERSZ in polish it worked but can u answer how to add that into button so number can be generated by "click" ?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Try this...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    It is working partially :P.
    1. Range is from 0.019 to 1.207 at row 100 ( range should be from 0.019 to 0.031),
    2. After second click of button values doesnt change (i mean its not random really ;P).
    Last edited by teh.format; 02-05-2014 at 05:42 AM.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    I am little bit confused about your requirement

  9. #9
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Quote Originally Posted by :) Sixthsense :) View Post
    I am little bit confused about your requirement
    Let me explain more then:
    I need button that generates random number from range 0.019 to 0.031 in a specified cell for ex. A1 and it needs to update (generate new number) after click. Sorry for trouble.

  10. #10
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Try this..

    Please Login or Register  to view this content.
    rand NUmber.xlsm
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  11. #11
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    It's alive! Thanks
    So next question is when I want to change range I need to change values
    Please Login or Register  to view this content.
    right? and what about rest of function
    Please Login or Register  to view this content.
    ? Can u add comment how it works?

  12. #12
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Glad that its works..

    Here is the simplify section....

    Please Login or Register  to view this content.
    You can use CONST or NAMERANGE, if your Top & Bottom is not fixed..

  13. #13
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Button to generate numbers from interval 0.0xx to 0.0yy

    Again, BIG thanks!

+ 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. Avg numbers in specified interval from non-interval data
    By weeble33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2013, 07:27 PM
  2. VBA button to generate numbers based on formula
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2012, 08:23 PM
  3. Button to generate a sequence of numbers
    By adeleex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2011, 06:13 AM
  4. How to generate a certain data depending on the interval
    By lil_stadde in forum Excel General
    Replies: 1
    Last Post: 03-30-2010, 01:50 PM
  5. Button to Generate Random String of Numbers
    By dlenoxx in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-26-2009, 06: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