+ Reply to Thread
Results 1 to 4 of 4

Lookup value from row and return higher if not available

  1. #1
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Lookup value from row and return higher if not available

    Hi All

    Hopefully I can explain this but if an example sheet is need please let me know.

    I have a vlaue in cell A1, lets say "H"
    I have a value in Cell A2, lets say 11000

    I now have a range of A4:J15. Column A contains letters from A-L, the rest of the range contains numbers.

    What i am trying to get is a formula that will take the value from cell A1 to find what row that is on and if the value in cell A2 is in that row then just return it otherwise if the value is not found then return round up to an available value in that row.

    I have written this formula but it seems to round down rather than up.

    =HLOOKUP(A2,$B$4:$J$15,MATCH(A1,$A$4:$A$15,0))

    any help would be great.

    Thanks in advance.

    Jim
    Last edited by JimmyA; 05-09-2012 at 06:19 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Lookup value from row and return higher if not available

    Hi Jim,

    and if the value in cell A2 is in that row then just return it otherwise if the value is not found then return round up to an available value in that row.
    If value found than return that, if not found than return value which is immediate greater than that, see the attached file - green cells. thanks.

    lookup value in a row and return higher.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Lookup value from row and return higher if not available

    Hi DILIPandey

    Thanks very much for this. It is exactly what I need.

    Thanks again.

    Jim

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Lookup value from row and return higher if not available

    You are welcome Jim...

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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