+ Reply to Thread
Results 1 to 5 of 5

index match in range based on id number

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    Maryland
    MS-Off Ver
    2013
    Posts
    32

    index match in range based on id number

    I have a table of about 12,000 records. Each customer has a unique id, but may appear more than once (with the same id) on different dates.

    I'm trying to do something like this: index([date],match(1,[used coupon],0). This seems to work fine, but I need to specific the range of the [used coupon] column to look in to only rows with the customer ID.

    Sample workbook attached.indexmatch sample.xlsx

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: index match in range based on id number

    I am not quite sure what you want, but if you want to get the latest date associated with a person, the following formula entered as an array formula should do it.
    =MAX(IF(A3=$A$3:$A$14,$D$3:$D$14,FALSE))
    To get an understanding on how array formulas work, see this article. http://www.utteraccess.com/wiki/inde...Array_Formulas
    See column C in the example.

    I also recommend that you convert your data to an Excel table so you can reference only the amount of data you want without having to reference the whole million rows in the column.
    Attached Files Attached Files

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: index match in range based on id number

    Hi

    Try these array formula (CTRL+SHIFT+ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: index match in range based on id number

    Or use

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: index match in range based on id number

    Not sure I understand.

    Try this in the 'Desired Result' table O3 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit Correction to formula.
    Last edited by FlameRetired; 12-31-2015 at 04:35 PM.
    Dave

+ 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] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  2. Replies: 6
    Last Post: 09-09-2014, 02:25 PM
  3. [SOLVED] Counting the number of times INDEX/MATCH finds more than 1 match.
    By loloduane in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2014, 03:35 AM
  4. Replies: 0
    Last Post: 05-22-2014, 04:17 AM
  5. [SOLVED] Index Match Based on date range and name criteria
    By darkhangelsk in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-02-2014, 11:33 PM
  6. [SOLVED] INDEX MATCH based on 5 criteria, including a date range.
    By Folshot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 09:35 PM
  7. INDEX/MATCH & VLOOKUP based on month number
    By pixifaery in forum Excel General
    Replies: 2
    Last Post: 07-08-2010, 06:48 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