Please amend this formula

lukerees83

Board Regular
Joined
Mar 28, 2011
Messages
59
This is the formula I currently have in one of my cells, and I have dragged it down one column so it calculates for hundreds more:

=IFERROR(((F5*60)+G5)-25,"")

However, if this formula is applied to 2 cells which are blank (for example in this case F5 & G5), it will of course keep coming up with -25 as the result.

I would like to add a little extra to this formula so that it says "if the result of this calculation is -25 just leave the cell blank."

Is this possible?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You could try counting the values in F5 and G5 and only calculate if both are populated, e.g.

=IF(COUNT(F5,G5)=2,F5*60+G5-25,"")
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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