IF FUNCTION IN COMPARING STATEMENT OF ACCOUNTS

daniele_t

New Member
Joined
Sep 7, 2022
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
Firstly, thank you and apologies for the banality of the question. I am not experienced at all with formulas. Looked through the posts but cannot find appropriate solution.

I am trying to create an IF formula to compare > (greater than) values that include negative values in statement of accounts
For example is 30 is greater than 20 then YES
and if 30 not greater than 40 then NO
so far so good, I have gotten this far.

I encounter a problem the moment I test if -20 (negative twenty) is greater than 10

which it is not.

In my example -36000 is lower than 26000

How do I include the notion that negative numbers can be lower than a positive number, even if greater.

Apologies if this has been already discussed, please point me to the correct thread.
 
That does not answer my question. If I make that change the formula will return Yes, which is correct.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
if i try it i get a No
i guess i dont know how to make XLS understand that -35 is a negative number
 
Upvote 0
Can you post some sample data, as Excel does recognise negative numbers are less than positive ones.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Please do not mark a posts as the solution when it doesn't contain one.
Have you resolved your problem?
 
Upvote 0
It sounds to me like possibly you may have numeric entries that are actually entered as text.
So Excel may be seeing them as Text and not Numbers.

Even if you cannot upload data using the XL2BB tool (which would preferrable), can you at least post an image that shows us an example of what you are talking about (show us an example that is not working as you expect)?
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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