+ Reply to Thread
Results 1 to 36 of 36

Building Summary Report - Find Multiple Matches in a table

  1. #1
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Building Summary Report - Find Multiple Matches in a table

    Hello,

    In a earlier post I attached a file for reference that probably wasn't very helpful.

    An updated file has been attached.

    What I'm needing help with is populating the return table with dates and values that pertain to two columns in the dataset. You'll see in the criteria box, i'm looking for records that reference a particular type if they pertain to a particular lot. Records that match the criteria, need to be returned to the return table. You'll notice in the Return Table, in the date column, i'm using a formula built with the index function. It's inadequate because it's finding all the lot records that are WM141. I want to limit the findings to Lot WM141 & Type = Purchase in this example.

    Thanks in advance for the help.

    -Manny
    Attached Files Attached Files
    Last edited by Prof Sick; 04-12-2020 at 11:35 AM. Reason: Updated Reference Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Be aware that for some of us, the day is nearly over.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Building Summary Report - Find Multiple Matches in a table

    Attached Pivot Table
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Thanks Caracalla,

    I've tried using a pivot table as a solution to the problem. I'm not able to get the formatting I'd like to see on a one page report utilizing a pivot. Additionally, i'm working to build a two page report and trying to avoid the need to select individually they different variables of the pivot table for different sections of the reports. I'd like to type in the lot ID i'm looking to report on at the top of a page, and the rest of the report autofills without the need to adjust all the pivot tables.

    Thanks for your help and stay safe.

    -Manny

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    In I7 copied down:

    =IFERROR(SMALL(IF(Table1[Lot]=$J$4,IF(Table1[Type]=$J$3,Table1[Date])),ROW(I7)-6),"")

    In J7 copied down:

    =IF(I7="","",SUMIFS(Table1[Value],Table1[Lot],$J$4,Table1[Type],$J$3,Table1[Date],L7))

  6. #6
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Worked perfectly... Thanks so much! I'm going to work on finishing my summary report today.

    I may need some help on populating text from a description column into the report. Same as we're doing in the value column but it would be text. Any suggestions? Thinking vlookup but don't know how it'll work when searching for two variables i.e. Type and lot.

    Thanks again

    Stay Safe and have a Happy Easter.

    -Manny

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    It will depend where said text is. Provide a fresh sample workbook and I'll advise.

  8. #8
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Thanks. I just uploaded updated file.

    -Manny

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Here you go:

    =IF(I7="","",LOOKUP(2,1/((Table1[Lot]=$J$4)*(Table1[Type]=$J$3)*(Table1[Date]=I7)),Table1[Description]))

  10. #10
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Excellent. Thanks so much..

    -Manny

  11. #11
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Building Summary Report - Find Multiple Matches in a table

    one formula for date value description


    I7=IFERROR(INDEX(C$5:C$14,SMALL(IF($B$5:$B$14=$J$3,IF($A$5:$A$14=$J$4,ROW(C$5:C$14)-ROW(C$5)+1)),ROWS($C$5:C5))),"")


    Control +shift+enter

    copy across and down


    colunm I format as date

    colunms j K format as General
    Last edited by CARACALLA; 04-12-2020 at 10:45 AM.

  12. #12
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Darn, I tried to adapt the formula in the spreadsheet i'm building the summary report in. Not getting it to work. Can you look at cell B45 in the spreadsheet I just uploaded? I have it referencing a table in the spreadsheet that was to big to upload. Below is the dropbox link to the other spreadsheet.

    https://www.dropbox.com/s/66hl4xw0dg...stem.xlsx?dl=0

    Thanks

  13. #13
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Thanks for the efforts on this. I appreciate everybody's work. I've just uploaded the the actual summary report spreadsheet i'm working on. It's Cell B45 that I trying to build the table in.

    Below is a dropbox link to the referencing spreadsheet i'm trying to drab the data from.

    https://www.dropbox.com/s/66hl4xw0dg...stem.xlsx?dl=0

    Thanks again,

    -Manny

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Please attach the workbook here.

    You will also need to be specific about what isn't working for you. I presume you have both workbooks open?
    Last edited by AliGW; 04-12-2020 at 12:02 PM.

  15. #15
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table


  16. #16
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    I have both open. It doesn't want to import the information out of the dataset. It only returns blanks.

    -Manny

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    You either have a data mismatch or haven't set it up correctly. Unfortunately, it's past 1700 on Easter Sunday here, so my helping time is up, but hopefully someone Stateside will be able to pick this up.

    PS I won't follow external links to workbooks - sorry.

  18. #18
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Got it. Appreciate the help.

    Have a great Easter & stay safe

    -Manny

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    You, too - I'll look in again tomorrow to see if you got sorted.

  20. #20
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    I uploaded only the of the referencing spreadsheet/worksheet I need for the summary report. Made it a lot smaller in order to upload.

    -Manny

  21. #21
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Hi,

    Should I re-post my project?

    -Manny

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    No, that’s not allowed. You can bump the thread once every 24 hours. I will look tomorrow if you attach the workbook here. As I said before, I don’t follow links to file-sharing sites.

  23. #23
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Attached are the two spreadsheets.
    Attached Files Attached Files

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Try this:

    =IFERROR(SMALL(IF('C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[Lot]=$B$3,IF('C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[Type]=$A$43,'C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[DATE])),ROW(B45)-44),"")

  25. #25
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    That worked! Should be the last thing. To import text for the dataset that pertains to the individual records. How would one do that? Updated summary report attached.

    Thanks

    -Manny

  26. #26
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Can you provide a sample workbook that has everything in the workbook. I can't keep fixing external references in order to help you - it takes me far too long. Sorry!

    I would have thought you'd have been able adapt one of the formulae you've already been given for this, though - did you try? The function you've dumped in that cell doesn't exist - there is XLOOKLUP and VLOOKUP, but no XVLOOKUP.

  27. #27
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Sorry for the trouble. I placed the dataset within the Workbook in the attached file.

    -Manny

  28. #28
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Yes, but you've still left me to fix the broken formulae links! Come on ...

    And the table at the bottom has no data in it, so what are you expecting to match in order to fill in that final column???

  29. #29
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Try this file? It's only the last column in the Summary report called (Note) and the Note Column in the dataset worksheet that i'm trying to match up at point. The rest are matching fine.

    -manny

  30. #30
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Sorry - I can't work like this.

    Your workbook is still full of #REF! errors, and you have not even bothered to mock up what you want to see in that column. All you have given is an empty wash of yellow. You aren't even meeting me halfway.

    Have you tried adapting this yourself yet?

    =IFERROR(SMALL(IF('C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[Lot]=$B$3,IF('C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[Type]=$A$43,'C:\Users\Mavila\Dropbox\GWR Group\Manny Avila\GWR Cattle Tracking\GWR Cattle Tracking System.xlsx'!TablePSD[DATE])),ROW(B45)-44),"")

  31. #31
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Try this one? I did try the formula in you sent me, I'm just getting a blank..

    -Manny

  32. #32
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    You were trying to adapt the wrong formula for this. It is now clear (because you have filled in the details) that you needed to adapt the one in post #9:

    =IFNA(LOOKUP(2,1/((TablePSD[Lot]=$B$3)*(TablePSD[Type]=$A$43)*(TablePSD[DATE]=[@Date])*(TablePSD[CMS'#]=[@CMS])),TablePSD[Note]),"")

  33. #33
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    That worked! Is there a way to eliminate the zero's in the Note column? See updated attached file.

    -Manny

  34. #34
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    Like this:

    =IF(LOOKUP(2,1/((TablePSD[Lot]=$B$3)*(TablePSD[Type]=$A$43)*(TablePSD[DATE]=[@Date])*(TablePSD[CMS'#]=[@CMS])),TablePSD[Note])=0,"",LOOKUP(2,1/((TablePSD[Lot]=$B$3)*(TablePSD[Type]=$A$43)*(TablePSD[DATE]=[@Date])*(TablePSD[CMS'#]=[@CMS])),TablePSD[Note]))

    Are we done yet?

  35. #35
    Forum Contributor
    Join Date
    12-20-2017
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Building Summary Report - Find Multiple Matches in a table

    Ok. Think we're good. I ended up using the formula below to get rid of the zero's.

    =IF(IFNA(LOOKUP(2,1/((TablePSD[Lot]=$B$3)*(TablePSD[Type]=$A$43)*(TablePSD[DATE]=[@Date])*(TablePSD[CMS'#]=[@CMS])),TablePSD[Note]),"")=0,"",IFNA(LOOKUP(2,1/((TablePSD[Lot]=$B$3)*(TablePSD[Type]=$A$43)*(TablePSD[DATE]=[@Date])*(TablePSD[CMS'#]=[@CMS])),TablePSD[Note]),""))

    I was getting a N/A returned in the note column is there was no date present.

    Thanks again for your help. Sorry for the frustration.

    -Manny

  36. #36
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Building Summary Report - Find Multiple Matches in a table

    That's correct if you wish to exclude #N/A errors as well (see this used in post #32).

    Glad you've got what you need now.

+ 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] Building a summary table from vertical data
    By mackmay18 in forum Access Tables & Databases
    Replies: 11
    Last Post: 12-04-2019, 05:00 AM
  2. Replies: 3
    Last Post: 02-21-2017, 02:48 AM
  3. Building a summary report with ONE formula.
    By Speshul in forum Tips and Tutorials
    Replies: 3
    Last Post: 10-24-2014, 03:04 PM
  4. Report/Table with 2 summary
    By Sschne07 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-03-2014, 12:02 AM
  5. Building a Summary Report
    By Matty5894 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2014, 04:33 AM
  6. find and return multiple matches in a table, then sum and report total
    By cyclops755 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2013, 06:57 PM
  7. Replies: 2
    Last Post: 06-25-2010, 09:19 AM

Tags for this Thread

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