HEEEYYYLPPPPP with formula please

adam1993

New Member
Joined
May 16, 2018
Messages
16
I am looking for help with a formula for the following situation...[TABLE="width: 500"]
<tbody>[TR]
[TD]Person A[/TD]
[TD]Person B[/TD]
[TD]-20%[/TD]
[TD]$150[/TD]
[TD]Person B[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD]Person B[/TD]
[TD]20%[/TD]
[TD]$100[/TD]
[TD]Person A
[/TD]
[/TR]
</tbody>[/TABLE]


I am looking for help in column E. If column C is a negative percentage and column D is between $1 and $200, then I would like column E to show whatever is in column B.
AND the opposite...
If column C is a positive percentage and column D is between $1 and $200, then I would like column E to show whatever is in column A.

Please help:rofl:
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try;

Code:
=if(and(C2<0,D2>=1,D2<=200),B2,if(and(C2>=0,D2>=1,D2<=200),A2,""))

Off the top of my head.
 
Upvote 0
Yea...you right. There would be no need for the nested if since the second parameter is just the opposite of the first.

Hi,

May be, may be not, what if the C value is 0? Unless OP considers that a "Positive".
 
Upvote 0
I thought about that too, but decided to wait to see if OP had any thoughts on that
 
Upvote 0

Forum statistics

Threads
1,223,395
Messages
6,171,857
Members
452,427
Latest member
samk379

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