Excel - อย่าแสดงศูนย์หากผลลัพธ์เป็นโมฆะ

ปัญหา

ฉันไม่สามารถหาวิธีนำ Excel ใส่สิ่งที่อยู่ในเซลล์ไปยังเซลล์อื่นได้หากเซลล์มีช่องว่างอยู่ ตัวอย่างเช่นมีเซลล์ของข้อมูลที่ฉันต้องการคัดลอกไปยังแผ่นงานอื่นในสมุดงาน บางครั้งเซลล์ถูกปล่อยให้ว่าง ในกรณีนี้ฉันไม่ต้องการให้ Excel ใส่ "0" ลงในเซลล์ของชีตอื่น หากเซลล์ว่างเปล่าฉันต้องการให้เว้นว่างไว้บนชีตอื่นเช่นกัน ไม่ใช่ศูนย์เนื่องจากไม่มีศูนย์ในเซลล์ต้นแบบ

สารละลาย

คุณสามารถใช้สูตร if

  • =IF(A1="", "", Sheet2!A1) Paste this formula in Sheet2 A1 or where you need it. This will give the result of A1 if there are something in it. The "", "" stands for (something) 
  • =IF(A1="", "", Sheet2!A1) Paste this formula in Sheet2 A1 or where you need it. This will give the result of A1 if there are something in it. The "", "" stands for (something)
  • =IF(A1="", "", Sheet2!A1) Paste this formula in Sheet2 A1 or where you need it. This will give the result of A1 if there are something in it. The "", "" stands for (something)

ขอบคุณ Stormdronk สำหรับคำแนะนำนี้

บทความก่อนหน้านี้ บทความถัดไป

เคล็ดลับยอดนิยม