Zend certified PHP/Magento developer

How to write this function in excel when referring to table arguments in excel

This is column level way of formula : If(isblank(J2), today()-A2,"")

I need to convert this formula to refer to table arguments say

IF(ISblank(details[Date1]), today()-Detail[Date2], " ")

Details is the table name
Date1 and Date2 are arguments.

Date1 and Date2 values have date values like 4/13/2023
I am getting an error when converting.