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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

SpeedyFingers

New Member
Joined
Mar 26, 2012
Messages
38
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")))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,272
Messages
5,836,326
Members
430,420
Latest member
Sensen

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
Top