+ Reply to Thread
Results 1 to 7 of 7

find and copy matched cell on other worksheet

  1. #1
    Registered User
    Join Date
    10-11-2007
    Posts
    6

    find and copy matched cell on other worksheet

    Hi,

    Here is my problem:

    On one of my worksheet I have dates from Jan 04, Feb 04, ... to Dec 06 (in column A) and each date matches with a percentage (in column B).

    I would like to report on another worksheet the corresponding percentage when I enter a date, e.g. if a enter Feb 04 in cell C9 I want the corresponding percentage to show up in cell E9.

    How is this possible?
    Thanks

  2. #2
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi pso51,

    Assuming data is in A1:A10 in sheet1.

    Try cell on E9 sheet2:

    Please Login or Register  to view this content.
    Corine

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    6
    Hi corinereyes,

    Your formula gives me #N/A !
    Do you know why. To be more accurate, my data are in A8:A43 for the dates and I8:I43 for the percentages.

  4. #4
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Try:

    Please Login or Register  to view this content.
    if not can you post the xl file? if too large just make a little sample of what your doing?

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    #N/A indicates that VLOOKUP has not found a match to your date.

    You will have to alter Corines formula to fit your data ranges as follows:

    Please Login or Register  to view this content.
    Note that the match must be EXACT
    thus if the dates are EXCEL dates in the table but TEXT in the lookup,
    or visa versa, then it will not work.

    Mark

  6. #6
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    thanks for the clarification mark!

    the column index number should be 9 instead of 8.

  7. #7
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Take care with Dates...

    Note that EXCEL will convert Feb 04 into a numberic value representing the number of days between
    the First of January 1900 until the First of Febuary 2004.

    so if you look for 2/2/04 it won't be found!

    it is possible to ask VLOOKUP to find the closest match, if the dates in your table are in ascending order (most recent date at the bottom).

    Just change the False in the formula to True.

    Mark

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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