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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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