+ Reply to Thread
Results 1 to 3 of 3

Complex formula to select data field within data-table

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Hamburg
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question Complex formula to select data field within data-table

    Hey folks,

    I am desperate to find a way to select a data field out of a data table. The table has two header rows and one header column. At this point, I think it is best to have a look in the attached file. In this file you'll find an example problem, that eventually need to be expanded across a larger data set.

    The data table is an input from a non-Excel source and can not be altered prior to import to Excel. Thus the joint cells in header row 1 are a given. A selection with respect to the two header rows and the header column is made to get the data from the repective field. There are some limitations to the data-set and the way of accomplishing the goal:
    - the ranges of header rows and columns are variable
    - if possible, no macro should be used. UDF would be fine

    Is there any way to build a formula that can accomplish this?

    Thank you very much for your help.

    Kind regards,
    Konfis
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Complex formula to select data field within data-table

    Try

    =INDEX($B$5:$J$7,MATCH($M7,$A$5:$A$7,0),MATCH($M5,$B$3:$J$3,0)+MATCH($M6,$B$4:$J$4,0)-1)


    UDF is a macro.

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    Hamburg
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Complex formula to select data field within data-table

    Hey John,

    thanks for the quick solution. It works great in the sample data. I will test it in the larger data set and will let you know if it works.

    Of course, you are right, UFD is macro!

    Kind regards!

+ 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. Data Table - complex formula
    By slxia1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2014, 11:58 PM
  2. complex macro code to select data based on given conditions
    By j.farr3ll in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 07:55 AM
  3. Pivot Table VBA - Data Field - Original (source) field name
    By hbgpausa0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2008, 10:25 AM
  4. Replies: 0
    Last Post: 03-13-2006, 12:10 AM
  5. [SOLVED] How do I use the data in a named field to select a worksheet tab .
    By Graham in forum Excel General
    Replies: 1
    Last Post: 08-23-2005, 12:05 PM
  6. Select Rows dependant on certain field data
    By Maddy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-27-2005, 10:50 AM

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