Results 1 to 19 of 19

Need formula to find correct worksheet and column from text label

Threaded View

  1. #8
    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
    53,048

    Re: Need formula to find correct worksheet and column from text label

    1 of the main problems with how you have your data and summary set up, is that you are have different types of data and are trying to compare them. For example, in yoyr data, you have real dates (1/1/15, 2/1/15 etc), but you are trying to find data that matches Jan 15 or Feb 15. the dates are numeric, but jan 15 is text...there is no Jan 15 in your data, nor Feb 15.

    Richard has attempted to put your data into a "good" fomat that makes use of exxcel's built-in functions. Having your data in the format you have, does not mean your extract cannot be done but it makes it unnecessarily complicated and involved.

    Compare Richard's...
    =INDEX(INDIRECT(B$1&"!$A$3:$M$5"),MATCH($A6,ACTUAL!$A$3:$A$5,FALSE),MATCH(B$4,INDIRECT(B$1&"!$A$2:$M$2"),FALSE))
    with Pete's...
    =INDEX(INDIRECT("'"&RIGHT(B$1,LEN(B$1)-FIND(" ",B$1))&"'!B:G"),MATCH($A3,INDIRECT("'"&RIGHT(B$1,LEN(B$1)-FIND(" ",B$1))&"'!A:A"),0),MATCH(DATEVALUE(1&LEFT(B$1,FIND(" ",B$1)-1)),INDIRECT("'"&RIGHT(B$1,LEN(B$1)-FIND(" ",B$1))&"'!B1:G1")))
    Last edited by FDibbins; 10-31-2015 at 07:54 PM.
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find Correct Column based on the name of a different sheet
    By HJHamm in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2015, 04:13 PM
  2. Replies: 2
    Last Post: 09-09-2013, 06:44 PM
  3. Find True in one of 3 columns and return column label
    By rnomis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2013, 08:49 AM
  4. Replies: 5
    Last Post: 10-10-2012, 10:39 AM
  5. Replies: 2
    Last Post: 12-31-2011, 06:41 AM
  6. Find the row header and column label from a cell reference
    By Clddleopard in forum Excel General
    Replies: 3
    Last Post: 09-08-2011, 07:42 PM
  7. Replies: 2
    Last Post: 11-24-2008, 05:09 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