Formula

TC123

New Member
Joined
Dec 14, 2010
Messages
32
<TABLE id=post2653892 class=tborder border=0 cellSpacing=0 cellPadding=6 width="100%" align=center><TBODY><TR vAlign=top><TD style="BORDER-RIGHT: #ffffff 1px solid" id=td_post_2653892 class=alt1>Sorry to be a pain but I was also wondering if you could help me with one other small problem. I have 7 columns - A B C D E F G. In column G, I would like it to work out (in minutes) again what E2-A2 is (which is fine as I know how to do this now). However, I only want column G to work this out if columns B2 and D2 are empty. If they are not empty and have a figure I want column G to show 00:00. Does this make sense?

Thank you again
<!-- / message --></TD></TR><TR><TD style="BORDER-BOTTOM: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-TOP: #ffffff 0px solid; BORDER-RIGHT: #ffffff 1px solid" class=alt2> </TD><TD style="BORDER-BOTTOM: #ffffff 1px solid; BORDER-LEFT: #ffffff 0px solid; BORDER-TOP: #ffffff 0px solid; BORDER-RIGHT: #ffffff 1px solid" class=alt1 align=right><!-- controls --></TD></TR></TBODY></TABLE>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Thank you, that has worked and has returned 00:00 when the cells are not empty but has not worked when the cells are empty. I'm putting in the formula but nothing is happening, the cell is leaving the formula displayed.

I am entering =IF(AND(ISBLANK(B2),ISBLANK(D2)),"E2-A2*24*60","00:00") but nothing is happening. Is this correct?

Thanks
 
Upvote 0
Remove all the quotation marks, and change the 00:00 to just 0. Or

=IF(COUNTA(B2, D2), 0, E2-A2*24*60)
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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