메인 컨텐츠로 가기

Excel에서 할당 된 확률을 기반으로 무작위 값을 생성하는 방법은 무엇입니까?

시트에 표시된 아래 스크린 샷과 같이 일부 값과 해당 할당 된 백분율이있는 표가있는 경우. 이제 값 목록과 할당 된 확률을 기반으로 임의의 값을 생성하려고합니다.
확률이 1 인 무작위 문서

확률로 임의 값 생성


화살표 블루 오른쪽 거품 확률로 임의 값 생성

실제로 확률이있는 임의 값을 생성하려면 두 개의 공식 만 필요합니다.

1. 표의 인접한 셀에 다음 수식을 입력합니다. = SUM ($ B $ 2 : B2)을 클릭하고이 수식을 필요한 셀로 끕니다. 스크린 샷보기 :
확률이 2 인 무작위 문서

2. 임의의 값을 배치 할 빈 셀을 선택하고 다음 수식을 입력합니다. =INDEX(A$2:A$8,COUNTIF(C$2:C$8,"<="&RAND())+1), 언론 강한 게 아니r 키. 그리고 F9 필요에 따라 값을 새로 고치려면 키를 누르십시오.
확률이 3 인 무작위 문서


관련 기사 :

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
A formula ta errada... <= altera a P()... Tem que ser < apenas... 

This comment was minimized by the moderator on the site
You're a life saver.
Thanks a million!
This comment was minimized by the moderator on the site
MÌNH KHÔNG HIỂU LẮM. TẠI SAO PHẢI LÀM NHƯ VẬY Ạ?
This comment was minimized by the moderator on the site
Ottimo lavoro! Questo è proprio quello che cercavo. Però non funziona con Calc di Open Office, che fra l'altro accetta solo i comandi in italiano.
E' possibile tradurla in modo che funzioni anche con calc? Io non ci sono riuscito.Grazie.

This comment was minimized by the moderator on the site
THE FORMULA WORKS ONLY IF ONE SUBSTITUTES RAND() WITH RANDBETWEEN(1;X) WHERE X IS THE TOTAL NUMBER OF POSSIBLE OUTCOMES, WHICH WOULD SIMPLY BY AN INTEGER GREATER THAN 1.
This comment was minimized by the moderator on the site
frankly I don't think this formula works.
I am trying to sample the results of an election so I have in a row the votes of different parties. no I want to go in & pick up randomly ten ballots (sort of like exit polling works), but I always get the first party in the rows.
This comment was minimized by the moderator on the site
How can I utilize this random number generator but only have it generate odd or even numbers inside of the criteria? When I add the "ODD" or "EVEN" coding, it only produces the number "1" in the cell.
This comment was minimized by the moderator on the site
Hi, Preston Ehrsam, the Insert Random Data tool cannot insert random even or odd numbers only.
This comment was minimized by the moderator on the site
Sorry Just Noticed that I extend the cumulative prob. outside the desired limits
This comment was minimized by the moderator on the site
Does this work if the data in the cells are horizontal instead of vertical? Mine is not. Thanks
This comment was minimized by the moderator on the site
Hello, can anyone help me getting the correct formula? I would like to get random values but with certain limits. For example, randomly get "red, blue, green, orange or pink", but I have a specific quantity of items for each color so I have to set this condition within the formula.
Thanks!
This comment was minimized by the moderator on the site
You can try the Insert Random Data to create the custom list as red, blue, green, orange and pink, then insert then to range randomly.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations