Recognizing negative numbers in a formula

walkerl8

Board Regular
Joined
Apr 30, 2013
Messages
201
Hi, just wondered if anyone could help me.

I have a formula in excel by where if a cell is a particular negative number then a sum of values is produced. The numbers I am working with though range from negative 3 (-3) through to plus 3 (+3). The formula isn't recognizing what is negative what is positive? Can anyone help me out with that? I am using the following formula:

=IF(AND(W4="AVERAGE",U4=-2.7),SUM(F4,'Predicted Height Chart'!C11))
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi there.

I'm not clear what you want exactly.

The formula you posted should work, if the value in U4 = -2.7.
You can simplify it slightly to
=if(and(w4="average",u4=-2.0),F4+'Predicted Height Chart'!C11)

However, in your narrative you say you want to test for a value of -3.
Clearly this is not going to work if your formula contains -2.7 instead of -3.

You might want to also be more explicit about what to do if the IF statement returns a FALSE value, in other words if the AND criteria are not met.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,093
Latest member
catterz66

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