#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Linda Peters
 
Posts: n/a
Default Lookup Problem

I have a rather large workbook with multiple uses of LOOKUP over a variety of
worksheets. In some cases, the LOOKUP of a particular value occurs only on
one worksheet, in other cases LOOKUP of the same value may occur over several
spreadsheets.

The problem I've run in to today is that when the data is updated, the value
returned by LOOKUP may not be correct (it keeps the old value and doesn't
replace it with the new one). In this particular instance, I used LOOKUP on
two different worksheets, both looking up values from the same table; some of
the values being looked up were the same, some were different. Spreadsheet 1
updated to the new values when the data was changed, however Spreadsheet 2
did not and kept the old value (which is now incorrect).

I was able to correct it by "re-doing" the LOOKUP formula on Spreadsheet 2,
but that's not going to be very effective long term.

Any suggestions of what the problem might be?
--
Linda Peters
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Lookup Problem

<Any suggestions of what the problem might be?

Not without your formulas, input values, expected and actual results!

--
Kind regards,

Niek Otten

"Linda Peters" wrote in message
...
I have a rather large workbook with multiple uses of LOOKUP over a variety
of
worksheets. In some cases, the LOOKUP of a particular value occurs only on
one worksheet, in other cases LOOKUP of the same value may occur over
several
spreadsheets.

The problem I've run in to today is that when the data is updated, the
value
returned by LOOKUP may not be correct (it keeps the old value and doesn't
replace it with the new one). In this particular instance, I used LOOKUP
on
two different worksheets, both looking up values from the same table; some
of
the values being looked up were the same, some were different. Spreadsheet
1
updated to the new values when the data was changed, however Spreadsheet 2
did not and kept the old value (which is now incorrect).

I was able to correct it by "re-doing" the LOOKUP formula on Spreadsheet
2,
but that's not going to be very effective long term.

Any suggestions of what the problem might be?
--
Linda Peters



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Linda Peters
 
Posts: n/a
Default Lookup Problem

Formula from spreadsheet 1: =LOOKUP(A27,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 18165

Formula from spreadsheet 2: =LOOKUP(A80,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 13665 (this is the old result, prior to updating the data)

In both cases, the value being looked up (in A27 & A80) are the same value
(an accounting code: 1-102-342-205-110)

--
Linda Peters


"Niek Otten" wrote:

<Any suggestions of what the problem might be?

Not without your formulas, input values, expected and actual results!

--
Kind regards,

Niek Otten

"Linda Peters" wrote in message
...
I have a rather large workbook with multiple uses of LOOKUP over a variety
of
worksheets. In some cases, the LOOKUP of a particular value occurs only on
one worksheet, in other cases LOOKUP of the same value may occur over
several
spreadsheets.

The problem I've run in to today is that when the data is updated, the
value
returned by LOOKUP may not be correct (it keeps the old value and doesn't
replace it with the new one). In this particular instance, I used LOOKUP
on
two different worksheets, both looking up values from the same table; some
of
the values being looked up were the same, some were different. Spreadsheet
1
updated to the new values when the data was changed, however Spreadsheet 2
did not and kept the old value (which is now incorrect).

I was able to correct it by "re-doing" the LOOKUP formula on Spreadsheet
2,
but that's not going to be very effective long term.

Any suggestions of what the problem might be?
--
Linda Peters




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Wright
 
Posts: n/a
Default Lookup Problem

If you do Tools / options / calculation, does it say automatic?

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Linda Peters" wrote in message
...
Formula from spreadsheet 1: =LOOKUP(A27,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 18165

Formula from spreadsheet 2: =LOOKUP(A80,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 13665 (this is the old result, prior to updating the data)

In both cases, the value being looked up (in A27 & A80) are the same value
(an accounting code: 1-102-342-205-110)

--
Linda Peters


"Niek Otten" wrote:

<Any suggestions of what the problem might be?

Not without your formulas, input values, expected and actual results!

--
Kind regards,

Niek Otten

"Linda Peters" wrote in message
...
I have a rather large workbook with multiple uses of LOOKUP over a
variety
of
worksheets. In some cases, the LOOKUP of a particular value occurs only
on
one worksheet, in other cases LOOKUP of the same value may occur over
several
spreadsheets.

The problem I've run in to today is that when the data is updated, the
value
returned by LOOKUP may not be correct (it keeps the old value and
doesn't
replace it with the new one). In this particular instance, I used
LOOKUP
on
two different worksheets, both looking up values from the same table;
some
of
the values being looked up were the same, some were different.
Spreadsheet
1
updated to the new values when the data was changed, however
Spreadsheet 2
did not and kept the old value (which is now incorrect).

I was able to correct it by "re-doing" the LOOKUP formula on
Spreadsheet
2,
but that's not going to be very effective long term.

Any suggestions of what the problem might be?
--
Linda Peters






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Lookup Problem

<(this is the old result, prior to updating the data)

Which data are you updating; A:A?

LOOKUP requires that the data is sorted ascending. Is that condition
satisfied?

LOOKUP is not used a lot anymore. As HELP says, it is provided for backward
compatibility.
Normally, one would use VLOOKUP.

BTW, did you check ToolsOptionsCalculation Tab and make sure Calculation
is Automatic?


--
Kind regards,

Niek Otten



"Linda Peters" wrote in message
...
Formula from spreadsheet 1: =LOOKUP(A27,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 18165

Formula from spreadsheet 2: =LOOKUP(A80,Data!A:A,Data!L:L)
Expected result: 18165
Actual result: 13665 (this is the old result, prior to updating the data)

In both cases, the value being looked up (in A27 & A80) are the same value
(an accounting code: 1-102-342-205-110)

--
Linda Peters


"Niek Otten" wrote:

<Any suggestions of what the problem might be?

Not without your formulas, input values, expected and actual results!

--
Kind regards,

Niek Otten

"Linda Peters" wrote in message
...
I have a rather large workbook with multiple uses of LOOKUP over a
variety
of
worksheets. In some cases, the LOOKUP of a particular value occurs only
on
one worksheet, in other cases LOOKUP of the same value may occur over
several
spreadsheets.

The problem I've run in to today is that when the data is updated, the
value
returned by LOOKUP may not be correct (it keeps the old value and
doesn't
replace it with the new one). In this particular instance, I used
LOOKUP
on
two different worksheets, both looking up values from the same table;
some
of
the values being looked up were the same, some were different.
Spreadsheet
1
updated to the new values when the data was changed, however
Spreadsheet 2
did not and kept the old value (which is now incorrect).

I was able to correct it by "re-doing" the LOOKUP formula on
Spreadsheet
2,
but that's not going to be very effective long term.

Any suggestions of what the problem might be?
--
Linda Peters








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range Lookup - Problem Jose M via OfficeKB.com Excel Worksheet Functions 0 August 9th 05 04:00 AM
Range Lookup - Problem Jose M via OfficeKB.com Excel Worksheet Functions 0 August 9th 05 04:00 AM
Range Lookup - Problem Jose M via OfficeKB.com Excel Worksheet Functions 0 August 9th 05 03:59 AM
Lookup Problem Scott Excel Worksheet Functions 0 April 18th 05 08:07 PM
Lookup Problem Annette Excel Worksheet Functions 1 April 16th 05 03:10 AM


All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"