Closed Thread
Results 1 to 6 of 6

Hlookup -next largest number

  1. #1
    Registered User
    Join Date
    01-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Hlookup -next largest number

    Hi,

    I have a Hlookup function which is currently returning me the closest match that is lower.

    However, I want it to return the higher value.

    I have attached an explanation of what I'm trying to do.

    Thanks in advance,
    Sam
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Hlookup -next largest number

    hi samlim
    can you change values from 0,10,20,30,40 to 9,19,29,39,49,1000
    Last edited by pike; 01-10-2010 at 05:11 AM. Reason: adjust numbers
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Hlookup -next largest number

    wrong infomation
    Last edited by pike; 01-10-2010 at 06:07 AM.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Hlookup -next largest number

    the easy way would be to change the values in the quanity rows
    Last edited by pike; 01-10-2010 at 06:09 AM.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Hlookup -next largest number

    Hey samlim
    use this it will at the correct amount for the item to pull into the next column for the Hlookup
    =HLOOKUP($D5+SUMPRODUCT(--(C5={"A","B","C","D"})*({10,20,100,5})),OFFSET($J$3:$O$4,MATCH($C5,$I$5:$I$14),0),2,TRUE)

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Hlookup -next largest number

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

Closed 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