+ Reply to Thread
Results 1 to 4 of 4

hlookup to skip past first found 'lookup_value'

Hybrid View

Ben Morton hlookup to skip past first... 10-23-2008, 05:48 AM
DonkeyOte Given you're only looking to... 10-23-2008, 06:13 AM
Ben Morton Thanks alot - I'm having a... 10-23-2008, 07:12 AM
Ben Morton Thanks DonkeyOte! Your a... 10-23-2008, 08:57 AM
  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    hlookup to skip past first found 'lookup_value'

    Hi there,

    I'm using the following formula "=HLOOKUP($B$4,Arg!$D$10:$DA$50,5,FALSE)"

    With Cell $B$4 as the 'Lookup_value' I wish to pull the second instance of the 'lookup_vlaue' not the first from within the 'Table_Array'

    Is there a way to do this?

    Later on I'd like to skip to the 3rd column/instance etc.

    It's not practical for me to change the size of the 'Table_array'

    Thanks for any sugestions.

    Regards,


    Ben
    Last edited by Ben Morton; 10-23-2008 at 08:58 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Given you're only looking to row 5 (hardwired) you could reduce the size of your array (from D10:DA50 to D10:DA14) which would give you a tiny performance gain...

    anyway, you could use the following INDEX based approach - note this is an array formula and requires you use SHIFT + CTRL + ENTER to commit

    note also assumption where $B$5 houses which instance you wish to return (1st, 2nd, 3rd etc..)

    =INDEX(Arg!$D$10:$DA$50,5,SMALL(IF(Arg!$D$10:$DA$10=$B$4,COLUMN($D:$DA)-3),$B$5))

    once array is set the formula will appear encased within {}

    Hope that helps.

  3. #3
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31
    Thanks alot - I'm having a play around with your post -

    I'll let you know how I get on.


    Ben

  4. #4
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31
    Thanks DonkeyOte!

    Your a genius never used an Array Fomula before I'm not 100% sure how this works yet but I'll get there!

    I have managed to edit so I can return any result in the column but editing only works when I click on the = button, NOT when F2ing into it! I have to select the 2nd argument and change it manualy that way - bit strange but it works.


    Thanks again for your help.


    Regs


    Ben

+ 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