#1   Report Post  
Posted to microsoft.public.excel.misc
The Toaster
 
Posts: n/a
Default Lookup

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Lookup

HLOOKUP works on the full text.

I tested a table with Corn & Carrots and it worked OK.

Have you included FALSE as the last parameter to find an EXACT Match? If
not, it will find the closest match, assuming data is sorted in ascending
order.

..
=HLOOKUP(D1,F1:J2,2,FALSE)

HTH

"The Toaster" wrote:

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
The Toaster
 
Posts: n/a
Default Lookup

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$40)

This is the formula we are currently using. Tried your suggestion & couldn't
get it to work correctly.

The idea is that the user selects from the validation list & the appropriate
code is picked from the hidden list underneath.

Suggestions?


"Toppers" wrote:

HLOOKUP works on the full text.

I tested a table with Corn & Carrots and it worked OK.

Have you included FALSE as the last parameter to find an EXACT Match? If
not, it will find the closest match, assuming data is sorted in ascending
order.

.
=HLOOKUP(D1,F1:J2,2,FALSE)

HTH

"The Toaster" wrote:

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Lookup

You originaaly said HLOOKUP, but now it's LOOKUP.

Testing worked for me using a validation list.

I am assuming a typo in your lookup (g40 should be g41)

And data must be in ascending order.

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$41)



"The Toaster" wrote:

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$40)

This is the formula we are currently using. Tried your suggestion & couldn't
get it to work correctly.

The idea is that the user selects from the validation list & the appropriate
code is picked from the hidden list underneath.

Suggestions?


"Toppers" wrote:

HLOOKUP works on the full text.

I tested a table with Corn & Carrots and it worked OK.

Have you included FALSE as the last parameter to find an EXACT Match? If
not, it will find the closest match, assuming data is sorted in ascending
order.

.
=HLOOKUP(D1,F1:J2,2,FALSE)

HTH

"The Toaster" wrote:

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
The Toaster
 
Posts: n/a
Default Lookup

The ascending order seems to make a big difference.

Why does it not work above 19 rows though? If I increase the rows above 20
it blanks out?

ANy ideas?

"Toppers" wrote:

You originaaly said HLOOKUP, but now it's LOOKUP.

Testing worked for me using a validation list.

I am assuming a typo in your lookup (g40 should be g41)

And data must be in ascending order.

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$41)



"The Toaster" wrote:

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$40)

This is the formula we are currently using. Tried your suggestion & couldn't
get it to work correctly.

The idea is that the user selects from the validation list & the appropriate
code is picked from the hidden list underneath.

Suggestions?


"Toppers" wrote:

HLOOKUP works on the full text.

I tested a table with Corn & Carrots and it worked OK.

Have you included FALSE as the last parameter to find an EXACT Match? If
not, it will find the closest match, assuming data is sorted in ascending
order.

.
=HLOOKUP(D1,F1:J2,2,FALSE)

HTH

"The Toaster" wrote:

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!



  #6   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Lookup

There is no limit other than the 65000+ rows in Excel. So something else must
be wrong. What exactly do you mean by blank out?

"The Toaster" wrote:

The ascending order seems to make a big difference.

Why does it not work above 19 rows though? If I increase the rows above 20
it blanks out?

ANy ideas?

"Toppers" wrote:

You originaaly said HLOOKUP, but now it's LOOKUP.

Testing worked for me using a validation list.

I am assuming a typo in your lookup (g40 should be g41)

And data must be in ascending order.

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$41)



"The Toaster" wrote:

=LOOKUP($H13,$I$35:$I$41,$G$35:$G$40)

This is the formula we are currently using. Tried your suggestion & couldn't
get it to work correctly.

The idea is that the user selects from the validation list & the appropriate
code is picked from the hidden list underneath.

Suggestions?


"Toppers" wrote:

HLOOKUP works on the full text.

I tested a table with Corn & Carrots and it worked OK.

Have you included FALSE as the last parameter to find an EXACT Match? If
not, it will find the closest match, assuming data is sorted in ascending
order.

.
=HLOOKUP(D1,F1:J2,2,FALSE)

HTH

"The Toaster" wrote:

I am creating a workbook that is part of budget management. Within the
workbook is a list of products (i.e: apples, pears, oranges) & their budget
code. People need to be able to add new codes all the time. This data is
called through to the main spreadsheet & listed in a hidden table. From here
to data is shown in validation pick lists & the appropriate code is pulled
using HLOOKUP from the hidden table.

Unfortunately due to the stupidity of the users we have to keep as much of
the workbook locked & restrict useage.

The problem is that when we have two items with the same starting letter
(i.e corn & carrotts) HLOOKUP is only picking up the first code it comes two
& not comparing the full text.......help!

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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:15 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"