+ Reply to Thread
Results 1 to 7 of 7

Insert cell data

  1. #1
    Registered User
    Join Date
    07-12-2009
    Location
    oxford,england
    MS-Off Ver
    Excel Microsoft 365
    Posts
    53

    Insert cell data

    Hi,

    I'm looking for a formula that will insert "20" in front of the "18" (to make 2018) only if its not already there(as in cell A1)

    A
    1 04/12/2018
    2 04/13/18

    Any help appreciated.

    Doug

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Insert cell data

    Try

    select data

    Data>>>Text to Columns>>>Step 3 ..Date>>MDY (or DMY)..Finish

  3. #3
    Registered User
    Join Date
    07-12-2009
    Location
    oxford,england
    MS-Off Ver
    Excel Microsoft 365
    Posts
    53

    Re: Insert cell data

    I had tried that previously John, the column with dates in is a mixture of date and text format , not sure why ,it seems its a fault on my operating system?
    So a formula is my only real way of rectifying...

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Insert cell data

    It would help if you attached a sample Excel workbook, so we can see how your data varies.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Please note that the Paperclip icon (Attachments button) does not work on this forum, so don't try to use that.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-12-2009
    Location
    oxford,england
    MS-Off Ver
    Excel Microsoft 365
    Posts
    53

    Re: Insert cell data

    Attachment
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Insert cell data

    Change your calculation mode to Automatic, rather than Manual, then you can use this formula in C1:

    =IF(ISNUMBER(A1),A1,DATE(2000+RIGHT(A1,2),LEFT(A1,2),MID(A1,4,2)))

    Format that cell as a date, then copy the formula down as far as you need to.

    If you want those converted dates back in column A, then you can fix the values in column C and copy/paste them to A, then delete column C.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-12-2009
    Location
    oxford,england
    MS-Off Ver
    Excel Microsoft 365
    Posts
    53

    Re: Insert cell data

    thanks for the help.

    Doug

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Userform to find data in cell of last row and insert in next cell over
    By MG3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-17-2015, 05:57 PM
  2. VBA to VLookup and then insert cell data into first blank cell (in result column)
    By lookingforhelp1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-01-2015, 05:43 AM
  3. [SOLVED] Insert rows after change in data with certain data in each cell
    By jscalem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 07:13 AM
  4. Insert two rows above cell, if cell in column A contains data
    By ttroemel1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2013, 02:29 PM
  5. Copy cell data and insert into another worksheet based upon cell
    By cory99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2013, 08:37 AM
  6. Cell copy the data to another cell and insert a blank row
    By dpatel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2012, 04:38 AM
  7. Insert a row after the first last cell of a set of data (or before the the first set
    By andjuscam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-17-2007, 03:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1