If and function with three conditions

beginvbaanalyst

Board Regular
Joined
Jan 28, 2020
Messages
141
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I'm trying to add an additional condition that doesn't seem to work and I can't figure out why. The new condition is looking at another column for the word "yes".
My current formula is following:

=IF(AND(COUNTIF(_AG22[Loan ID],[@[Loan ID]]),_AG22[Open Date1]<="8/01/2022"),"-",VLOOKUP([@[Loan ID]],'Jul22'!B:H,7,0))

_AG22 - Table
Loan ID - Column
Open Date1 - Column
Jul22 - Table
If true then add dash, if false then vlookup the loan id for my current table to seperate table to pull info.

My new formula that doesn't work is following:
=IF(AND(COUNTIF(_AG22[Loan ID],[@[Loan ID]]),_AG22[Open Date1]<="8/01/2022",_AG22[Internal Refi]="yes"),"-",VLOOKUP([@[Loan ID]],'Jul22'!B:H,7,0))
Excel accepts the formula but doesn't seem to work, can't figure out why.
Here is my table.
What do you think could be my issue?

TypeLoan IDNameJoinOpen DateOpen Date1Original LimitBalanceUnadvancedRisk RateChange V2Updated ChangeInternal RefiPayoff
1212N/AN/AN/A44784
$10,000​
$3,250$0.00-NewNewyes-
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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