Returning a "0" instead of a "FALSE" value

TC123

New Member
Joined
Dec 14, 2010
Messages
32
Hi,

I have the following formula, =IF(AND(ISBLANK(G8),ISBLANK(J8)),(K8-F8)*24*60) which works fine but if G8 and J8 are not blank it is returning a "FALSE" value. I would like it to return a 0 instead of FALSE. Does anybody know how to do this?

Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi

Insert your desired result in the 3rd argument space of the IF formula (ie the one returned if the conditional first argument returns FALSE:

=IF(AND(ISBLANK(G8),ISBLANK(J8)),(K8-F8)*24*60,0)
 
Upvote 0
hi

i have noticed that you have no value for false, so use below

Code:
=IF(AND(ISBLANK(G8),ISBLANK(J8)),(K8-F8)*24*60,0)

this has false as 0 so hope it works otherwise move it to appropriate place

kristian
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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