简体   繁体   中英

Autofill a cell data based on another cell in Excel

Is there a way to auto fill a cell in an excel sheet based on a data entry in another cell? Here is what I want to do: Suppose I have two columns in my sheet (A,B) . I want the column B to show data based on a data range in the column A , for example if the value entered is between 0 and 20 I want to the column B to show Bad , and if the value entered is between 21 and 60 I want B to show OK etc. How can I do that?

I am using Excel 2013. Thanks

=IF(A1<20;"Bad";IF(AND(20<A1;A1<60);"Ok"))

将此公式放在单元格B1中,只需将其复制并粘贴到B列中的其他单元格上即可实现此公式。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM