Jan 26 2022 05:34 PM
Hi all,
I am trying to write an equation that will count every instance two dates are more than 30 days apart. The spreadsheet is a living and growing document so having open ranges would be preferred.
I have got
=SUMPRODUCT((--((A2:A5-30)>B2:B5))*(ISNUMBER(A2:B5)))
but this is getting #VALUE when there is text. I will need to expand this formula to include probably 20 different columns but I need it to work with two or three columns first.
Preliminary Confirmation Date | Update Report #1? | Update Report #2? | Final Confirmation Dat |
3/18/2021 | N/A | N/A | 3/22/2021 |
3/18/2021 | 4/12/2021 | No | 5/10/2021 |
10/26/2021 | 11/25/2021 | 1/4/2022 | 1/14/2022 |
1/12/2022 | To Be Updated | To Be Updated | To Be Updated |
I have tried =IF(ISNUMBER) but still have the same problem and I'm not sure where to go from here
Jan 26 2022 08:29 PM - edited Jan 26 2022 08:38 PM
first ensure your dates are numbers , as i see they are text dates, then it should work
Jan 27 2022 09:53 AM - edited Jan 27 2022 09:54 AM
On my actual spreadsheet, they are Custom m/d/yyyy;;"" When I change it to dates or to numbers, I still have the same #VALUE! problem unfortunately
Jan 27 2022 10:14 AM
Jan 27 2022 12:08 PM
You are welcome.
Actually an error is in this part B2:B5-30 if text appears instead of number, IFERROR fixes that.