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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,224,551
Messages
6,179,473
Members
452,915
Latest member
hannnahheileen

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