Help with Nested IF and VLOOKUP

samantham

New Member
Joined
Oct 5, 2005
Messages
34
Office Version
  1. 2019
Platform
  1. Windows
I need to confirm that the numbers in Column A (ACORD #) appear in Column E (IMS #). If they DO appear, I then need to compare the date in Column B (Current Version Date) to Column F (Version). If Column B is more recent than Column F, I need a result of "UPDATE NEEDED." If Column B and Column F match, I need a result of "no action necessary." If a number appears in Column A and is NOT in Column E, I need a result of "Form Missing," and if a number appears in Column E and is NOT in Column A, I need a result of "Unknown Form."

I know I need to do a Nested IF with VLookup, but I'm having issues with getting it to work as desired. Can anyone provide some insight on what I should be doing here? The final list has over 900 records, so any help in getting this figured out would be greatly appreciated!

THEIR #Current Version DateFuture Version DateOUR #Version
50AL2007/1050AL2007/10
62AL1998/0562AL1998/05
90AL2015/1290AL2010/11
137AL2015/12137AL2010/11
138AL2015/12138AL2012/04
290AL2014/12291AL2010/11
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
There is not. The form numbers range from 1 - 951, and some (many) forms have a different version for different states, depending on state regulations (137, 137AL, 137NJ, 137TN, etc.).
 
Upvote 0
For the first part try this in column C.

=IF(ISNUMBER(MATCH(A2,$E$2:$E$7,0)),IF(DATEVALUE(B2&"/1")>DATEVALUE(VLOOKUP(A2, $E$2:$F$7,2,0)&"/1"),"UPDATE NEEDED","No action necessary"), "Form Missing")

For the second part try this in column G.

=IF(ISNUMBER(MATCH(E2,$A$2:$A$7,0)), "", "Unknown form")
 
Upvote 0
Book1
ABCDEFGHI
9THEIR #Current Version DateHelper DateFuture Version DateOUR #VersionVersion Date
1050AL2007/1001/10/2007No Action Needed50AL2007/1001/10/2007 
1162AL1998/0501/05/1998No Action Needed62AL1985/0501/05/1985 
1290AL2015/1201/12/2015No Action Needed90AL2010/1101/11/2010 
13137AL2015/1201/12/2015No Action Needed137AL2010/1101/11/2010 
14138AL2015/1201/12/2015No Action Needed138AL2012/0401/04/2012 
15290AL2014/1201/12/2014Form Missing291AL2010/1101/11/2010Unknown Form
Sheet1
Cell Formulas
RangeFormula
C10:C15,H10:H15C10=DATE(MID(B10,1,4)+0,RIGHT(B10,2),1)
D10:D14D10=IF(AGGREGATE(15,6,SEARCH(CONCAT(IFERROR(MID(A10,ROW($1:$6),1)+0,""))+0,$F$10:$F$15)^0*$H$10:$H$15,1)>C10,"Update Necessary","No Action Needed")
D15D15=IFERROR(IF(AGGREGATE(15,6,SEARCH(CONCAT(IFERROR(MID(A15,ROW($1:$6),1)+0,""))+0,$F$10:$F$15)^0*$H$10:$H$15,1)>C15,"Update Necessary","No Action Needed"),"Form Missing")
I10:I15I10=IF(SUM(--ISNUMBER(SEARCH(CONCAT(IFERROR(MID(F10,ROW($1:$6),1)+0,""))+0,$A$10:$A$15)))=0,"Unknown Form","")
 
Upvote 0
I Didnt know how to convert the Date Column so i have used Helper Column


I have only considered the number in 50AL i.e 50, If this is not the case for your requirement the formula will be little simple
 
Upvote 0
In case you require details to be matched as it is i.e 50AL, then

Book1
ABCDEFGHI
9THEIR #Current Version DateHelper DateFuture Version DateOUR #VersionVersion Date
1050AL2007/1001/10/2007No Action Needed50AL2007/1001/10/2007 
1162AL1998/0501/05/1998No Action Needed62AL1985/0501/05/1985 
1290AL2015/1201/12/2015No Action Needed90AL2010/1101/11/2010 
13137AL2015/1201/12/2015No Action Needed137AL2010/1101/11/2010 
14138AL2015/1201/12/2015No Action Needed138AL2012/0401/04/2012 
15290AL2014/1201/12/2014Form Missing291AL2010/1101/11/2010Unknown Form
Sheet1
Cell Formulas
RangeFormula
C10:C15,H10:H15C10=DATE(MID(B10,1,4)+0,RIGHT(B10,2),1)
D10:D15D10=IFERROR(IF(VLOOKUP(A10,IF({1,0},$F$10:$F$15,$H$10:$H$15),2,0)>C10,"Update Necessary","No Action Needed"),"Form Missing")
I10:I15I10=IF(SUM(--ISNUMBER(SEARCH(F10,$A$10:$A$15)))=0,"Unknown Form","")
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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