Many Formulas in one cell

jewpal

New Member
Joined
Aug 13, 2018
Messages
5
Hello knowledgeable users!

I am trying to fix a series of numbers. in E2 it reads:

20180809173450Z

I want it to be:

08092018

This is what I have so far:
=MID(E2,7,2)&LEFT(E2,LEN(E2)-9)
Which returns 09201808.

Ok almost there, just have to do that same thing to put 08 in front of the 092018.

=MID(E2,7,2)&LEFT(E2,LEN(E2)-9)&RIGHT(E2,2)

AHCK it does not work! I get:
092018080Z

So it seems that the formula is still using what is in E2 and not the "new result."
Any advice would be greatly appreciated!!

<colgroup><col width="283"></colgroup><tbody>
</tbody>
 
Just curious, do you need the results converted to Real Date values for further comparison?
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Nothing to solve, use these formulas to convert your Original Text Strings, format cell as Date:


Book1
EF
220180809173450Z8/9/2018
3201818070121Z7/18/2018
Sheet178
Cell Formulas
RangeFormula
F2=(MID(E2,5,2)&"/"&MID(E2,7,2)&"/"&LEFT(E2,4))+0
F3=(MID(E3,7,2)&"/"&MID(E3,5,2)&"/"&LEFT(E3,4))+0
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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