Conditional Format question

Toonies

Board Regular
Joined
Jun 8, 2009
Messages
236
Hi and thanks for taking the time to look at my question, which is

I am using this formula which works fine

Code:
=IF(E40>E43,"-","")&TEXT(ABS(E43-E40),"[h]:mm")

What I would like is when E40 and E43 are blank
I would like the answer cell E46 to be blank
(both cells are formatted to [h]:mm)

At present the answer cell E46 shows 0:00

I have tried conditional formating the cell to =0 but it still shows 0:00

Wondering if anyone has an answer.

Many thanks

Toonies
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
=IF(AND(E40="",E43=""),"",IF(E40>E43,"-","")&TEXT(ABS(E43-E40),"[h]:mm"))

Will this help!!
 
Upvote 0
I don't know whats wrong with both the formula it should display blank. I guess your E40 and E43 is never blank it must be zero I think.

if so this should help
Code:
=IF(AND(E40=0,E43=0),"",IF(E40>E43,"-","")&TEXT(ABS(E43-E40),"[h]:mm"))
See if this can do the trick!!!
 
Last edited:
Upvote 0
Hi that did the trick

Plus I used the following Conditional Formatting

Code:
=IF(E40>0,E40,"")
 
=IF(E43>0,E43,"")

Many thanks

Toonies
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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