+ Reply to Thread
Results 1 to 4 of 4

Copy Value from another sheet using a function. Not Paste Value.

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    SC
    MS-Off Ver
    2007 - 2013
    Posts
    12

    Copy Value from another sheet using a function. Not Paste Value.

    Have the text below in a Raw data paste in one sheet. On a second tab where I perform calculations and formatting, I would like to pull out the Starting At Date and the Ending At Date. I know on that sheet I could perform a text to columns with a delimiter of : or even a space. But I write over this raw data every day. I need the text to columns to occur on another sheet that reads from the first. So, lets say the cell below is Sheet1 A3, On Sheet2 B3 I want to pull out the 2nd 06/23/2014 and Sheet2 B5 pull out the 1st 06/23/2014. This will allow me to show the date range covered in the formatted finish report that is distributed.

    Filter Interval[Ending At]: 06/23/2014 23:59:59; Interval[Starting At]: 06/23/2014 00:00:00; Interval Length: Entire report range


    Any assistance would be greatly appreciated.

    Michael

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Copy Value from another sheet using a function. Not Paste Value.

    If the date format is consistent, always 2digitmonth/2digitday/4digityear
    And they always follow the [Ending At]: and [Starting At]: strings..

    You can do

    ending date : =MID(Sheet1!A3,FIND("Ending At",Sheet1!A3)+12,10)
    starting date : =MID(Sheet1!A3,FIND("Starting At",Sheet1!A3)+14,10)

    These return as TEXT strings, not real dates.
    You won't be able to use them in any > < comparison functions or lookup functions.

    To convert them to real dates, just add +0 to the end of them and format the formula cell as a date.

    Hope that helps.

  3. #3
    Registered User
    Join Date
    06-24-2014
    Location
    SC
    MS-Off Ver
    2007 - 2013
    Posts
    12

    Re: Copy Value from another sheet using a function. Not Paste Value.

    This worked perfectly. Never used FIND before. Thank you very much.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Copy Value from another sheet using a function. Not Paste Value.

    You're welcome..


    Just FYI, it's case sensitive...
    It will find "Ending At", but not "ending at" or "ENDING AT" etc..
    You can change Find to Search to make it NOT case sensitive.

+ 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. Replies: 6
    Last Post: 03-26-2014, 11:40 PM
  2. [SOLVED] Copy And Paste on Another Sheet ( next time paste data from empty row )
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2014, 02:29 AM
  3. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  4. Color function not work after copy paste from other sheet
    By unley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2010, 01:14 AM
  5. Replies: 1
    Last Post: 01-04-2005, 06:06 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