Nov 11, 2022 11:50 AM
Is there a wide to hide data in certain cells using a formula?
I am trying to work with date data coming from Memberstack that appears in UNIX form.
DATEADD('1/1/1970',{UNIX Renewal Date from Memberstack},'seconds')
I have a column for Manual renewal dates. Some people are outside the system.
I have a column that merges the two. IF there is a Manual Date, use that, if not, pull the Converted UNIX renewal date. It works mostly fine. It is setting the manual renewal date back a day, which is weird, but not the end of the world.
IF({Manual Renewal Date}, {Manual Renewal Date}, {Converted Renewal Date From Memberstack})
Screenshot attached for reference.
Thanks in advance!
Nov 11, 2022 02:36 PM
Hey there!
You should be able to wrap the formula in your Renewal Date FOR… column in another IF formula:
IF(AND({UNIX Renewal Date}='',{Manual Renewal Date} = ''),'',Insert your existing formula here)
Nov 11, 2022 07:50 PM
Hi KVachon - Thanks so much for the help! It pulled out all the cells with incorrect data leaving only the renewal dates with actual data.
Now it’s converted back to some sort of crazy date UNIX/EPOCH time format. I tried to use the DATEADD function but it just did the same thing where it added all the 1970 dates.
Any thoughts? I tried the date add both at the beginning and before the second IF function. Neither worked.
Nov 11, 2022 08:02 PM
Awesome.
You can use the DATETIME_FORMAT formula to make it to your liking.
Nov 12, 2022 06:58 AM
Ok. So DATE_FORMAT works and get’s me to organize, but it also throws in a whole bunch of errors. I’ve been playing around with IF statements based on some other threads, but I can’t seem to get it to showcase in a way that doesn’t either break the code or revert us back to our previous issue of the 1970 Date.
Here is the code I am using.
DATETIME_FORMAT(
IF(
AND({Converted Renewal Date From Memberstack}='',{Manual Renewal Date} = ''),'',
IF({Manual Renewal Date}, {Manual Renewal Date}, {Converted Renewal Date From Memberstack})),'LL')
Nov 12, 2022 08:20 AM
Hey there,
You’ll want to use that formula specifically around the date result(s) while still providing the blank (‘’) entry your are defaulting to with no info.
Try the below formula:
IF(
AND({Converted Renewal Date From Memberstack}='',{Manual Renewal Date} = ''),'',
DATETIME_FORMAT(IF({Manual Renewal Date}, {Manual Renewal Date}, {Converted Renewal Date From Memberstack}),'LL'))