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?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
=IF(VALUE(E30&E31)>VALUE(O23&Q45);VALUE(E30&E31)-VALUE(O23&Q45);"")
 
Upvote 0
Thanks for that

Ive tried copying the formula below in next set of cells below and get #VALUE! Any ideas?

=IF(E32+E33>S23+Q46,E32+E33-S23-Q46,"")
 
Upvote 0
Ive tried copying the formula below in next set of cells below and get #VALUE! Any ideas?
You may get that if you have some nun-numeric values in the cells.
Are there only numbers (no "spaces")?
Are all the numbers entered as numbers, and not as spaces?
 
Upvote 0
The cells that I am getting the data from have a link pasted to it from a different worksheet.

Would that be it?
 
Upvote 0
The cells that I am getting the data from have a link pasted to it from a different worksheet.
It depends. Links can pull back both text and valid numbers.
One easy way to tell is to look at the cell. Are the numbers left-justified or right-justified in the cell?
Text is usually left-justified, and numbers are usually right-justified.

Is there are chance you can post images of the cells that the formula is referencing so we can see what they look like?
 
Upvote 0
In cell E33, you have an IF function that returns "" if not true.
Don't do that. If you want to use these cells in mathematical computations, return only numbers, not text or "". Addition won't work with those.

I would recommend having that formula return 0 instead of "".
If you do not want to show the zero in that cell, you can use Conditional Formatting to change the font of the cell to be white if it is zero so that it matches the background, and does not show.
And then your other computations that depend on that cell will work like they are supposed to.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

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