Forum Discussion

TrishWehrle's avatar
TrishWehrle
Qrew Cadet
4 years ago

Extract a date from the middle of a logged field

I'm trying to extract a date into a formula date field from a logged field that isn't necessarily on the top or bottom of the log. It could be, but it could also be in the middle.
I need the date associated with the "living with" selection from a multiple choice field.

The formula i thought was working is

If(Contains([Type Log],"Living with"),
ToDate(Left(Right(NotRight([Type Log],"Living with"),"["),9)),null)

But then i realized if there was another entry below the "living with" entry, it was grabbing that date instead. 
Is this possible?
Thanks!

------------------------------
Trish Wehrle
------------------------------

8 Replies

  • You will to use the SerachAndReplace function to replace "Living with" with say a "|".  Then look for that | character for your formulas post back if you are stuck.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • TrishWehrle's avatar
      TrishWehrle
      Qrew Cadet
      Thank you 
      thank you
      thank you!

      ------------------------------
      Trish Wehrle
      ------------------------------
    • TrishWehrle's avatar
      TrishWehrle
      Qrew Cadet
      Sorry I'm stuck. Not sure I even know what search and replace is.

      ------------------------------
      Trish Wehrle
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Qrew Champion
        Can you post me the copy and paste of the data for some sample data in the field the field and I will make the formula for you.


        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------