简体   繁体   中英

In google sheets, how to replace #N/A in column A with corresponding value in column B

请找到以下图片供您参考

Please find the below image for the clear understanding on what exactly i need. Thank you so much for your help in advance.

You should write formula for column C

=IF(A2 = "N/A", B2, A2)

Please check this sheet https://docs.google.com/spreadsheets/d/1DvXAZQKjso2FlbpT_hGX_SArAMd1O5Kcd2EomZyPp1I/edit?usp=sharing

After opening this sheet follow the following steps:

  1. Highlight all cells you need to modify.
  2. Take all formulas to the clipboard by pressing Ctrl+C on your keyboard.
  3. Then press Ctrl+Shift+V to paste back the values only:

you can do it by

=IFERROR(A1,B1)

N/A is not a string so I don't think IF will work here.

and this will not only replace #N/A but also any kind of errors

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