Using IF to check if a cell is blank - Microsoft Support
文章推薦指數: 80 %
Sometimes you need to check if a cell is blank, generally because you might not want a formula to display a result without input. ... In this case we're using IF ... Skiptomaincontent Officesupport Products Microsoft365 Office Outlook MicrosoftTeams OneDrive OneNote Windows MicrosoftEdge more... Devices Surface PCaccessories Mobile Xbox HoloLens Hardwarewarranties What'snew InstallOffice Account&billing Account MicrosoftStore&billing Templates Moresupport Communityforums Microsoft365Admins SmallBusinessAdmins Developer Education Reportasupportscam ExcelforMicrosoft365ExcelforMicrosoft365forMacExcel2021Excel2021forMacExcel2019Excel2019forMacExcel2016Excel2016forMacExcel2013Excel2010Excel2007ExcelforMac2011More...Less Sometimesyouneedtocheckifacellisblank,generallybecauseyoumightnotwantaformulatodisplayaresultwithoutinput. Inthiscasewe'reusingIFwiththeISBLANKfunction: =IF(ISBLANK(D2),"Blank","NotBlank") WhichsaysIF(D2isblank,thenreturn"Blank",otherwisereturn"NotBlank").Youcouldjustaseasilyuseyourownformulaforthe"NotBlank"conditionaswell.Inthenextexamplewe'reusing""insteadofISBLANK.The""essentiallymeans"nothing". =IF(D3="","Blank","NotBlank") ThisformulasaysIF(D3isnothing,thenreturn"Blank",otherwise"NotBlank").Hereisanexampleofaverycommonmethodofusing""topreventaformulafromcalculatingifadependentcellisblank: =IF(D3="","",YourFormula()) IF(D3isnothing,thenreturnnothing,otherwisecalculateyourformula). Needmorehelp? Expandyourskills ExploreTraining Getnewfeaturesfirst JoinMicrosoftInsiders Wasthisinformationhelpful? Yes No Thankyou!Anymorefeedback?(Themoreyoutellusthemorewecanhelp.) Canyouhelpusimprove?(Themoreyoutellusthemorewecanhelp.) Whataffectedyourexperience? Resolvedmyissue Clearinstructions Easytofollow Nojargon Pictureshelped Other Didn'tmatchmyscreen Incorrectinstructions Tootechnical Notenoughinformation Notenoughpictures Other Anyadditionalfeedback?(Optional) Submitfeedback Thankyouforyourfeedback! ×
延伸文章資訊
- 1Excel-巢狀IF函數練習(NOT,ISBLANK) - 學不完.教不停.用不盡
公式利用3 個IF 函數形成巢狀結構,而其中ISBLANK(B2) 用以判斷儲存格B2是否為空白,並傳回TRUE/FALSE 值。透過NOT 函數將傳回值TRUE/FALSE 值轉換 ...
- 2If Cell is Blank in Excel - Easy ISBLANK formulas
Remember, the IF function in Excel checks whether a condition is met, and returns one value if tr...
- 3If cell is blank - Excel formula - Exceljet
The Excel ISBLANK function returns TRUE when a cell is empty, and FALSE when a cell is not empty....
- 4Using IF to check if a cell is blank - Microsoft Support
Sometimes you need to check if a cell is blank, generally because you might not want a formula to...
- 5ISBLANK - 文件編輯器說明
檢查參照的儲存格是否空白。 用法示範. ISBLANK(A2). IF(ISBLANK(B1),,A1/B1). 語法. ISBLANK(value). value - 參照要檢查是否空白的儲存格。