+ Reply to Thread
Results 1 to 11 of 11

INDEX/MATCH to return the result from 12 different sheets.

  1. #1
    Registered User
    Join Date
    03-21-2020
    Location
    Lahore, Pakistan.
    MS-Off Ver
    Microsoft Office 2021
    Posts
    30

    Post INDEX/MATCH to return the result from 12 different sheets.

    Hello to all Kind Members,
    Hope you all will be in healthy places as the atmosphere is viral nowadays.

    I have 13 sheets in my workbook based on 12 months named:
    "JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC" with columns names like: Inv. # PO No. Style No. Qty. Unit Price

    and then last and 13th one named "Style Detail" with columns names like: Style No. Unit Price PO No. where i need the formulations results from those upper mentioned sheets.

    What is want are here:

    A. I want to aromatically take the value of a Style No. after searching the whole 12 months (sheets) and make sure that the Style No. should be taken only once in this column, i mean Style No. shouldn't come second time in this column because each Style No. is entered many times in these 12 sheets. If it is not possible no issue i can put the values manually.

    B. On the base of A3 value i need the Unit Price of that specific Style No. after searching the whole 12 months (sheets).

    C. On the base of A3 value i need the PO No. of that specific Style No. after searching the whole 12 months (sheets).

    Dears i want to use INDEX/MATCH or any other which you guys suggest me instead of VLOOKUP as it process slow and cannot look into left column easily. I am unable to attach file as its not opening the attachment console not it is allowing me to give an external downloading link as i am new user here. So you can see attached images.
    months data.png
    results need here.png

    Most Respectfully
    Regards

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: INDEX/MATCH to return the result from 12 different sheets.

    The banner at the top of the forum explains how yuo can upload a workbook

    But can I suggest a more useful way if you are prepared to alter your data layout

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it. Yours exhibits all those features.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So before you get too far with this I'd create a single sheet database that contains all the data from your monthy sheets plus an extra column to identify the date.
    Then every new record will be added to the master database. Typically you'd have a data entry row above the dtabase and a button to click to add the entry row to the data.

    You can create the master database sheet manually by copying and pasting 12 times, or upload the workbook and we can do it for you. A simle macro would automate that task
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-21-2020
    Location
    Lahore, Pakistan.
    MS-Off Ver
    Microsoft Office 2021
    Posts
    30

    Question Re: INDEX/MATCH to return the result from 12 different sheets.

    I am doing this by making these 12 sheets a dynamic range named months and then using vlookup to get the results
    but vlookup cannot look right properly so this is the problem for me because my PO column is right from my style no.
    moreover i understand your instruction and thanks to you i am able to upload the attachment. i am also waiting the way you told me to manage
    these kind of work for enjoying Pivot Tables.

    thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,310

    Re: INDEX/MATCH to return the result from 12 different sheets.

    As you are using the 2016 version of Excel you could utilize Get & Transform and a pivot table to display the data as modeled in columns K:M on the Style Detail sheet.
    Note that the months Jan through April are modeled. If this is of interest, then the ranges on the other month sheets will need to be converted to tables and Get & Transform applied. It would probably be easiest to produce a new pivot table at that point.
    The advanced editor code for Power Query is:
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    03-21-2020
    Location
    Lahore, Pakistan.
    MS-Off Ver
    Microsoft Office 2021
    Posts
    30

    Lightbulb Re: INDEX/MATCH to return the result from 12 different sheets.

    Please follow the attached file and see how i am doing my work and what i required for it.
    Maybe you can better understand by looking here into Style Detail Sheet tab.
    Attached Files Attached Files
    Last edited by greatinfoteam; 03-25-2020 at 11:36 PM. Reason: Link/File attaching

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: INDEX/MATCH to return the result from 12 different sheets.

    See the yellow banner for attaching sheets

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: INDEX/MATCH to return the result from 12 different sheets.

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    Note: As you are new I will add it for you.Please read forum rules which you might have missed

    https://www.msofficeforums.com/excel...lect-data.html

  8. #8
    Registered User
    Join Date
    03-21-2020
    Location
    Lahore, Pakistan.
    MS-Off Ver
    Microsoft Office 2021
    Posts
    30

    Re: INDEX/MATCH to return the result from 12 different sheets.

    Okay Dear Pepe Le Mokko

    I understand what Rule #3 is saying that is if i have posted the same question on another forum i must have to post that query link here also if i post that question in this forum.

    NOTE: Please correct me if i am still not understanding Rule #3.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,310

    Re: INDEX/MATCH to return the result from 12 different sheets.

    As there has been no response to the query on the msofficeforums:
    The formula you are using in column C will not work. Utilize the Evaluate Formula feature on cell C18 and you'll see that it is only considering the Jan sheet.
    If you put the following formula into cell C6 and drag down, it will work. As you can imagine it will become hard to manage when twelve sheets are involved as the formula would require IFNA to be invoked eleven times. Of course it is totally your choice.
    Formula for C6: =IFNA(INDEX(Jan!$B$6:$B$31,MATCH($B6,Jan!$A$6:$A$31,0)),INDEX(Feb!$B$6:$B$31,MATCH($B6,Feb!$A$6:$A$31,0)))
    Let us know if you have any questions.

  10. #10
    Registered User
    Join Date
    03-21-2020
    Location
    Lahore, Pakistan.
    MS-Off Ver
    Microsoft Office 2021
    Posts
    30

    Re: INDEX/MATCH to return the result from 12 different sheets.

    Okay JeteMc
    You mean i have to put this formula =IFNA(INDEX(Jan!$B$6:$B$31,MATCH($B6,Jan!$A$6:$A$31,0))......12 times because i have 12 sheets (months)?
    in other words i can say that a short formula cannot work for the scenario?
    What will be the full formula in single cell for the whole 12 sheets same like Jan and Feb then Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec.
    Last edited by greatinfoteam; 03-28-2020 at 11:22 AM.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,310

    Re: INDEX/MATCH to return the result from 12 different sheets.

    My belief is yes, you can say that a short formula cannot work.
    The formula would be similar to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Where there would be eleven IFNA functions and of course twelve instances of INDEX/MATCH.
    There may be another contributor that can think of a shorter formula, however since that hasn't happened in the week since this thread was posted I am less than optimistic.
    If you would like to consider the Get & Transform option then the following link may help.
    https://www.youtube.com/watch?v=jVkWDZ7B-Zs
    Let us know if you have any questions.

+ 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] How to Compare two Columns and Return a Result to a 3rd Column
    By Ulnarian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2019, 11:15 AM
  2. [SOLVED] Index and Match possibly? Look at two spreadsheets to compare Data and return a result
    By karstens in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2018, 06:58 PM
  3. [SOLVED] Index Match doesn't seem to return the result i want
    By eddyble in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-30-2017, 10:56 PM
  4. Index(Match to return 1 row below result
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2016, 09:57 AM
  5. [SOLVED] Index + Match to return result with Left function
    By Groovicles in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2014, 02:35 PM
  6. Vlookup/Match/Index combined with IF function to return 2nd to last result
    By Ollypetcon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 07:54 AM
  7. Replies: 7
    Last Post: 06-09-2011, 05:25 PM

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