Simulation of a random lottery system in the Excel2013 table

Source: Internet
Author: User

Statistics of various areas of the company's personnel situation, the following to draw a person, as a lucky audience, to give material rewards. Of course also can not have a trick, otherwise will cause disobedience, here we will use Rand random function, the following is I do a lottery simulation system.

Example Tutorial

① open Excel, the list of people involved in the lottery has been made and we enter directly into the F2 cell: =indirect ("D" &int (RAND () *13+2))

The meaning of ② formula I will explain later, enter press, get a person's name: Bowen.

③ Select the A:d column, click the menu bar-conditional formatting-new rule option.

④ Select the last rule type, use the formula to determine the cell to format, enter the formula: = $D 1= $F $, click Format button.

⑤ sets the cell format, which is the actual way the winning person is in the list, to distinguish it from others.

⑥ finished, as Evergrande won the Asian Championship, Huang Boven Award. We press the F9 key to refresh and the lottery will be again.

Formula description

The INT function returns a random integer of 2-14, and the D concatenation returns the random cell between D2:D14, and finally, indirect returns the name of the random cell.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.