Trouble thinking of a simple formula solution for complicated review

rando123

New Member
Joined
Feb 9, 2016
Messages
9
Hello

Hoping someone can help me come up with a formula for the column Discrepancy Under Threshold or confirm it's not even possible. I have been trying to come up with one but struggling. A simplified table is below.

Logic explained in words of what I need:
If Dropdown Category cell does not equal "Discrepancy under Threshold" return 0.
If Dropdown Category DOES equal "Discrepancy under Threshold" AND New Amount is NOT blank, return cell from New Discrepancy column.
If Dropdown Category DOES equal "Discrepancy under Threshold" AND New Amount is blank, return cell from Original Discrepancy column.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Original Amount[/TD]
[TD]Original Discrepancy[/TD]
[TD]New Amount (optional)[/TD]
[TD]New Discrepancy[/TD]
[TD]Dropdown Category[/TD]
[TD]Discrepancy Under Threshold[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Formula here[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Assuming the header row begins in A1, enter in F2 and copy down:
Code:
=IF(E2<>"Discrepancy under Threshold",0,IF(AND(E2="Discrepancy under Threshold",NOT(ISBLANK(C2))),D2,IF(AND(E2="Discrepancy under Threshold",ISBLANK(C2)),B2,"")))
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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