If formula

AbrahamGluck

Board Regular
Joined
Apr 12, 2016
Messages
129
Office Version
  1. 365
Platform
  1. Windows
I want a formula associated with IF using
in E6 I have a negative or positive currency number, and in F6 I have another negative or positive currency number
I want to formulate in G6 if E6 is equally or less then have of F6 should resulting Good if not should resulting 0

for example F6 is -$3.00 if E6 is anything between-$1.50 to -$0.00 is true anything else (could possibly be between -$4.00 to -&1.51) is false
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I think this is what you are going for:
Code:
=IF(AND(E6<=0,E6>=-1.5),-3,"False")
 
Last edited:
Upvote 0
I want to formulate in G6 if E6 is equally or less then have of F6 should resulting Good if not should resulting 0
Not quite clear if this is what you want, but do you mean something like this (in cell G6):
Code:
=IF(E6<=F6,"Good",0)
 
Last edited:
Upvote 0
Perhaps:

=OR(E6=0,AND(ABS(E6)>0,ABS(E6)<=(F6/2),SIGN(E6)=SIGN(F6)))
 
Upvote 0
I want a formula associated with IF using
in E6 I have a negative or positive currency number, and in F6 I have another negative or positive currency number
I want to formulate in G6 if E6 is equally or less then have of F6 should resulting Good if not should resulting 0

for example F6 is -$3.00 if E6 is anything between-$1.50 to -$0.00 is true anything else (could possibly be between -$4.00 to -&1.51) is false

I have a change in the question, sorry for the mistake in the first place.

I want a formula associated with IF using
in E6 I have a negative or positive currency number, and in F6 I have another negative or positive currency number
I want to formulate in G6 if E6 is equally or less then "half" of F6 should resulting Good if not should resulting 0

for example F6 is -$3.00 if E6 is anything between-$1.50 to -$0.00 is true anything else (could possibly be between -$4.00 to -&1.51) is false
 
Upvote 0
Actually, I think will work:

=IF(MEDIAN(0,F6/2,E6)=E6,"Good",0)

Although I think your revised question looks identical to your original question.
 
Last edited:
Upvote 0
Actually, I think will work:

=IF(MEDIAN(0,F6/2,E6)=E6,"Good",0)

Although I think your revised question looks identical to your original question.

Thanks Scott! that works perfectly for this negative situation!
For a positive situation I would want it differently, this will not work for it, for example if F6 is positive $3.00 then the good situation will be if E6 is 1 1/2 times F6 anything more or equal to $4.50 anything less then $4.49 is false or 0
 
Upvote 0
OK, try this instead:

=IF(F6<0,IF(AND(E6<=0,E6>=F6/2),"Good",0),IF(AND(E6>=0,E6>=F6*1.5),"Good",0))
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

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