Reputation: 139
I'm trying to extract only the date from this cell which says: Current day (1 Nov 2019)
Using:
=regexextract(concatenate(FullReport!B5),".*Current day(.*)")
Can't seem to figure out how to remove the brackets ( )
which I believe is causing it to not register in google sheets as an actual date.
Upvotes: 1
Views: 3488
Reputation: 1
I tested with this formula and it works fine:
=regexextract(concatenate(FullReport!B5),"\(([A-Za-z0-9\ ]+)\)")
Upvotes: 0
Reputation: 1
to extract:
=REGEXEXTRACT(A1, "\((.+)\)")
while true date would be:
=ARRAYFORMULA(JOIN("/",
IFERROR(REGEXEXTRACT(A1, "\((\d+) (.+) (\d+)")*1,
MONTH(REGEXEXTRACT(A1, "\((\d+) (.+) (\d+)")&1))))
or just:
=REGEXEXTRACT(A1, "\((.+)\)")*1
Upvotes: 1