+ Reply to Thread
Results 1 to 9 of 9

use of Vlookup for a range of values

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Mumbai India
    MS-Off Ver
    Excel 2003
    Posts
    5

    use of Vlookup for a range of values

    Hello friends..
    I have an excel sheet which helps to calculate pip e thickness and shcedule. The schedule is selected based on thickness calculated for eg. On “refdt” sheet, when the pipe thknss is calculated as something in between 0.065 to 0.109, the schedule should be selected as “40”. For some value which is <= 0.147 but greater than 0.109 , the schedule selected should be “80”
    The nested If function do not work for this as too many conditions are involved. How do we apply Vlookup to this data for searching in a range? Please advise.(sheet attached)

    Thanks
    Maoj
    Attached Files Attached Files
    Last edited by amanojp; 11-28-2011 at 02:04 AM.

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

    Re: use of Vlookup for a range of values

    Set up a table on the side.

    Start the first column at 0 and list all the lower bounds for your lookups. In the adjacent column, list the corresponding Schedule numbers...

    Then use formula like:

    =LOOKUP(S5,$X$2:$Y$20)

    where X2:Y20 is the table you created.
    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.

  3. #3
    Registered User
    Join Date
    11-23-2011
    Location
    Mumbai India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: use of Vlookup for a range of values

    Hi,

    Thanks for your reply... Can you please demo this in the attached sheet.... meanwhile i will also try this from my end...

    rgds

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    Mumbai India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: use of Vlookup for a range of values

    Hi,

    Another thing i forgot to mention here is that there are two conditions applicable ==( pls refer file attached)
    ---- When the pipe size selected on the earlier sheet "cal pg1" is say '1/2' (col L) ; the pipe thickness may be found to be calulated as say '0.089' (col N) , then the pipe schedule no. will be '40' (col M). Thus there will be these two conditions applicable i.e pipe size & wall thickness... How to address this condition.??

    as you can see from col N, the 0.089 inch wall thickness could be applicable to Pipe size 1/8, or 1/4/or 1/2 or 3/4 i.e to multiple pipe sizes...

    hope i am able to explain the problem correctly.

    thanks.
    Attached Files Attached Files

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

    Re: use of Vlookup for a range of values

    I am a bit confused now as to what you actually need here

    Which exact cells do you need a formula for, and what are the input parameters for the formula you need?

  6. #6
    Registered User
    Join Date
    11-23-2011
    Location
    Mumbai India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: use of Vlookup for a range of values

    Please refer to attached sheet and explanation in 'H29'

    hope this is clear.

    many thanks...
    manoj
    Attached Files Attached Files

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

    Re: use of Vlookup for a range of values

    Does this work?

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-23-2011
    Location
    Mumbai India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: use of Vlookup for a range of values

    Mind blowing !!! it worked.... thanks a lot.....

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

    Re: use of Vlookup for a range of values

    Great! You are welcome.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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