+ Reply to Thread
Results 1 to 5 of 5

assign two fixed values randomly in a column

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    assign two fixed values randomly in a column

    I've attached a worksheet which shows the inputs, and the desired result for a table I want to create.

    There are two fixed values (e.g. 15% and 40%) which I want to assign to x number of rows, so that 80% of the rows are filled with the value of 15%, and the remaining rows are filled with the value of 40%.

    Any advice? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: assign two fixed values randomly in a column

    Please try in C13:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Every time when you press F9, you will get a new result.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-04-2023 at 09:59 PM.

  3. #3
    Registered User
    Join Date
    06-02-2020
    Location
    Turkey
    MS-Off Ver
    365 TR - V.2309
    Posts
    97

    Re: assign two fixed values randomly in a column

    Hi,

    My solution is as in the picture.

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

  4. #4
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    Re: assign two fixed values randomly in a column

    Thanks! This helps.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: assign two fixed values randomly in a column

    You are Welcome!

    Thanks for the feedback and rep. . Glad to have helped.

+ 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. Randomly assign cell values by date
    By ubagas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2021, 08:36 AM
  2. [SOLVED] How to generate fixed length of data (randomly)
    By Andy8 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-29-2016, 01:17 PM
  3. [SOLVED] Formula to randomly assign one of four values to a cell
    By harryadkins in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2016, 04:37 AM
  4. Replies: 10
    Last Post: 11-21-2015, 12:06 PM
  5. Assign fixed values to array / For...Next loop
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2011, 05:43 PM
  6. Randomly assign a value to rows
    By covegolfer in forum Excel General
    Replies: 3
    Last Post: 06-13-2011, 12:29 PM
  7. [SOLVED] How do I randomly assign values in a grid?
    By Excel question in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2005, 08:05 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