Consulting

Results 1 to 6 of 6

Thread: Further variation of Index/Match

  1. #1
    VBAX Contributor Glaswegian's Avatar
    Joined
    Sep 2004
    Location
    Glasgow, Scotland
    Posts
    196
    Location

    Further variation of Index/Match

    Hi

    I received help and an excellent formula recently
    http://www.vbaexpress.com/forum/showthread.php?t=35730

    but I'm looking at a possible re-design of the workbook in question and wondered if it was possible to create a formula based on the following changes.

    The dropdowns are still in F16 - F53.
    The possible text values are now in a named range on another sheet - the sheet is called 'Tables' and the range Name is 'Answers'.
    At the moment, the text answers still matches the row of the dropdown - however, some of the text is duplicated, so that might change.

    Thanks .
    Iain - XL2010 on Windows 7

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Can you post a sample?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =INDEX(INDEX(Answers,ROW(F16)-ROW($F$15)+1,0),1,MATCH($F16,INDEX(Answers,1,0),0))
    Last edited by Aussiebear; 04-21-2023 at 06:31 PM. Reason: Added code tags
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Contributor Glaswegian's Avatar
    Joined
    Sep 2004
    Location
    Glasgow, Scotland
    Posts
    196
    Location
    Hi

    Thanks for your replies.

    xld - your formula produces an #N/A error.

    I've attached a basic sample of the 'as is' position. I would like to do some redesign, such as moving the answers section to another sheet. The duplicated answers are a nuisance as well but I can live with that.

    Thanks for any help.
    Attached Files Attached Files
    Iain - XL2010 on Windows 7

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you data started in F16 as you said, if you have a named range called ANswers, it works fine.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Contributor Glaswegian's Avatar
    Joined
    Sep 2004
    Location
    Glasgow, Scotland
    Posts
    196
    Location
    xld - my apologies.

    I had inserted 2 new rows near the top and forgot to adjust your formula. It does indeed work perfectly - many thanks!
    Iain - XL2010 on Windows 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •