+ Reply to Thread
Results 1 to 15 of 15

Data Analysis using Index Match or Pivot Tables

  1. #1
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Data Analysis using Index Match or Pivot Tables

    Hi,

    I have a spreadsheet where there is information about the purchased items in a plant with the following data headings. See attachment. data.xlsx



    Job # Promised Date Manufacturer Name ASSEMBLY



    For each assembly, I need to know the manufacturer name of the item with the most late promised date. Any ideas as to how this can be best accomplished. I have tried pivot tables, V look-Up and index match but hasn't helped

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Analysis using Index Match or Pivot Tables

    By "Assembly", I assume you mean "Supplier SO"? I see multiple Manufacturer names for a single assembly. How did you want to handle that?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: Data Analysis using Index Match or Pivot Tables

    Maybe this is what you're looking for?
    Attached Files Attached Files
    Regards

    Arty

  4. #4
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Hello Chemist- Thanks for the reply. Yes there are multiple manufacturers for the same assembly but I want to return the manufacturer with the most late promised date. Is that possible to do?

    I got very close using the following formula but still not quite right as the same promised date can be for different assemblies and manufacturers:

    =INDEX($D$2:$D$20,MATCH(LARGE(($B$2:$B$20)*($E$2:$E$20 =E2),1),$B$2:$B$20,0))

    Thanks Arty but the pivot table doesn't help because I only want to see the longest or most late promised dates and manufacturer for an assembly. There may be multiple ordered items under each assemmbly but I am only interested in seeing which ones are delayed. I hope I have described fully what I want.
    Last edited by rbhandair; 10-24-2014 at 12:27 PM.

  5. #5
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Yes, Supplier SO means Assembly sorry for the confusion. This is my first post ever

  6. #6
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Sorry the formula is as below. The row and column references are alll messed up in my earlier post

    =INDEX($D$2:$D$20,MATCH(LARGE(($B$2:$B$20)*($E$2:$E$20 =E2),1),$B$2:$B$20,0))

    Remember the above is an array formula and need to be entered using ctrl+shft+Entr
    Last edited by rbhandair; 10-24-2014 at 12:26 PM.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Analysis using Index Match or Pivot Tables

    Okay, see spreadsheet, attached

    First I copied E to G and used "Remove Duplicates" to make a unique list.
    Then in H2 is this Arrayed Formula

    =INDEX($B$2:$B$218, MATCH(2, 1/($E$2:$E$218=G2)))

    I assume that promise dates for a specific assembly will increase as you go down the page.
    Does this work for you?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Yes Perfectly. Your are a genius!! I will add to your reputation.

  9. #9
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    It works but I can't understand the logic behind it. Looks like you are looking up for a match of 2 in array of 1 divided by the range of cells matching the range that matches the assembly). I am just curious how you made this work. I could never have figured this out after spending years of time. I am glad I posted it.!!

  10. #10
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Hello Chemist- Actually we started celebrating too early. Your formula works when we entered it initially but after we updated the date in the "Original Promised Delivery" date field, then it fails. In case of assembly "77634-1600-000", (See attached file)error.jpg, the manufacturer should have changed to McMaster Carr because it now has the most late delivery date of 2014-05-16 (I have highlighted it red) but your formula is still calculating it as "Canadian Shunt" which is incorrect.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Analysis using Index Match or Pivot Tables

    I cannot see your images. Can you upload an Excel file? Did you modify the ranges in the formulas? You might want to make Dynamic named ranges.

    How it works:

    =INDEX($B$2:$B$218, MATCH(2, 1/($E$2:$E$218=G2)))

    MATCH(2, 1/($E$2:$E$218=G2)) is, as you pointed out, looking for a two. The array $E$2:$E$218=G2 will either return false (0) or true(1) which when inverted gives either a 1 or an error. Since we are not looking for an exact match (no final argument of 0), when it doesn't find a 2, it goes back to the last value it found less than 2 which would be the last entry with that assembly.

  12. #12
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Hi Chemist- No I did not change the range. Please see the atatched file Thankserror.jpg
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    Actually when I read again what you wrote in your last post, It seems like this formula will work only when the promised dates are sorted prior to applying the formula. Since the most late delivery date ( or the highest value) would be the last one it finds with that assembly.

    After I sorted by the promised date (lowest to highest), then your formula works but when the dates are not sorted, then it displays incorrectly beacuse the most late item is not necesarily the last one. Is there a solution which will work even dates are not sorted? I can do it through VBA but I am looking for a simpler solution.

    Thanks

    See attached
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Analysis using Index Match or Pivot Tables

    Yes, my solution only works if the promise dates for a specific assembly go down the page in chronological order. It's back to the drawing board.

  15. #15
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Re: Data Analysis using Index Match or Pivot Tables

    I finally found a solution although seems very complex:

    =INDEX($D$2:$D$1635,MATCH(1,(($B$2:$B$1635 = LARGE(($E$2:$E$1635=E2)*($B$2:$B$1635),1))*($E$2:$E$1635=E2)),0),1)

    I am sure all you excel junkies out there can definately find a better solution than mine. I should add to my reputation as well
    Last edited by rbhandair; 10-28-2014 at 03:55 PM.

+ 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. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  2. Replies: 6
    Last Post: 01-28-2014, 06:09 PM
  3. Excel 2010 Pivot Tables and LOOKUP, VLOOKUP, INDEX/MATCH trouble
    By mjbalys in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 04-19-2013, 04:58 PM
  4. Product Analysis in Pivot Tables
    By pensworth in forum Excel General
    Replies: 7
    Last Post: 03-24-2009, 11:10 AM
  5. Need data cross-referenced in multiple tables: VLOOKUP vs. Match vs. Index
    By James McMurray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2008, 02:53 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