+ Reply to Thread
Results 1 to 6 of 6

Find and compare values in a sheet.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    52

    Find and compare values in a sheet.

    Hi Everyone

    I need a formula that will look at a entire work sheet find a name, then find a date, and display a string from a cell in the date row.


    for example I want it to first find all the rows that has "Jane Doe", then find a specific date from those rows, and then display a value from a cell in that row. Keep in mind that the there will be no consistency with the row data, but the column's are static.

    help any idea's?

    Attachment 261622

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find and compare values in a sheet.

    A sample workbook pls?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    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
    53,048

    Re: Find and compare values in a sheet.

    Hi and welcome to the forum
    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    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

  4. #4
    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
    53,048

    Re: Find and compare values in a sheet.

    self-deleted duplicate post
    Last edited by FDibbins; 08-29-2013 at 11:15 AM.

  5. #5
    Registered User
    Join Date
    08-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Find and compare values in a sheet.

    Hi guys

    I found my answer with indexing and matching functions.

    =INDEX(D3:D23,MATCH(AK3&AL3,B3:B23&C3:C23,0))

    The formula explained
    =Index(“Range of cell the Absent will appear in”,Match(“Employee Name”&”Date”,”Employee Name range”&”Date range”,0))

    Before you finish your formula you need to make it a Array Formula. To do this once you enter in your formula, you hold the Ctrl & Shift keys down and press enter. You will know you have do it correctly when your formula looks like the one below with the braces on the outside of the formula.

    {=Index(D3:D23,Match(G3&H3,B3:B23&C3:C23,0))}

  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
    53,048

    Re: Find and compare values in a sheet.

    Hi and welcom to the forum

    Very nice solution

    an observation...if you add a helper column and combine B&C, then you can do away with the array and just use a regular formula. Nothing wrong with an array formula, in fact sometimes its all that will work, but if you have a large workbook and use tons of array formulas, it can tend to slow things down

    Also, Im not sure if you will be copying this, but if so, you may want to consider absoluting the ranges so they dont change as you copy.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. Please use the Thread Tools (located above your first post) and choose "Mark this thread as solved".
    Thanks.

+ 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. Find and compare values in a sheet.
    By JonesyCC in forum Excel General
    Replies: 2
    Last Post: 08-29-2013, 09:17 PM
  2. to compare among a set of values and to find the maximum among them
    By arya ravi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2013, 06:52 AM
  3. [SOLVED] find code# from sheet 1 on sheet 2, compare value on sheet 1 with value on sheet 2
    By BlakeLee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2013, 01:52 PM
  4. Replies: 11
    Last Post: 11-03-2011, 09:18 PM
  5. Find and compare values
    By gtserkou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2008, 10:14 AM

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