+ Reply to Thread
Results 1 to 4 of 4

Problem with address look up

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Problem with address look up

    I have a set of laboratory test results I need to process. Using the MAX and MIN commands I can find the required number in a set of data. Using this

    =INDIRECT(ADDRESS(MATCH(R2,B1:B205,0),12))

    I can look up the matching data for a different column on the selected row. This works fine except I need to do the calculation 10 times. That is for 10 sets of data within the results lists.

    For the next set of data I have modified the formaula to

    =INDIRECT(ADDRESS(MATCH(R3,B206:B410,0),12)) so ,I believe, the spreadsheet should now look up the matching value for cell R3 within the range B206:B410 and put this in my results table.

    My problem is that the formula only works once in the spread sheet. For the second and subsequent sets of data the spreadsheet does not look uop the value in the correct range but inputs a value taken from the first set.

    This happens for all 10 blocks of data. The indirect address match command ignores the column B cell range and still inputs a value from B1 to B205.

    I can't seem to find why I cannot look up values from sucessive sets of data and why the spreadsheet only referes to the first lookup cells.

    Any help grearlt appreciated

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Problem with address look up

    MATCH returns the relative position of the found item, so if your range is B206:B410 and the matching item is in cell B220, for example, then the MATCH function will return 15 - you will need to add 205 (i.e. the number of rows before the start of the range) onto this to get the absolute row number.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Problem with address look up

    The spreadsheet works well for the first set of data. For cells 1 to 205 the maximum value is found and put in cell R2.
    =INDIRECT(ADDRESS(MATCH(R2,B2:B205,0),12))
    The value for the indirect address match is looked up correctly and put in the correct cell in a results table.

    The problem is for the next set of data, Cells 206 to 410. The formula for these cells is

    =INDIRECT(ADDRESS(MATCH(R3,B206:B410,0),12)

    This does not look up the matching data for cell R3 between cells B206 and B410 it selects a cell still from the range B2 to B205. This is not what I need and I can't find any reason why the second address match will not work

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Problem with address look up

    Attach a sample Excel workbook (the FAQ describes how to) so we can see more clearly what you are trying to do - there are a number of ways of achieving multiple lookups of duplicated values, so we should be able to suggest alternatives to your formula.

    Pete

+ 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] Target Address Problem
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-17-2013, 12:18 PM
  2. Address split problem
    By vishal kiran in forum Excel General
    Replies: 1
    Last Post: 04-26-2013, 02:20 AM
  3. Absolute address problem
    By Amada in forum Excel General
    Replies: 6
    Last Post: 08-20-2010, 12:18 PM
  4. another cell address problem
    By natdawson in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-24-2010, 06:05 AM
  5. Address Block Problem
    By longfisher in forum Excel General
    Replies: 5
    Last Post: 05-10-2007, 08:51 AM
  6. [SOLVED] Problem using ADDRESS() in SUMPRODUCT()
    By rmellison in forum Excel General
    Replies: 2
    Last Post: 01-09-2006, 07:20 AM
  7. cell address problem
    By solrac99 in forum Excel General
    Replies: 4
    Last Post: 05-31-2005, 05:05 PM
  8. activecell.address problem
    By Jason in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2005, 07:06 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