+ Reply to Thread
Results 1 to 4 of 4

Random number based on other cell conditions

  1. #1
    Registered User
    Join Date
    03-18-2016
    Location
    New Zealand
    MS-Off Ver
    2007
    Posts
    29

    Random number based on other cell conditions

    Hi everyone,

    I'm looking to make a data set for Credit rating, income and then 1 or 0 in column c for approved or declined based on those numbers for Credit Ratings and Income. I want it to be random but I want Credit ratings to be more likely to be higher if income is higher and if Credit rating and income are high I want it to be more likely to have a 1 for approved. The only way I can think of is with a nested if statement (=if(A3=">60000",randbetween(600,1000),randbetween(0,700)); this would be for random Credit rating. Is there a better way of doing this?

    I hope that made sense.

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Random number based on other cell conditions

    So what is wrong with your formula?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-18-2016
    Location
    New Zealand
    MS-Off Ver
    2007
    Posts
    29

    Re: Random number based on other cell conditions

    It's quite ridged, for instance what if I wanted 20000-40000 to have between 200-600, 40000-60000 to have 400-700 and 60000+ to have between 600-1000. Also How do I then do the 0 and 1 column based on the Credit Score Column and the Income column?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Random number based on other cell conditions

    As for the first part try pasting the following in B3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    As for the second part try pasting the following in C3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You'll probably need to play around with the second formula to get it to produce the percentages of 0's and 1's that you expect.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Random Number Based on Chances of Happening
    By ScabbyDog in forum Excel General
    Replies: 3
    Last Post: 03-02-2016, 05:41 AM
  2. Random Number From List That Changes for Every Cell Based on Criteria
    By Hellfromabove in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2013, 10:50 PM
  3. Replies: 8
    Last Post: 11-18-2013, 04:24 PM
  4. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  5. Make a cell a random number based on a counter
    By steinfm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2012, 02:15 AM
  6. Dynamically displaying cells based on a random number
    By Spikkle in forum Excel General
    Replies: 7
    Last Post: 01-24-2012, 03:33 PM
  7. Return random number based on probability
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-28-2011, 08:46 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