+ Reply to Thread
Results 1 to 6 of 6

price List lookup

Hybrid View

  1. #1
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    price List lookup

    Cant figure right now, brain is fried neighbours had a party until 4am last night, had no slep but :-

    I have a price list Width/Drop

    1000 1300 1600 1900 2200 2500 2800 3100 3400 3700 4000 4300 4600 4900 5200

    850
    1150
    1450
    1750
    2050
    2350
    2650
    2950
    3250
    3550
    3850

    I need to index given :-

    My ranges are named Width and drop and List

    Rules are anything above largest drop/width must return 0
    anything below lowest width/drop will be the lowest listed
    anything inbetween will choose the value >= to the value

    lookup is returning the closest, and my other formula fell foul of nesting, i am working in 2007 but it is targeted at XP/2002

    TIA, i would figure it but no sleep is catching up on me!
    Attached Files Attached Files
    Last edited by squiggler47; 05-08-2009 at 11:50 AM. Reason: Added sample Sheet
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: price List lookup

    [removed in lieu of uploaded sample file]
    Last edited by DonkeyOte; 05-08-2009 at 11:41 AM.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: price List lookup

    Based on your sample file:

    E19:
    =IF(OR($C19>$Q$4,$D19>$B$15),0,INDEX($C$5:$Q$15,IF($D19<$B$5,1,MATCH($D19,$B$5:$B$15)+ISNA(MATCH($D19,$B$5:$B$15,0))),IF($C19<$C$4,1,MATCH($C19,$C$4:$Q$4)+ISNA(MATCH($C19,$C$4:$Q$4,0)))))

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: price List lookup

    Sorry slurped some coffee and I came up with something

    I was overthinking! And I gave my example wrong i got the width and height screwed up, told you I was half asleep!

    =IF(ISERROR(INDEX(List,COUNT(Drop)-COUNTIF(Drop,">=" &D19)+1,COUNT(Width)-COUNTIF(Width,">=" &C19)+1)),"",INDEX(List,COUNT(Drop)-COUNTIF(Drop,">=" &D19)+1,COUNT(Width)-COUNTIF(Width,">=" &C19)+1)

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: price List lookup

    Thanks for your help though its apreciated !

    what would make it perfect is if you could give me a sheet that will gag the neighbours so I wouldnt have to ask!

    Regards

    Darren

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: price List lookup

    Another sample attached... Uses named ranges, Drop, Width and Table
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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