+ Reply to Thread
Results 1 to 5 of 5

Cannot get Offset and Match formula to work

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Dayton, ME, USA
    MS-Off Ver
    Excel 2004 for MAC 11.5.4
    Posts
    77

    Cannot get Offset and Match formula to work

    Hi

    I am having trouble getting the MATCH section of my formula to work.

    The offset section of things is working fine with the following staring point

    Please Login or Register  to view this content.
    However I do not want the starting point of the offset to be cell BR12 (as it is in the formula above). I want it to be the last cell with data in row 12, so I have been trying to use MATCH to find that position as the starting point, but no matter what I do I cannot find the correct solution.

    Help please !

    Many tanks

    Jon
    Last edited by endoskeleton; 06-08-2011 at 12:13 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cannot get Offset and Match formula to work

    Assuming the values are numeric

    =F5 * OFFSET(INDIRECT(ADDRESS(MATCH(LOOKUP(9^300,$BR$1:$BR$500),$BR$1:$BR$500,0),1,4)),-1,0)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cannot get Offset and Match formula to work

    or maybe just
    =f5*INDEX(10:10,MATCH(9.999999999E+307,12:12,1)-15)
    Last edited by martindwilson; 06-03-2011 at 10:05 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Cannot get Offset and Match formula to work

    HI

    If you can use a helper cell then you can look for the position of the first blank cell in row 12

    in the helper: =NOT(ISBLANK(A12))*1 drag across the first blank column will give a zero
    then use =MATCH(MIN(A11:Z11),A11:Z11,0) to find the first zero in your "ISBLANK" array

    then offset as required.

    edvwvw

  5. #5
    Registered User
    Join Date
    03-18-2011
    Location
    Dayton, ME, USA
    MS-Off Ver
    Excel 2004 for MAC 11.5.4
    Posts
    77

    Re: Cannot get Offset and Match formula to work

    @ martindwilson

    Fantastic, that worked perfectly.

    Cheers

    Jon

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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