+ Reply to Thread
Results 1 to 8 of 8

Help creating a formula to populate a report based on a index & match criteria

  1. #1
    Registered User
    Join Date
    11-07-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Help creating a formula to populate a report based on a index & match criteria

    Hello,
    I need help. I am currently trying to work out a formula where it looks up a value (e.g. tracker #) in one tab, and based on that value it populates my report on another tab. The issue I have is that there will be several values that must populate horizontally, getting them from a vertical table (please see example spreadsheet).
    This is the formula I started to try for it, but in only lets me retrieve the first value for each Tracking#.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Help creating a formula to populate a report based on a index & match criteria

    Hi, I think an array formula is what you need, but I'm not great with them. Hopefully someone else will chime in with a better answer, but until then I have a solution using a helper column.
    Paste this into Cell I2 of the "DATA tracker" sheet and copy down:
    Please Login or Register  to view this content.
    Paste this into Cell D13 of the "RECOVER REPORT" sheet and copy across:
    Please Login or Register  to view this content.

  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
    52,933

    Re: Help creating a formula to populate a report based on a index & match criteria

    You have shown the formula you tried, but could you also provide some sample data so we know what else you want?
    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
    Registered User
    Join Date
    11-07-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Re: Help creating a formula to populate a report based on a index & match criteria

    Just to clarify what I need. If you look at the spreadsheet, there are two tabs "DATA tracker" and "RECOVER REPORT". I want to enter the tracking # (e.g. P1) in tab "RECOVER REPORT" and that all the fields get populated with the data in the tab "DATA tracker". So all the TIME (in 24hr format) populates across from "DATA tracker" to "RECOVER REPORT", same with Size (Reg/Petite) and CROP ID...etc.

    I will put in the formulas in the respective cells so that when I enter the tracking #, it looks up the respective values and populates my report "RECOVER REPORT".

  5. #5
    Registered User
    Join Date
    11-07-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Re: Help creating a formula to populate a report based on a index & match criteria

    Thank you! That works, however, I would love to avoid the Helper column, because the actual data report has way more columns than the example I provided. I have a total of 33 columns in the original table I want to work with. So I really need to try and stay away from helper column. If there is no other way, I will have to do your method which did exactly what I wanted.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Help creating a formula to populate a report based on a index & match criteria

    In D13, copied across and down:

    =IFERROR(INDEX('DATA tracker'!$E:$H,AGGREGATE(15,6,ROW('DATA tracker'!$A$2:$A$17)/('DATA tracker'!$A$2:$A$17=$U$3),COLUMNS($D:D)),ROWS($1:1)),"")

    You will need to re-set the format of rows 15 & 16 to general.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    11-07-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Re: Help creating a formula to populate a report based on a index & match criteria

    Quote Originally Posted by Glenn Kennedy View Post
    In D13, copied across and down:

    =IFERROR(INDEX('DATA tracker'!$E:$H,AGGREGATE(15,6,ROW('DATA tracker'!$A$2:$A$17)/('DATA tracker'!$A$2:$A$17=$U$3),COLUMNS($D:D)),ROWS($1:1)),"")

    You will need to re-set the format of rows 15 & 16 to general.

    AMAZING! Thank you so much! That works perfectly for what I needed.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Help creating a formula to populate a report based on a index & match criteria

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Complex Index/match formula to pull data based on 1 criteria. (Bid/Cost Sheet)
    By Blackmagic42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2019, 01:45 AM
  2. [SOLVED] complex if with index & match formula based on criteria in a column to extract data
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2018, 01:06 PM
  3. Creating INDEX MATCH MATCH formula based off text in cells
    By bbkdude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:37 AM
  4. Creating a report from multiple sheets based off of criteria
    By nycguy1128 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-26-2016, 05:05 PM
  5. [SOLVED] formula to basically index/match based on three criteria
    By Rerock in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-26-2016, 03:14 PM
  6. [SOLVED] Index Match/Populate data based on key value
    By mzafar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2013, 01:49 PM
  7. [SOLVED] Creating a variable length report based on criteria in previous worksheet
    By lizziebusy in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-05-2012, 03:00 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