Some excel formula problem

mzainims

New Member
Joined
Dec 5, 2018
Messages
9
1589153731342.png


This is a non-VBA question.

The pic above is referred.
Suppose I have this numbers (840312107345; in B3) ; wanted to "extract" ONLY 840312 and re-arrange it to be into a date string as 12-03-84 (D3).
Then I'd like to calculate it in field AgeNow(E3) so that it will subtract NOW() & D3

How do I do this in excel worksheet formula in D3 & E3?

p.s...tried MID, REPLACE, LEFT...etc... none giving any correct answer.
Thanks in advance.

#stopthe pandemic
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about:

varios 10may2020.xlsm
ABCDEF
1
2DateIDArrangeAgeNow
384031210734512/03/198436
4
Hoja9
Cell Formulas
RangeFormula
D3D3=DATE(IF(LEFT(B3,2)+0<20,"20","19")&LEFT(B3,2),MID(B3,3,2),MID(B3,5,2))
E3E3=DATEDIF(D3,TODAY(),"y")
 
Upvote 0
Wow...tks....that a quickie.

It works....

....and how about if I "extract & convert" it into E3 without "placing it" into D3?.....meaning D3 doesn't exist.
 
Upvote 0
Try this

varios 10may2020.xlsm
ABCDEF
1
2DateIDAgeNow
384031210734536
4
Hoja9
Cell Formulas
RangeFormula
E3E3=DATEDIF(DATE(IF(LEFT(B3,2)+0<20,"20","19")&LEFT(B3,2),MID(B3,3,2),MID(B3,5,2)),TODAY(),"y")
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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