Using COUNTIF function to sort data in WPS

Source: Internet
Author: User
Tags sort

Rank functions are often used to sort data. But if we use the Kingsoft table in WPS Office 2003 to prioritize numbers, we'll find no rank function in this version of the Jinshan table.

So, in the absence of a rank function, how do you order numbers? In fact, we can use the COUNTIF function to accomplish this task.

Suppose the number sequence is in cell h2:h20. The numbers rank in the I2:i20 cell. Then click the I2 cell and enter the following formula: "=countif ($G $ $G $," > "&g2) +1" (excluding the outer double quotes). The rank of H2 cell data in the series can be obtained after the carriage return. Click the I2 cell, and then drag its fill handle down to copy the formula to the I20 cell, and all the number rankings are available, and the effect is exactly the same as using the Rank function, as shown in Figure 1.

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.