MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 15th, 2002, 12:07 PM   #1
mapakunk
New Member
 
Join Date: May 2002
Posts: 40
Default

OK I have
c D
4 Supplier CH NAME
5 mc00001 (where i want to put formula

The matching index is on Sheet 3 (a b)

I need to match the entry in c5
with the corresponding number in sheet 3's column a & b

I checked the old posts but could not find anything.
I've used help, the formula wizard, and etc. It does not come up with the exact match. I used lookup, and it returned the name before the line i needed. I've also tried to use ,False) and it returns an error

I've tried =lookup(c5,sheet3!a:a,Sheet3!b:b)
could someone please help me.



[ This Message was edited by: mapakunk on 2002-05-15 12:22 ]
mapakunk is offline   Reply With Quote
Old May 15th, 2002, 12:36 PM   #2
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default



[ This Message was edited by: brian from maui on 2002-05-15 12:33 ]
Brian from Maui is offline   Reply With Quote
Old May 15th, 2002, 01:22 PM   #3
mapakunk
New Member
 
Join Date: May 2002
Posts: 40
Default

I cannot get it to work

I tried using the power tip

http://www.mrexcel.com/tip021.shtml

And that doesn't seem to do it either

I've moved my table to be between k5:l74

I'm just trying to put the CH NAME of the supplier code in the column to the right of the supplier code. I don't want to do this manually.

So the equation would sound like

If the cell in c5 is equal to a cell in k:k then d6 equals the cell to the right of the match in L:L

Maybe this will help,

If you can refresh my memory on how to do it, I'll post the sheet to the board....

shift F9 or something
mapakunk is offline   Reply With Quote
Old May 15th, 2002, 01:36 PM   #4
invisigirl
Board Regular
 
Join Date: Mar 2002
Location: Oregon
Posts: 130
Default

Never fear! Brian from Maui is a genius.

I think what you need to do is name your range on Sheet 3, and then put that in where Brian had the sheet reference listed.

So, let's say you named Sheet 3's range "sheet3." Then your formula would read (if I can remember where you were wanting to put the formula):

=VLOOKUP(A5,sheet3,2)

See if that helps. I used that very formula yesterday (with help from Brian!) and it worked great for me.
invisigirl is offline   Reply With Quote
Old May 15th, 2002, 01:38 PM   #5
invisigirl
Board Regular
 
Join Date: Mar 2002
Location: Oregon
Posts: 130
Default

Oops - it was C5. Sorry!

And I should probably explain that you would select the cells in the K area on sheet 3.
invisigirl is offline   Reply With Quote
Old May 15th, 2002, 01:43 PM   #6
mapakunk
New Member
 
Join Date: May 2002
Posts: 40
Default

Please forgive me if I sound frustrated, but I've been staring at this problem for HRS

The suppliers names are things like

MA00001
MA00002
etc

When it performs the lookup, I think it avoids the numeric portion on the end. So, any ideas on how it can find exact match of text & numbers together?

This is important because I am preparing a database of invoices that I can export to outlook. And seeing the real name of our supplier makes much more sense than al00001 as we have to put it in the system.

Not my idea on the supplier codes though...

Thank you
mapakunk is offline   Reply With Quote
Old May 15th, 2002, 02:10 PM   #7
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Howzit,

Don't know what happened to my response but,

In sheet 3 column K - Suppliers code
Column L - Suppliers name

enter in d6
=vlookup(c5,sheet3!K5:l74,2)
sort columns K and L

watch out for extra spaces in your lookup table

If this doesn't work, you'll have to wait for Aladin, Mark W. or to help you, because I ain't no genius but these guys are!




[ This Message was edited by: Brian from Maui on 2002-05-15 13:12 ]

[ This Message was edited by: Brian from Maui on 2002-05-15 22:08 ]
Brian from Maui is offline   Reply With Quote
Old May 15th, 2002, 02:14 PM   #8
invisigirl
Board Regular
 
Join Date: Mar 2002
Location: Oregon
Posts: 130
Default

Wow, that IS frustrating! I just duplicated (and expanded) your data, and it worked fine for me. The only thing I can think of is maybe the way the cells in your range are formatted. Mine defaulted to "general," and it worked for me, although I can't imagine how, even if they were formatted as text, your lookup would fail to read through the whole number.

Hmm. At least my post will bring it back to the top for a moment. Check the formatting, and if that doesn't work, maybe someone else will see this and reply with an answer.

Good luck!!!
invisigirl is offline   Reply With Quote
Old May 15th, 2002, 03:44 PM   #9
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

mapakunk,

invisigirl's suggestion should work, although maybe in cell D5, not C5

Goto sheet 3 and name the 2 column range :

Highlight the range of your suppliers and CH Numbers

goto "insert"
then "names"
then "define"

name it (personally, I wouldn't use a name like "sheet" as that's something we refer to just about every few minutes in excel and this can be confusing - the same as naming files "menu" or naming tabs "lookup")

the "refers to" box should already have your absolute range in it as you highlighted it earlier.

click "add"

You've now named that range on sheet3. (Assume we called it "jinky")

Now back in Sheet1, the formula in D5, as invisigirl suggested, would be

=VLOOKUP(C5,jinky,2,0)

keep the C5 relative without any $$ anchoring and you should be able to copy it down the list.

(by the way, if you think that your list of stuff on Sheet3 will expand/contract over time, let us know, as we can set up the named range so that it too expands and contract with additions to or deletions from it, automatically, without the need to edit manually the size of the range)

_________________
Hope this helps,
Chris
(Excel '97, Windows ME)

[ This Message was edited by: Chris Davison on 2002-05-16 08:01 ]
Chris Davison is offline   Reply With Quote
Old May 15th, 2002, 09:55 PM   #10
mapakunk
New Member
 
Join Date: May 2002
Posts: 40
Default

could it be because these items were imported from a text file that the way excel is reading them it is confused?? I don't understand why it will give me a close(1 or 2 lines away) match, but an exact match. It must be something so simple that is being overlooked by me. Oh well I'll keep looking, and maybe it'll get figured out sooner or later thanks for all your help so far.
mapakunk is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes