+ Reply to Thread
Results 1 to 10 of 10

Help using lookup function

  1. #1
    Blackbird
    Guest

    Help using lookup function

    I'm having trouble using the lookup function.

    I have numbers that look like this in a list, although it's only part of
    what I'm using:

    -11 2179
    -10 2420
    -9 2661
    -8 2897
    -7 3123
    -6 3332
    -5 3521
    -4 3683
    -3 3814
    -2 3910
    -1 3970
    0 3989
    1 3970
    2 3910
    3 3814
    4 3683
    5 3521
    6 3332
    7 3123
    8 2897
    9 2661
    10 2420
    11 2179

    When I use the lookup function on another sheet of the cell, it does not
    look up the proper value always. My columns go from (-100, 100). Outside
    the values of (-10,10), the lookup works properly.

    These are the lookup cells:

    -11 2179
    -10 2420
    -9 2420
    -8 2897
    -7 3123
    -6 3332
    -5 3521
    -4 3521
    -3 3814
    -2 3814
    -1 3910
    0 3989
    1 3989
    2 3910
    3 3910
    4 3683
    5 3521
    6 3521
    7 3123
    8 3123
    9 2661
    10 2420
    11 2179

    If you'll notice, the values that the lookup cells get are not the values of
    the cell they're looking up, but often one off.

    Any suggestions on why this might be happening?

  2. #2
    Barb Reinhardt
    Guest

    Re: Help using lookup function

    What is your lookup equation?

    "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    news:8B57EAFA-7A9C-4E7C-AE4A-4589C7869DFA@microsoft.com...
    > I'm having trouble using the lookup function.
    >
    > I have numbers that look like this in a list, although it's only part of
    > what I'm using:
    >
    > -11 2179
    > -10 2420
    > -9 2661
    > -8 2897
    > -7 3123
    > -6 3332
    > -5 3521
    > -4 3683
    > -3 3814
    > -2 3910
    > -1 3970
    > 0 3989
    > 1 3970
    > 2 3910
    > 3 3814
    > 4 3683
    > 5 3521
    > 6 3332
    > 7 3123
    > 8 2897
    > 9 2661
    > 10 2420
    > 11 2179
    >
    > When I use the lookup function on another sheet of the cell, it does not
    > look up the proper value always. My columns go from (-100, 100). Outside
    > the values of (-10,10), the lookup works properly.
    >
    > These are the lookup cells:
    >
    > -11 2179
    > -10 2420
    > -9 2420
    > -8 2897
    > -7 3123
    > -6 3332
    > -5 3521
    > -4 3521
    > -3 3814
    > -2 3814
    > -1 3910
    > 0 3989
    > 1 3989
    > 2 3910
    > 3 3910
    > 4 3683
    > 5 3521
    > 6 3521
    > 7 3123
    > 8 3123
    > 9 2661
    > 10 2420
    > 11 2179
    >
    > If you'll notice, the values that the lookup cells get are not the values
    > of
    > the cell they're looking up, but often one off.
    >
    > Any suggestions on why this might be happening?




  3. #3
    Blackbird
    Guest

    Re: Help using lookup function

    For instance, the equation for the cell that is to the right of zero is
    "=LOOKUP(A104, 'Issue 1'!$E$2:$E$102, 'Issue 1'!$H$2:$H$102)"

    "Barb Reinhardt" wrote:

    > What is your lookup equation?
    >
    > "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    > news:8B57EAFA-7A9C-4E7C-AE4A-4589C7869DFA@microsoft.com...
    > > I'm having trouble using the lookup function.
    > >
    > > I have numbers that look like this in a list, although it's only part of
    > > what I'm using:
    > >
    > > -11 2179
    > > -10 2420
    > > -9 2661
    > > -8 2897
    > > -7 3123
    > > -6 3332
    > > -5 3521
    > > -4 3683
    > > -3 3814
    > > -2 3910
    > > -1 3970
    > > 0 3989
    > > 1 3970
    > > 2 3910
    > > 3 3814
    > > 4 3683
    > > 5 3521
    > > 6 3332
    > > 7 3123
    > > 8 2897
    > > 9 2661
    > > 10 2420
    > > 11 2179
    > >
    > > When I use the lookup function on another sheet of the cell, it does not
    > > look up the proper value always. My columns go from (-100, 100). Outside
    > > the values of (-10,10), the lookup works properly.
    > >
    > > These are the lookup cells:
    > >
    > > -11 2179
    > > -10 2420
    > > -9 2420
    > > -8 2897
    > > -7 3123
    > > -6 3332
    > > -5 3521
    > > -4 3521
    > > -3 3814
    > > -2 3814
    > > -1 3910
    > > 0 3989
    > > 1 3989
    > > 2 3910
    > > 3 3910
    > > 4 3683
    > > 5 3521
    > > 6 3521
    > > 7 3123
    > > 8 3123
    > > 9 2661
    > > 10 2420
    > > 11 2179
    > >
    > > If you'll notice, the values that the lookup cells get are not the values
    > > of
    > > the cell they're looking up, but often one off.
    > >
    > > Any suggestions on why this might be happening?

    >
    >
    >


  4. #4
    Peo Sjoblom
    Guest

    Re: Help using lookup function

    If you are looking for an exact match use vlookup or index and match combo

    =VLOOKUP(A104,'Issue 1'!E2:H102,4,0)

    or

    =INDEX('Issue 1'!H2:H102,MATCH(A104,'Issue 1'!E2:E102,0))

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    news:58D39563-CE06-4B2D-BFAF-750EE1BABE90@microsoft.com...
    > For instance, the equation for the cell that is to the right of zero is
    > "=LOOKUP(A104, 'Issue 1'!$E$2:$E$102, 'Issue 1'!$H$2:$H$102)"
    >
    > "Barb Reinhardt" wrote:
    >
    >> What is your lookup equation?
    >>
    >> "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    >> news:8B57EAFA-7A9C-4E7C-AE4A-4589C7869DFA@microsoft.com...
    >> > I'm having trouble using the lookup function.
    >> >
    >> > I have numbers that look like this in a list, although it's only part
    >> > of
    >> > what I'm using:
    >> >
    >> > -11 2179
    >> > -10 2420
    >> > -9 2661
    >> > -8 2897
    >> > -7 3123
    >> > -6 3332
    >> > -5 3521
    >> > -4 3683
    >> > -3 3814
    >> > -2 3910
    >> > -1 3970
    >> > 0 3989
    >> > 1 3970
    >> > 2 3910
    >> > 3 3814
    >> > 4 3683
    >> > 5 3521
    >> > 6 3332
    >> > 7 3123
    >> > 8 2897
    >> > 9 2661
    >> > 10 2420
    >> > 11 2179
    >> >
    >> > When I use the lookup function on another sheet of the cell, it does
    >> > not
    >> > look up the proper value always. My columns go from (-100, 100).
    >> > Outside
    >> > the values of (-10,10), the lookup works properly.
    >> >
    >> > These are the lookup cells:
    >> >
    >> > -11 2179
    >> > -10 2420
    >> > -9 2420
    >> > -8 2897
    >> > -7 3123
    >> > -6 3332
    >> > -5 3521
    >> > -4 3521
    >> > -3 3814
    >> > -2 3814
    >> > -1 3910
    >> > 0 3989
    >> > 1 3989
    >> > 2 3910
    >> > 3 3910
    >> > 4 3683
    >> > 5 3521
    >> > 6 3521
    >> > 7 3123
    >> > 8 3123
    >> > 9 2661
    >> > 10 2420
    >> > 11 2179
    >> >
    >> > If you'll notice, the values that the lookup cells get are not the
    >> > values
    >> > of
    >> > the cell they're looking up, but often one off.
    >> >
    >> > Any suggestions on why this might be happening?

    >>
    >>
    >>



  5. #5
    Blackbird
    Guest

    Re: Help using lookup function

    For some reason, neither suggestion gives values all the time now.

    Often, I get the #N/A error. However, there most definitely is a value
    among the series the corresponds, so there shouldn't be an #N/A error.

    "Peo Sjoblom" wrote:

    > If you are looking for an exact match use vlookup or index and match combo
    >
    > =VLOOKUP(A104,'Issue 1'!E2:H102,4,0)
    >
    > or
    >
    > =INDEX('Issue 1'!H2:H102,MATCH(A104,'Issue 1'!E2:E102,0))
    >
    > --
    > Regards,
    >
    > Peo Sjoblom
    >
    > (No private emails please)
    >
    >
    > "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    > news:58D39563-CE06-4B2D-BFAF-750EE1BABE90@microsoft.com...
    > > For instance, the equation for the cell that is to the right of zero is
    > > "=LOOKUP(A104, 'Issue 1'!$E$2:$E$102, 'Issue 1'!$H$2:$H$102)"
    > >
    > > "Barb Reinhardt" wrote:
    > >
    > >> What is your lookup equation?
    > >>
    > >> "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    > >> news:8B57EAFA-7A9C-4E7C-AE4A-4589C7869DFA@microsoft.com...
    > >> > I'm having trouble using the lookup function.
    > >> >
    > >> > I have numbers that look like this in a list, although it's only part
    > >> > of
    > >> > what I'm using:
    > >> >
    > >> > -11 2179
    > >> > -10 2420
    > >> > -9 2661
    > >> > -8 2897
    > >> > -7 3123
    > >> > -6 3332
    > >> > -5 3521
    > >> > -4 3683
    > >> > -3 3814
    > >> > -2 3910
    > >> > -1 3970
    > >> > 0 3989
    > >> > 1 3970
    > >> > 2 3910
    > >> > 3 3814
    > >> > 4 3683
    > >> > 5 3521
    > >> > 6 3332
    > >> > 7 3123
    > >> > 8 2897
    > >> > 9 2661
    > >> > 10 2420
    > >> > 11 2179
    > >> >
    > >> > When I use the lookup function on another sheet of the cell, it does
    > >> > not
    > >> > look up the proper value always. My columns go from (-100, 100).
    > >> > Outside
    > >> > the values of (-10,10), the lookup works properly.
    > >> >
    > >> > These are the lookup cells:
    > >> >
    > >> > -11 2179
    > >> > -10 2420
    > >> > -9 2420
    > >> > -8 2897
    > >> > -7 3123
    > >> > -6 3332
    > >> > -5 3521
    > >> > -4 3521
    > >> > -3 3814
    > >> > -2 3814
    > >> > -1 3910
    > >> > 0 3989
    > >> > 1 3989
    > >> > 2 3910
    > >> > 3 3910
    > >> > 4 3683
    > >> > 5 3521
    > >> > 6 3521
    > >> > 7 3123
    > >> > 8 3123
    > >> > 9 2661
    > >> > 10 2420
    > >> > 11 2179
    > >> >
    > >> > If you'll notice, the values that the lookup cells get are not the
    > >> > values
    > >> > of
    > >> > the cell they're looking up, but often one off.
    > >> >
    > >> > Any suggestions on why this might be happening?
    > >>
    > >>
    > >>

    >
    >


  6. #6
    Peo Sjoblom
    Guest

    Re: Help using lookup function

    Did you import this? If so you might have hidden spaces trailing html
    characters, I just make a quick test and copied the table for your post,
    pasted into excel and applied a vlookup formula typing in the lookup values
    and those that I tried I got a correct hit, no errors at all so I can only
    assume that what you think is a match is not,
    you can test with a cell that you know should be correct and then compare
    them =cell=cell2 or even check how many characters

    =LEN(lookup_Value_cell)
    =LEN(value_from Table_cell)

    same number?

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    news:B6E0AFEB-9AD5-441D-ADB0-4022A2303F28@microsoft.com...
    > For some reason, neither suggestion gives values all the time now.
    >
    > Often, I get the #N/A error. However, there most definitely is a value
    > among the series the corresponds, so there shouldn't be an #N/A error.
    >
    > "Peo Sjoblom" wrote:
    >
    >> If you are looking for an exact match use vlookup or index and match
    >> combo
    >>
    >> =VLOOKUP(A104,'Issue 1'!E2:H102,4,0)
    >>
    >> or
    >>
    >> =INDEX('Issue 1'!H2:H102,MATCH(A104,'Issue 1'!E2:E102,0))
    >>
    >> --
    >> Regards,
    >>
    >> Peo Sjoblom
    >>
    >> (No private emails please)
    >>
    >>
    >> "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    >> news:58D39563-CE06-4B2D-BFAF-750EE1BABE90@microsoft.com...
    >> > For instance, the equation for the cell that is to the right of zero is
    >> > "=LOOKUP(A104, 'Issue 1'!$E$2:$E$102, 'Issue 1'!$H$2:$H$102)"
    >> >
    >> > "Barb Reinhardt" wrote:
    >> >
    >> >> What is your lookup equation?
    >> >>
    >> >> "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    >> >> news:8B57EAFA-7A9C-4E7C-AE4A-4589C7869DFA@microsoft.com...
    >> >> > I'm having trouble using the lookup function.
    >> >> >
    >> >> > I have numbers that look like this in a list, although it's only
    >> >> > part
    >> >> > of
    >> >> > what I'm using:
    >> >> >
    >> >> > -11 2179
    >> >> > -10 2420
    >> >> > -9 2661
    >> >> > -8 2897
    >> >> > -7 3123
    >> >> > -6 3332
    >> >> > -5 3521
    >> >> > -4 3683
    >> >> > -3 3814
    >> >> > -2 3910
    >> >> > -1 3970
    >> >> > 0 3989
    >> >> > 1 3970
    >> >> > 2 3910
    >> >> > 3 3814
    >> >> > 4 3683
    >> >> > 5 3521
    >> >> > 6 3332
    >> >> > 7 3123
    >> >> > 8 2897
    >> >> > 9 2661
    >> >> > 10 2420
    >> >> > 11 2179
    >> >> >
    >> >> > When I use the lookup function on another sheet of the cell, it does
    >> >> > not
    >> >> > look up the proper value always. My columns go from (-100, 100).
    >> >> > Outside
    >> >> > the values of (-10,10), the lookup works properly.
    >> >> >
    >> >> > These are the lookup cells:
    >> >> >
    >> >> > -11 2179
    >> >> > -10 2420
    >> >> > -9 2420
    >> >> > -8 2897
    >> >> > -7 3123
    >> >> > -6 3332
    >> >> > -5 3521
    >> >> > -4 3521
    >> >> > -3 3814
    >> >> > -2 3814
    >> >> > -1 3910
    >> >> > 0 3989
    >> >> > 1 3989
    >> >> > 2 3910
    >> >> > 3 3910
    >> >> > 4 3683
    >> >> > 5 3521
    >> >> > 6 3521
    >> >> > 7 3123
    >> >> > 8 3123
    >> >> > 9 2661
    >> >> > 10 2420
    >> >> > 11 2179
    >> >> >
    >> >> > If you'll notice, the values that the lookup cells get are not the
    >> >> > values
    >> >> > of
    >> >> > the cell they're looking up, but often one off.
    >> >> >
    >> >> > Any suggestions on why this might be happening?
    >> >>
    >> >>
    >> >>

    >>
    >>



  7. #7
    Blackbird
    Guest

    Re: Help using lookup function

    Yes, I did import them.

    When I did those tests, they indicated that there numbers were imprecise and
    had been rounded for display purposes. I used the ROUND function, and then
    they all came up as TRUE when using that test and with equal numbers using
    LEN.

    Still however, the error persists.

    "Peo Sjoblom" wrote:

    > Did you import this? If so you might have hidden spaces trailing html
    > characters, I just make a quick test and copied the table for your post,
    > pasted into excel and applied a vlookup formula typing in the lookup values
    > and those that I tried I got a correct hit, no errors at all so I can only
    > assume that what you think is a match is not,
    > you can test with a cell that you know should be correct and then compare
    > them =cell=cell2 or even check how many characters
    >
    > =LEN(lookup_Value_cell)
    > =LEN(value_from Table_cell)
    >
    > same number?
    >
    > --
    > Regards,
    >
    > Peo Sjoblom
    >
    > (No private emails please)


  8. #8
    Peo Sjoblom
    Guest

    Re: Help using lookup function

    You might need to round in both instances

    =INDEX('Issue 1'!H2:H102,MATCH(ROUND(A104,2),ROUND('Issue 1'!E2:E102,2),0))

    entered with ctrl + shift & enter

    other than that one value might be text and the other number, try this

    =ISTEXT('Issue 1'!E2)

    copy down and see if you get any true values, do the same with your lookup
    values

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    news:765FFFB5-DD96-404E-9CDD-942AA57B60B7@microsoft.com...
    > Yes, I did import them.
    >
    > When I did those tests, they indicated that there numbers were imprecise
    > and
    > had been rounded for display purposes. I used the ROUND function, and
    > then
    > they all came up as TRUE when using that test and with equal numbers using
    > LEN.
    >
    > Still however, the error persists.
    >
    > "Peo Sjoblom" wrote:
    >
    >> Did you import this? If so you might have hidden spaces trailing html
    >> characters, I just make a quick test and copied the table for your post,
    >> pasted into excel and applied a vlookup formula typing in the lookup
    >> values
    >> and those that I tried I got a correct hit, no errors at all so I can
    >> only
    >> assume that what you think is a match is not,
    >> you can test with a cell that you know should be correct and then compare
    >> them =cell=cell2 or even check how many characters
    >>
    >> =LEN(lookup_Value_cell)
    >> =LEN(value_from Table_cell)
    >>
    >> same number?
    >>
    >> --
    >> Regards,
    >>
    >> Peo Sjoblom
    >>
    >> (No private emails please)



  9. #9
    Blackbird
    Guest

    Re: Help using lookup function

    I get false on both instances when I use ISTEXT on every value.

    The index function yields #VALUE. Perhaps I don't know exactly how to work
    it?

    Should I send you my actual file?

    "Peo Sjoblom" wrote:

    > You might need to round in both instances
    >
    > =INDEX('Issue 1'!H2:H102,MATCH(ROUND(A104,2),ROUND('Issue 1'!E2:E102,2),0))
    >
    > entered with ctrl + shift & enter
    >
    > other than that one value might be text and the other number, try this
    >
    > =ISTEXT('Issue 1'!E2)
    >
    > copy down and see if you get any true values, do the same with your lookup
    > values
    >
    > --
    > Regards,
    >
    > Peo Sjoblom
    >
    > (No private emails please)
    >
    >
    > "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    > news:765FFFB5-DD96-404E-9CDD-942AA57B60B7@microsoft.com...
    > > Yes, I did import them.
    > >
    > > When I did those tests, they indicated that there numbers were imprecise
    > > and
    > > had been rounded for display purposes. I used the ROUND function, and
    > > then
    > > they all came up as TRUE when using that test and with equal numbers using
    > > LEN.
    > >
    > > Still however, the error persists.
    > >
    > > "Peo Sjoblom" wrote:
    > >
    > >> Did you import this? If so you might have hidden spaces trailing html
    > >> characters, I just make a quick test and copied the table for your post,
    > >> pasted into excel and applied a vlookup formula typing in the lookup
    > >> values
    > >> and those that I tried I got a correct hit, no errors at all so I can
    > >> only
    > >> assume that what you think is a match is not,
    > >> you can test with a cell that you know should be correct and then compare
    > >> them =cell=cell2 or even check how many characters
    > >>
    > >> =LEN(lookup_Value_cell)
    > >> =LEN(value_from Table_cell)
    > >>
    > >> same number?
    > >>
    > >> --
    > >> Regards,
    > >>
    > >> Peo Sjoblom
    > >>
    > >> (No private emails please)

    >
    >


  10. #10
    Blackbird
    Guest

    Wierd

    Somehow, when I use the ROUND function now, it all works. It didn't work
    last time, and I still had it in there, but then it started working when I
    opened the application again.

    Thanks!

    "Blackbird" wrote:

    > I get false on both instances when I use ISTEXT on every value.
    >
    > The index function yields #VALUE. Perhaps I don't know exactly how to work
    > it?
    >
    > Should I send you my actual file?
    >
    > "Peo Sjoblom" wrote:
    >
    > > You might need to round in both instances
    > >
    > > =INDEX('Issue 1'!H2:H102,MATCH(ROUND(A104,2),ROUND('Issue 1'!E2:E102,2),0))
    > >
    > > entered with ctrl + shift & enter
    > >
    > > other than that one value might be text and the other number, try this
    > >
    > > =ISTEXT('Issue 1'!E2)
    > >
    > > copy down and see if you get any true values, do the same with your lookup
    > > values
    > >
    > > --
    > > Regards,
    > >
    > > Peo Sjoblom
    > >
    > > (No private emails please)
    > >
    > >
    > > "Blackbird" <Blackbird@discussions.microsoft.com> wrote in message
    > > news:765FFFB5-DD96-404E-9CDD-942AA57B60B7@microsoft.com...
    > > > Yes, I did import them.
    > > >
    > > > When I did those tests, they indicated that there numbers were imprecise
    > > > and
    > > > had been rounded for display purposes. I used the ROUND function, and
    > > > then
    > > > they all came up as TRUE when using that test and with equal numbers using
    > > > LEN.
    > > >
    > > > Still however, the error persists.
    > > >
    > > > "Peo Sjoblom" wrote:
    > > >
    > > >> Did you import this? If so you might have hidden spaces trailing html
    > > >> characters, I just make a quick test and copied the table for your post,
    > > >> pasted into excel and applied a vlookup formula typing in the lookup
    > > >> values
    > > >> and those that I tried I got a correct hit, no errors at all so I can
    > > >> only
    > > >> assume that what you think is a match is not,
    > > >> you can test with a cell that you know should be correct and then compare
    > > >> them =cell=cell2 or even check how many characters
    > > >>
    > > >> =LEN(lookup_Value_cell)
    > > >> =LEN(value_from Table_cell)
    > > >>
    > > >> same number?
    > > >>
    > > >> --
    > > >> Regards,
    > > >>
    > > >> Peo Sjoblom
    > > >>
    > > >> (No private emails please)

    > >
    > >


+ 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