Extract four digit number from cell (i.e. year from citekey)

Hi, for my academic research database I’m trying to write a formula that will automatically extract a four-digit number from a cell (i.e. extracting year from a citekey).

For example (Citekey --> Year),
Downs1965NonmarketDecisionMaking --> 1965
Welborn1968BureaucracyAnthonyDowns --> 1968

Any ideas on how I might be able to do this? Thanks.

Welcome to the community, @M_W!

If those are the ONLY numeric digits within your entire text string, then you could do it with this formula:


Hope this helps! If this answers your question, could you please mark this comment as the solution to your question? This will help other people who have a similar question. :slight_smile:

1 Like

Thanks Scott!

It works perfectly well except for cells with a period (see screenshot below). Is there a way to make the value() formula work?

Screen Shot 2020-09-01 at 5.53.35 pm

If you have periods, then use this formula:


1 Like

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.