Extraction

Croacodile

New Member
Joined
Mar 12, 2016
Messages
30
I have a cell with information such as Tax: 1913 MLS: 1919 or can change to just a year like 1913 and other combination like MLS: 1913.
Please help me extract just the Tax number or MLS if only MLS is available. I have room in the spreadsheet if it need to be put on 2 different formulas. Im a novice to excel, thank you for your help.

[TABLE="width: 500"]
<tbody>[TR]
[TD]year built[/TD]
[TD]year built needed[/TD]
[/TR]
[TR]
[TD]Tax: 1913 MLS: 1919[/TD]
[TD]1913[/TD]
[/TR]
[TR]
[TD]1902[/TD]
[TD]1902[/TD]
[/TR]
[TR]
[TD]MLS: 1922[/TD]
[TD]1922
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I have a cell with information such as Tax: 1913 MLS: 1919 or can change to just a year like 1913 and other combination like MLS: 1913.
Please help me extract just the Tax number or MLS if only MLS is available. I have room in the spreadsheet if it need to be put on 2 different formulas. Im a novice to excel, thank you for your help.

[TABLE="width: 500"]
<tbody>[TR]
[TD]year built[/TD]
[TD]year built needed[/TD]
[/TR]
[TR]
[TD]Tax: 1913 MLS: 1919[/TD]
[TD]1913[/TD]
[/TR]
[TR]
[TD]1902[/TD]
[TD]1902[/TD]
[/TR]
[TR]
[TD]MLS: 1922[/TD]
[TD]1922
[/TD]
[/TR]
</tbody>[/TABLE]
Based on what you posted, It sounds like you are trying to retrieve the first number in the cell (which is always a 4-digit year). If that is correct...

=0+MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),4)
 
Upvote 0

Forum statistics

Threads
1,223,262
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

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