ไปยังเนื้อหาหลัก

วิธีทำให้เซลล์ว่างเมื่อใช้สูตรจนกว่าข้อมูลจะเข้าสู่ Excel

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

เว้นเซลล์ว่างไว้จนกว่าข้อมูลจะถูกป้อน


ลูกศรสีฟ้าฟองขวา เว้นเซลล์ว่างไว้จนกว่าข้อมูลจะถูกป้อน

จริงๆแล้วมีสูตรที่สามารถช่วยให้คุณเก็บเซลล์สูตรว่างไว้ได้จนกว่าข้อมูลที่ป้อนในเซลล์อ้างอิง

ตัวอย่างเช่นที่นี่เพื่อคำนวณความแตกต่างระหว่างคอลัมน์ค่า 1 และค่าคอลัมน์ 2 ในความแตกต่างของคอลัมน์และคุณต้องการให้เซลล์ว่างหากมีเซลล์ว่างบางเซลล์ในคอลัมน์ค่า 1 และคอลัมน์ค่า 2

เลือกเซลล์แรกที่คุณต้องการวางผลลัพธ์จากการคำนวณพิมพ์สูตรนี้ = IF (หรือ (ISBLANK (A2), ISBLANK (B2)), "", A2-B2)แล้วลากเติมที่จับลงเพื่อใช้สูตรนี้กับเซลล์ที่คุณต้องการ
doc เว้นว่างไว้จนถึง 2

ในสูตร A2 และ B2 คือเซลล์อ้างอิงในสูตรที่คุณต้องการใช้ A2-B2 คือการคำนวณที่คุณต้องการใช้


แบทช์แทรกแถวหรือคอลัมน์ว่างในช่วงเวลาที่กำหนดในช่วง Excel

หากคุณต้องการแทรกแถวว่างในแถวอื่น ๆ คุณอาจต้องแทรกทีละแถว แต่ไฟล์ แทรกแถวและคอลัมน์ว่าง of Kutools สำหรับ Excel สามารถแก้งานนี้ได้ในไม่กี่วินาที คลิกเพื่อทดลองใช้ฟรี 30 วัน!
doc แทรกคอลัมน์แถวว่าง
Kutools for Excel: มีโปรแกรมเสริม Excel ที่มีประโยชน์มากกว่า 300 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how can i return both blank cells into a blank result

b2="v"
c2=""
b3=""
c3="v"
b4=""
c4=""

if b2="v","x"
if c2="v","y"
This comment was minimized by the moderator on the site
I am in xcel and need the cell where my formula is to remain blank until the data needed in the formula cells is entered. My formula is =A1+5
This comment was minimized by the moderator on the site
so at the minute i am trying to do totals on timesheets but in the formula which i have done E8-D8-0.50 in column I8 is showing as -0.50 how can i get it blank until data is inputted in those cells
This comment was minimized by the moderator on the site
Hi, Ollie, try this formula:
=IF(OR(ISBLANK(E8),ISBLANK(D8)), "",E8-D8-0.5)
This comment was minimized by the moderator on the site
Hi, Carmen,try this formula: =IF(OR(ISBLANK(B2),ISBLANK(C2)), "",B2/C2), it will keep blank until both of column C and column B are filled data.
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-keep-cell-blank.png
This comment was minimized by the moderator on the site
Hi, thank you much appreciated but I am still getting an error.

" There's a problem with the formula

Not trying to type a formula?
When the first character is an equal ("=") or a minus ("-") sign, Excel thinks its a formula:
you type: =1+1 the cell shows 2

To get around this try to type an apostrophe first:
'=1+1 the cell shows =1+1

I copied your code and replaced the column numbers.
This comment was minimized by the moderator on the site
Hi there, I want to create an epidemiologic formula to calculate the incidence proportion, which is the number of new cases during a specified time period / the number of people at risk. So essentially, column B divided by column C. However, I am creating the document for students of mine for their exam, so they can just type in the values and get the answer. I tried the formula you provided above =IF(OR(ISBLANK(A2),ISBLANK(B2)), "", A2-B2) but I keep getting an error. Can anyone assist?

Thanks.
This comment was minimized by the moderator on the site
Olá pessoal, parabéns pelo site, tem me ajudado bastante, segue abaixo um problema que ainda não consegui resolver, são várias situações em uma formula, segue descrição do que preciso e dados para criar o ambiente para que possa validar e quem sabe me ajudar com essa função:

Objetivo: fazer com que o Excel atualize a data de vencimento do contrato, somando a quantidade de meses da vigência, caso a renovação automática esteja "SIM" e se tiver "NÂO" ele não somará, assim um contrato que foi assinado em janeiro de 2021 e já teve sua renovação automática de 12 meses aplicada deve ter a data de vencimento atualizada para janeiro de 2023, se tivermos visualizando a planilha a partir de fevereiro de 2022, como seria essa formula?
Atualmente essa célula D1 já tem a seguinte formula que deve permanecer:
=SE(OU(ÉCÉL.VAZIA(A1);ÉCÉL.VAZIA(B1));"";(DATAM(A1;B1)))
Essa formula além de somar a data de assinatura do contrato e a vigência ela só apresenta o resultado se houver informações nas células A1 e B1, se não deixa vazia

Celular Formato Conteúdo Descrição
A1 Data Abreviada 12/11/2020 Dt Assinatura contrato
B1 Geral 12 Vigência (Meses)
C1 Geral Sim ou Não Renovação Automática
D1 Data Abreviada Formula Data Termino Contrato
This comment was minimized by the moderator on the site
Hi, Andre Oliveria, if cell A1 contains date and contract name, you need this formula
=MID(A1,MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789",1)),LEN(A1)+1)),LOOKUP(1,0*MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),ROW(INDIRECT("1:"&LEN(A1)))) + 1 - MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789",1)),LEN(A1)+1)))
to extract the date only, then use below formula
=IF(OR(ISBLANK(B1),ISBLANK(C1)),"",IF(EDATE(B1,C1)<=NOW(),EDATE(B1,C1+1), IF(LOWER(D1)="yes", EDATE(B1,C1*2+1), EDATE(B1,C1+1))))
to get the final date.
B1 is the extracted start date, C1 is the months, D1 is "yes"or"no".
This comment was minimized by the moderator on the site
Olá amigos, quero parabenizar a página pelas informações que me ajudaram e resolver um problema, porem agora preciso que um campo de data seja atualizada quando o campo renovação estiver como SIM, abaixo segue uma descrição e dados para ajudar, já tentei criar essa formula mais não consegui:

Celular Formato Conteúdo Descrição
A1 Data Abreviada 12/11/2020 Dt. Assinatura contrato
B1 Geral 12 Vigência (Meses)
C1 Geral Sim ou Não Renovação Automática
D1 Data Abreviada Formula Data Termino Contrato

Objetivo: fazer com que o Excel atualize a data de vencimento do contrato, somando a quantidade de meses da vigência, caso a renovação automática esteja "SIM" e se tiver "NÂO" ele não somará, assim um contrato que foi assinado em janeiro de 2021 e já teve sua renovação automática de 12 meses aplicada deve ter a data de vencimento atualizada para janeiro de 2023, se tivermos visualizando a planilha a partir de fevereiro de 2022, como seria essa formula?
Atualmente essa célula já tem a seguinte formula que deve permanecer:
=SE(OU(ÉCÉL.VAZIA(A1);ÉCÉL.VAZIA(B1));"";(DATAM(A1;B1)))
Essa formula além de somar a data de assinatura do contrato e a vigência ela só apresenta o resultado se houver informações nas células A1 e B1, se não deixa vazia

Se puderem me ajudar agradeço
This comment was minimized by the moderator on the site
I have created simple ss to calculated days from a set date in this case E2 with G2 = E2 +30

How do I hide the result in G2 until a date is entered into E2?

Is there a standard way of doing this in excel for multiple cells at one time?
This comment was minimized by the moderator on the site
Hi, HAMISH, take A1 is the cell used to enter date, C1 is the cell that used to add 30, now in cell C1, type the formula =IF(ISBLANK(A1), "", A1+30), then the result in C1 will be shown date + 30 if a date entered in cell A1, otherwise, it keep blank. Please see the gif attached below.
This comment was minimized by the moderator on the site
Thanks a lot!
It was absolutely helpful!
This comment was minimized by the moderator on the site
I have 2 columns one for due date another for overdue.In the overdue column i have due date cell minus Today(). I then drag that down the column. If i haven't yet put a date in the due date cell I would like to add an additonal formula that says if the due date is blank then its 0
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations