+ Reply to Thread
Results 1 to 19 of 19

Need formula to find correct worksheet and column from text label

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,465

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

    I understand the restrictions the layout imposes, and agree it could well be improved. But what I sent reflects what the End User has stipulated.

    I did nor respond immediately to Jason or Pete because I was "AFD" for a while and have spent several hours trying to get the approaches to work on the "real" file, without success because of some curious anomolies.

    The attached update 151031 Comparisons v2.xlsx which is the actual column structure of the real file, although only a small section of the rows, works perfectly for the "monthly" comparisons until you select April 2017 onwards, From April - Dec the formula pulls up the annual results for 2017.

    Secondly, it generates numbers on the "Indirect" bloc from the same point that don't link to any of the sheets,

    And thirdly, selecting any of the Quarterly or annual summaries generates an Error Message.

    I'm sure it will be a simple "tweak" that I've missed, and will be grateful as ever if someone can point the error(s) out.

    Ochimus

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

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

    Quote Originally Posted by Ochimus View Post
    But what I sent reflects what the End User has stipulated.

    until you select April 2017 onwards, From April - Dec the formula pulls up the annual results for 2017.

    Secondly, it generates numbers on the "Indirect" bloc from the same point that don't link to any of the sheets,

    And thirdly, selecting any of the Quarterly or annual summaries generates an Error Message.
    But remember, end users rarely understand the real world, while there are exceptions, most tend to fall between housefly and pigeon where common sense is involved.

    Which formula was pulling annual results instead of monthly for 2017? I can't reproduce that problem.

    Were the numbers from the 'Indirect bloc' somewhere in the range of 42000 to 43000 ? Those numbers would represent the dates used with your data, today = 42309 (number of days from 1 Jan 1900).

    Both formula take the month and year from the criteria cell and convert it to a real date in order to identify the correct column. Qtr doesn't represent a real date, which is why it causes errors.

    This formula works with your latest example, but I wouldn't want to use it in a real world scenario. Given the amount of processing power this would need with a few thousand rows of data, it's going to more hazardous to the environment that a VW diesel!

+ 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] 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