简体   繁体   中英

In Excel, how do I make a column take on the value of column A if it's not NA and otherwise take on the value of column B?

I've got 2 columns (A and B) and both sometimes take on NA values. I want column C to take on the value of column A if A != NA and otherwise take on the value of column B.

Use this formula:

=IFERROR(A1,B1)

Put this in C1 and copy/fill down.

在此处输入图片说明

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