+ Reply to Thread
Results 1 to 6 of 6

Find a match and return a value

  1. #1
    Registered User
    Join Date
    05-13-2005
    Posts
    14

    Find a match and return a value

    This one is a bit above my head, I tried studying the INDEX and MATCH function but to no avail. What I am needing to do is that I have 2 simlar spreadsheets but one has a bit more info in it so I am calling this my MASTER file. The other has close to the same amount of members in it but I only need one column of info which is that members start date. So what I need to do is in the MASTER file I have added a column called "Start Date". So I need to look in that row for that persones email address, then go find it in the other file, and return that persons start date number to that cell.

    Hope this makes sense. I have no idea how to write this formula. I tried something like this:
    =INDEX('[Membership export from Drupal version.xlsx]Membership export from Drupal v'!$I:$I,MATCH(B2,B:B,0))

    But it did not work.

    Many thanks,
    Houston

  2. #2
    Registered User
    Join Date
    05-13-2005
    Posts
    14

    Re: Find a match and return a value

    OK, I tried using vlookup.

    =VLOOKUP(B2,'[Membership export from Drupal version.xlsx]Membership export from Drupal v'!$H$2:$I$407,2,FALSE)

    It grabs the correct field but since it is a date it does not display correctly which I do not understand. IF I switch the field format in both sheets to GENERAL than
    the correct number comes across. But as soon as I turn on the CELL FORMAT to DATE they no longer match. ???? Super confused as to why this is happening.

    Many thanks,
    Houston

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find a match and return a value

    If you get a 5 digit number like 42570 then format that as Date.

    42570 is the number that represents the date July 19 2016.

    In Excel dates are really just numbers formatted to look like dates. These numbers are commonly referred to as the date serial number. The date serial number is the count of days starting from a base date. In Windows Excel the default base date is January 1, 1900. So, January 1, 1900 is date serial number 1.

    Jan 1 1900 = date serial number 1
    Jan 2 1900 = date serial number 2
    Jan 3 1900 = date serial number 3
    Jan 4 1900 = date serial number 4
    Jan 5 1900 = date serial number 5
    etc
    etc
    Jan 1 1975 = date serial number 27395
    Jan 1 2000 = date serial number 36526
    Jan 1 2016 = date serial number 42370

    You can see the date serial number by entering some date in a cell and then changing that cells format to General or Number.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-13-2005
    Posts
    14

    Re: Find a match and return a value

    Yes, I get that but that is not the problem. What I am saying is that even though
    the number that represents the date is the exact same number in both sheets, they show 2 different dates. Why?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find a match and return a value

    I'd have to see it to try to figure it out.

    Can you post a SMALL sample file where this occurs?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Find a match and return a value

    Does teh data in both files start inteh same row?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Formula to find a Match and return 1 or 2
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2016, 11:43 PM
  2. Replies: 6
    Last Post: 09-03-2015, 09:51 PM
  3. find match vs conditions return value
    By ddunndd in forum Excel General
    Replies: 8
    Last Post: 02-20-2015, 07:23 PM
  4. [SOLVED] Just find match and return same
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2012, 09:00 AM
  5. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  6. Find match, return value and color
    By ysouljah in forum Excel General
    Replies: 4
    Last Post: 12-02-2010, 12:35 AM
  7. Excel 2007 : find and match dates to return value
    By colins in forum Excel General
    Replies: 4
    Last Post: 02-11-2010, 02:43 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