Using INDEX/MATCH to pull a date and CountIF not recognizing as a date

Jack Parry
Jack Parry ✭✭✭✭✭

Hi, I'm using INDEX/MATCH to pull a date from one report into another based on the same ID number.

If there is no match, an error message populates.

=IFERROR(INDEX({Corporate CAPA Closed Effective Date}, MATCH([InfoCard Number]@row, {Corporate CAPA Closed InfoCard Number}, 0)), "CAPA Not Closed")

Once the formula is inputted and the column formula is set. The column is switched to a date column.

I then have a sheet that I use to calculate the CAPAs completed for that month.

I want to use the column ('Effective Date') from the Index/Match, but its giving me #INVALID DATA TYPE

=COUNTIFS({All Sites CAPA}, CONTAINS("CAPA", @cell), {All Sites CAPA Effective Date}, AND(MONTH(@cell) = 6), {All Sites CAPA Closed On Time?}, CONTAINS("CAPA Overdue", @cell))

I'm guessing its the fact I'm using the INDEX/MATCH, so it doesn't recognize it as a true date. Is there a way around this?

Tags:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!