+ Reply to Thread
Results 1 to 10 of 10

Lookup = 0 pass row 31

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Lookup = 0 pass row 31

    Hi all new at this.

    we put a lookup in our workbook but when we use row 31 is displays 0. Works well upto row 30 but when you use row 31 is displays "0"

    =LOOKUP(F6,'Switch Boards'!A5:A31,'Switch Boards'!C5:C31)

    Any ideas on how to make lookup work past row 31?
    Last edited by blacky1; 01-19-2011 at 12:56 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Lookup = 0 pass row 31

    Hi and welcome to the board

    Are you using relative or absolute references for the lookup and result vector ?
    In the first case, the vectors will change when the formula is dragged down

    Try converting to absolute references =LOOKUP(F6,'Switch Boards'!$A$5:$A$31,'Switch Boards'!$C$5:$C$31)

  3. #3
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Lookup = 0 pass row 31

    Hi and thanks for the speed responce. Not sure if it is relative or absolute but this is what we do.

    We go to "formulas/Look up & Reference/LOOKUP/Lookup_Value, Lookup_vector, result_vector" then add the values.

    We tried your reference by copy and paste but bid not work.

    Are we doing it correct? or should we be doing it in another way?

    We have noticed that it is erratic and it may be related to our ref we are using.

    In the "Switch Boards'!A5:A31" we have this

    MSITP002
    MSITM003
    MSICR005
    MSICR006
    MSICA007
    MSICR008
    MSICG009
    MSITP010
    MSITP011
    MSIT2011
    MSITP012
    MSIT2012
    MSITP013
    MSITP014
    MSIT2014
    MSIT2015
    MSITP016
    MSIT2016
    MSITP017
    MSIT2017
    MSIT2018
    MSICG019
    MSICG020
    MSICD021
    MSICD022
    MSITD023
    1

    if we change it to

    1
    2
    3
    4
    and so on it works. Hmmmmm

    any ideas?
    Last edited by blacky1; 01-18-2011 at 08:50 AM.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Lookup = 0 pass row 31

    Better post a sample sheet with what you have and what you need. This will make it easier to solve

  5. #5
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Lookup = 0 pass row 31

    Here is a sample of what I am using.

    If you look at "AC Equipment List" G6 to G14, this is the look up. If you select in F6 to F14 this should change G6 to G14 to match what is in "Switch Boards" row C. If we change the numbers in "Switch Boards" A5 to A80 to read 1, 2, 3, 4 and so on it works. So looks like it is related to the numbers we are using.........hmmmmm......though this would not matter
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Lookup = 0 pass row 31

    index and match seems to fix

    =INDEX('Switch Boards'!$C$5:$C$80,MATCH('AC Equipment List'!F6,'Switch Boards'!$A$5:$A$80,0))
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  7. #7
    Forum Contributor trucker10's Avatar
    Join Date
    07-22-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003 / 2007 / 2010 prof +
    Posts
    149

    Re: Lookup = 0 pass row 31

    embedded file
    VLOOKUP
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Lookup = 0 pass row 31

    Yes thank you that did the trick .

    1 more questions.

    Question: You guy seam to use "$"..... example "Switch Boards'!$C$5:$C$80" rather than "Switch Boards'!C5:C80". I notice it works ether way but is there some reason we should use the "$"......we are using 2010

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Lookup = 0 pass row 31

    Dollar signs, $, are "anchors", this is what Arthur meant by Relative and Absolute Cell References.

    See this link
    http://www.ozgrid.com/Excel/free-tra...n-16-basic.htm

    Cheers

  10. #10
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Lookup = 0 pass row 31

    Ahhhh.......haaaaaa......ok, thanks for your help everyone......much appreciated . Have a great day.
    Last edited by blacky1; 01-19-2011 at 12:56 AM.

+ 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