Pregunta

I have a custom list with numerous date columns that feed calculated columns for each section. I need to be able to export this "All Items" view to an excel for reporting. Problem Set: Not every date received and date completed is going to have data at export. The javascript I am running to update all items so that the NOW() function in the calculated columns will update is being applied to all of the # of days pending with XXX. I am trying to figure out how to write the ISBLANK formula to hide data if both the date received and date completed are blank. My current formula is working to hide the data if the date completed is not blank, it will generate a number. I need it to hide the 44,118 if both dates are blank.
=IF(NOT(ISBLANK([FOIA Date Completed])),"",[FOIA Date Received]-TEXT(NOW(),"mm/dd/yyyy")) enter image description here

¿Fue útil?

Solución

You can try this:


=IF(AND(NOT(ISBLANK(ReceivedDate)),NOT(ISBLANK(CompletionDate))),DATEDIF(ReceivedDate,TODAY(),"d"),"")

OR

=IF(AND(NOT(ISBLANK(ReceivedDate)),NOT(ISBLANK(CompletionDate))),TEXT(NOW(),"mm/dd/yyyy")-ReceivedDate,"")


enter image description here

The updated formula

=IF(AND(NOT(ISBLANK(ReceivedDate)),ISBLANK(CompletionDate)),DATEDIF(ReceivedDate,TODAY(),"d"),"")

enter image description here

Licenciado bajo: CC-BY-SA con atribución
scroll top