Multiple IF(AND( Statement

SpeedyFingers

New Member
Joined
Mar 26, 2012
Messages
38
I don't understand what I am doing wrong when I know how simple this is. The "NPV" will show for the File Type 1 but I am getting a "FALSE" with the File Type 2 and not cell AG3 that i'm referencing. Please help! :LOL:

S3 = File Type
AC = Amount
AP = A specific amount
AG = Location Type

Code:
=IF(A3="","",IF($AC3>$AP$1,"NPV",IF(AND($S3="File Type 1",$AC3>$AP$1)="NPV",$AG3,IF($AC3>$AP$1,"NPV",IF(AND($S3="File Type 2",$AC3>$AP$1)=AG3,"NPV")))))
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I changed the formula to the following and it works but I need to add different file types. When I do I get an error.

Code:
=IF(A2="","",IF(AND($S2="NGSE RASS",$AC2>$AP$1)="",$AG2,IF($S2="FHLMC Reactive",AG2,"NPV")))
 
Upvote 0

Forum statistics

Threads
1,216,114
Messages
6,128,910
Members
449,478
Latest member
Davenil

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