+ Reply to Thread
Results 1 to 6 of 6

Vlookup, index match vertical data set

  1. #1
    Registered User
    Join Date
    06-10-2022
    Location
    Manchester, England
    MS-Off Ver
    Office 365 Excel
    Posts
    3

    Vlookup, index match vertical data set

    Hi,

    I have a data set for which I need to extract the worst case values for the bottom most stack for each (building) column. The columns in the analysis program have been named A/1, A/2 etc and for each column there are 6 stacks (the stacks are the different building storeys with stack 1 being the stack of interest); in the sample workbook, we can see the excel export from the analysis program; building column A/1 and 6 stacks associated with it are presented before it moves onto the next column which is A/3.

    At the moment for the bottom most stack I have been overwriting the values in the position column for the bottom most stack to read ‘Stack 1 A/1’ and then with the simple IF statement it returns the max value out of those values. However, doing this for all of the columns and all the different types of analyses will not be fun!

    Is there a way I can automate this further, I have tried basic xlookup and index match but to no avail. Essentially if I could get the formula to recognise the building column and then recognise the various values for stack 1 and return the max out of these that would be great.

    I have colour coded things to help show the required output values etc.

    Any help is much appreciated.

    Thanks
    Attached Files Attached Files
    Last edited by Mshawish; 06-10-2022 at 03:28 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Vlookup, index match vertical data set

    Hi,
    Maybe this will help....

    =IFERROR(INDEX(F1:F1000,MATCH(1,1/(M6=A1:A1000))),"")

  3. #3
    Registered User
    Join Date
    06-10-2022
    Location
    Manchester, England
    MS-Off Ver
    Office 365 Excel
    Posts
    3

    Re: Vlookup, index match vertical data set

    Hi,

    I can't seem to get the formula to work, it returns a blank value when the position values are present, which is how the export file starts off with. If I manually change the numerous position values to the name of the column instead, A/1, then it does pickup the values in column F, however, only for column A/1 and not the remaining two columns.

    Thanks

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Vlookup, index match vertical data set

    Hi
    See attached in column O
    If that's not what you are looking for then please explain what are the expected resulted you are looking for
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-10-2022
    Location
    Manchester, England
    MS-Off Ver
    Office 365 Excel
    Posts
    3

    Re: Vlookup, index match vertical data set

    Hi,

    Sorry if I was not clear enough in my initial post. When the analysis program exports its results into excel format, it actually includes numerical position values for the column heading 'position' (highlighted in lilac). What I have been doing is manually inputting the text 'Stack A/1' as a sort of helper or unique identifier and this is what I am trying to streamline as inputting this for every column, A1, A2 etc is the most time consuming thing.

    Is there a way to identify the values highlighted in green for column I/D A/1, A/2 and A/3 without having to manually identify the column first?

    I can think of 3 criteria (highlighted blue) that could potentially be used to return the values of interest (highlighted green) these are the column I/D: A1, A2, A3, the 'Stack 1, 1000x1000, C50/60 Limestone' column heading which is the same for all three columns (or maybe 'Axial Force' column heading)and the '0' position row. Because these are not all on the same row, I can't create an multiplication array for the match function.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,588

    Re: Vlookup, index match vertical data set

    This proposal employs two helper columns which may be moved and/or hidden for aesthetic purposes.
    Column J keeps track of the current A/# using: =IF(ISERROR(SEARCH("A/",A5)),J4,A5)
    Column K keeps track of the Stack using: =IF(ISERROR(SEARCH("stack",A5)),K4,LEFT(A5,7))
    The formula for R6 and down is: =SUMPRODUCT((J$5:J$118=Q6)*(K$5:K$118="stack 1")*(A$5:A$118=0),F$5:F$118)
    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.

+ 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. Replies: 10
    Last Post: 04-16-2020, 09:15 AM
  2. Replies: 5
    Last Post: 12-16-2018, 10:09 AM
  3. Replies: 16
    Last Post: 06-01-2017, 06:01 PM
  4. [SOLVED] Transposing data from vertical to horizontal (INDEX/MATCH)
    By johnmitch38 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2015, 07:05 PM
  5. Index/Match with Header and Vertical data
    By asmith9947 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-13-2014, 10:56 AM
  6. [SOLVED] Using Index & Match to search 2 vertical columns and return data to a vertical set
    By QuietLife in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2013, 09:59 AM
  7. Replies: 14
    Last Post: 07-12-2012, 01:32 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