extract a recent year from a text in excel

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
289
Office Version
  1. 365
Platform
  1. Windows
Sirs, i have values inputed in a cell combination of number (year), word, letter and other character. If its possible to extract the number and determine the recent year from the extracted number..

RESULT
2019 text 20222022
2011, text, 20182018
2019, (AC), 20202020



Many Thanks,
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Is it are you looking for?

Book1
AB
1RESULT
22019 text 20222022
32011, text, 20182018
42019, (AC), 20202020
Sheet2
Cell Formulas
RangeFormula
B2:B4B2=AGGREGATE(14,6,MID(A2,ROW(INDIRECT("1:" & LEN(A2)-3)),4)+0,1)
 
Upvote 0
Solution
In your pictures, recent year are in right position, then

=--Right (A2,4)
 
Upvote 0
Another option if you have the TextSplit function
Excel Formula:
=MAX(IFERROR(TEXTSPLIT(A2,{" ",","})+0,0))
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,431
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top