@TMS, I appreciate all your help. I didn't feel like the other post was the same, as I had tangented off this original, but I'll go along with it. I've been trying to figure out the solution and things have changed along the way. There's no way I could post this whole code and the related workbooks. The entire macro literally pulls three workbooks together to make a worksheet with multiple conditional formats, then 8 pivot tables. I'm trying to snippet because all else would be a waste of time and I'm being generous not getting everybody to dig through all of the code.
This particular piece of code was originally bringing in a date from another table with a formula (if/match, which you can see above) That formula does its job. But, it came to my attention that not all of the dates were available from the lookup table. So, I'm trying to compensate by simply calculating the date (minus 15 days) instead, when they're missing. Ironically enough, if I can get this process correct, the final formula will be much longer - but one scientific step at time (and I don't need to muddy the question any more).
I do know that the PET Ev Due column cells and the Hearing Date cells are not technically blank (for a reason I do not know - they have 0 length and are ""), so special blank cells will not work in this case.
So far I've come up with this. I feel like it's really close to being correct, but I think the syntax for the integers (i) are misplaced. This code is the next line after the PET Evid Due column has its matches from the if/match formula. Then it runs this piece. This newest iteration doesn't seem to run (maybe Error goes to next line and skips this). You can see in the attachment what a sample would look like once we get to this point in the code. All I want it do is add the 15-less date to $F$6 in this sample, but leave the other rows alone.
As to just applying the HearingDate-15 formula once to the structured column (yes, everything in my code is based on structured tables), that won't work because some of the rows have the date set already from the if/match lookup formula that is already there.
Nonetheless, all of this is to say that I appreciate your help and if you have a suggestion for moving the integer syntax around, or anything thing else that would make it even simpler, thank you.
Bookmarks