Help needed with a formula.

ghrek

Active Member
Joined
Jul 29, 2005
Messages
426
Hi

Im trying to find a formula that calculates as follows.

if the value of data in cells E30&E31 combined are MORE than the value of O23&Q45 combined then I need the difference shown as a positive figure in cell I45.

Any ideas?
 
I understand that but I have exactly the same function in E31 and works fine. I need the formula to calculate so is there anyway to get over that
I don't think you do.

The issue is that the result of the formula in cell E31 is returning a valid number, so it can be used in addition/subtraction.
The result of the the formula in cell E33 is "", which is NOT a valid number, so it CANNOT be used in addition/subtraction.

I told you how to get around that. Is there an issue with doing it that way?
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I don't think you do.

The issue is that the result of the formula in cell E31 is returning a valid number, so it can be used in addition/subtraction.
The result of the the formula in cell E33 is "", which is NOT a valid number, so it CANNOT be used in addition/subtraction.

I told you how to get around that. Is there an issue with doing it that way?
That’s fine understand now thanks
 
Upvote 0
You could try:

Excel Formula:
=IF(N(E30)+N(E31)>N(O23)+N(Q45),N(E30)+N(E31)-N(O23)-N(Q45),"")

But I really agree with Joe. It makes more sense to return a 0 than a space if you're going to do math on it. This really complicates a simple formula. There are several ways to show an empty cell besides the way Joe suggested. See the link below.

 
Upvote 0
Solution

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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