Best Method

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
378
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
trying to check if range of cells is blank then display a time can use isblank on single cell but don't know how to cover two cells together

c1:d1 if both are blank then e1 displays blank else e1 displays 00:45

any help please
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You could use:

Excel Formula:
=if(AND(ISBLANK(C1),ISBLANK(D1)),"",Time(00,45,00))

But, if you have formulas that return "" in C1 orD1, they are not BLANK cells. BLANK meas absolutely nothing.
Instead use
Excel Formula:
IF(and(C1="",D1=""),"",Time(00,45,00))
 
Upvote 0
Solution
Thank you
You're welcome.

If the range your're checking is long and you need to type a lot of equations, then you can use CountIFS:
=IF(COUNTIFS(C1:Z1,"")=COLUMNS(C1:Z1),"", TIME(00,45,00))

Also, instead of the TIME() Function you could use 45/(60*24).
 
Upvote 1

Forum statistics

Threads
1,215,079
Messages
6,122,998
Members
449,092
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top