+ Reply to Thread
Results 1 to 4 of 4

RANDBETWEEN question

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Maine
    MS-Off Ver
    Excel 2010
    Posts
    2

    RANDBETWEEN question

    Hi there,

    I've set up an Excel sheet to use for a sensitivity analysis in a spatial modeling exercise that I'm working on. I plan to vary values of each variable in the model by +-0.1 within my sensitivity analysis. So, if a value was set to 0.5 initially, during each run of the sensitivity analysis it will vary and be assigned 0.4, 0.5 or 0.6.

    I had planned to use =RANDBETWEEN(40,60)/100 but I am realizing that I am getting values that range from 0.40 - 0.60 (so, I could get 0.41, 0.42, 0.43, etc). I only want to have three values available: 0.4, 0.5 and 0.6.

    Any suggestions on how to fix this issue?

    Thanks so much!

    Cheers
    Shannon

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: RANDBETWEEN question

    Here!

    =CHOOSE(RANDBETWEEN(1,3),0.4,0.5,0.6)

    Deep
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    Maine
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: RANDBETWEEN question

    Thank you! I also just saw that I could use =FLOOR(RANDBETWEEN(40,60)/100,0.1).

    So many ways to accomplish the same task.

    Thanks again for your quick response!

    Cheers,
    Shannon

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: RANDBETWEEN question

    Glad it helped!!

    Deep

+ 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. [SOLVED] Question on formula for doing Randbetween If value is <20
    By phill5711 in forum Excel General
    Replies: 2
    Last Post: 04-23-2012, 04:20 AM
  2. Excel 2007 : Randbetween
    By Iandislikesformulas in forum Excel General
    Replies: 4
    Last Post: 08-31-2010, 08:42 PM
  3. randbetween
    By selena in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2009, 03:56 AM
  4. Randbetween
    By Gbonda in forum Excel General
    Replies: 1
    Last Post: 06-30-2005, 10:05 AM
  5. randbetween gives ?NAME
    By Kristjan_Thor in forum Excel General
    Replies: 5
    Last Post: 03-14-2005, 08:06 PM

Tags for this Thread

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