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 Apr 30th, 2002, 02:42 PM   #1
aferree
New Member
 
Join Date: Apr 2002
Location: Charlotte, NC
Posts: 3
Default

Is it possible to update a cell in worksheet A based on a value in worksheet B? Maybe I can explain it better. I have a worksheet ("Worksheet 1") with columns A thru D for example that I send to end users. They add a columm E and insert comments to explain certain rows of data. Two days later I'll refresh the information and send them a new worksheet ("Worksheet 2") with columns A - D.
Is it possible to update column E on "Worksheet 2" with values from column E on "Worksheet 1" where column A in "Worksheet 2" matches column A in "Worksheet 1"? I hope this makes sense.
aferree is offline   Reply With Quote
Old Apr 30th, 2002, 05:25 PM   #2
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Not sure if this is what you want but...

In worksheet 2 in a cell enter:

=worksheet1!E1 and copy and paste down however many rows
Brian from Maui is offline   Reply With Quote
Old Apr 30th, 2002, 07:30 PM   #3
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Brian and aferree:

I believe when aferree is talking about Worksheet1 and Worksheet2, these are not worksheets from the same workbook, from what I can understand from aferree's statements, these are from two different workbooks. So, if that is the case reference to the workbook may have to be added to the linking formulas.
aferree, please do post if the worksheets are from two different workbooks.

Regards!

Yogi Anand
Yogi Anand is offline   Reply With Quote
Old Apr 30th, 2002, 08:09 PM   #4
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aloha aferre,

If it's two separate workbooks enter in a cell:

='[workbookname.xls]worksheet'1!$E$1

Yogi..is this correct?
Brian from Maui is offline   Reply With Quote
Old Apr 30th, 2002, 09:24 PM   #5
aferree
New Member
 
Join Date: Apr 2002
Location: Charlotte, NC
Posts: 3
Default

Yes, it's two different workbooks. What I'm trying to replicate is an Update query in Access (if that makes any sense)... Set E2 = E1 where A1=A2. E2 in this case would represent E column in "workbook B" and E1 would represent E column in "workbook A".I don't think I can set a reference to the cell the worksheet from "workbook A" b/c the worksheet in "workbook B" could have more or less rows.
aferree is offline   Reply With Quote
Old Apr 30th, 2002, 09:55 PM   #6
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-04-30 19:09, Brian from Maui wrote:
Aloha aferre,

If it's two separate workbooks enter in a cell:

='[workbookname.xls]worksheet'1!$E$1

Yogi..is this correct?
Hi Brian:
It will be
=[workbookname.xls]worksheet1!$E$1

Regards!

Yogi Anand
Yogi Anand is offline   Reply With Quote
Old May 1st, 2002, 01:46 PM   #7
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Yogi !

I don't like those $ signs



Also, I think the poster requires those links *if* a match on the respective columns "A" occurs, so we may need to present it something along the lines of :

=IF(A1='[Worksheet 1.xls]Sheet1'!A1,'[Worksheet 1.xls]Sheet1'!E1,"something else")

entered into worksheet 2, cell E1

with no anchoring dollar signs so we can copy down

whaddya reckon ?

Chris Davison is offline   Reply With Quote
Old May 1st, 2002, 03:31 PM   #8
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Chris:
I believe you are right -- you have picked up all the pieces -- my post was limited to pointing out to Brian that when the OP mentioned Worksheet1, and Worksheet2, these were not sheets of a workbook, but were indeed two different workbooks -- so I commented on the syntax of the linking formulation. Thanks for a close look at the whole issue.

Regards!

Yogi Anand
Yogi Anand is offline   Reply With Quote
Old May 1st, 2002, 04:13 PM   #9
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

ahhh yes, I see that now...



Can you help with the last sentence of the posters last message ? it's confusing me a bit....

(usually when something doesn't quite make sense, it means the whole orientation of the question is totally different from what you were interpretting it as !)
Chris Davison is offline   Reply With Quote
Old May 2nd, 2002, 08:00 AM   #10
aferree
New Member
 
Join Date: Apr 2002
Location: Charlotte, NC
Posts: 3
Default

Hey Chris,
That worked perfectly. Thanks. One follow-up question. Right now the formula looks for matches from column A1 in active worksheet to column A1 in the worksheet 1 and inserts the information from column E1. Is there anyway to have it search the entire column for a match and insert the respective information from the E cell in the same row.

Just say for example the match for column A1 of active worksheet was actually in A4 of worksheet 1.

This is what I meant by the active worksheet could have more or less rows than worksheet 1.

Thanks in advance.

[ This Message was edited by: aferree on 2002-05-02 13:38 ]

[ This Message was edited by: aferree on 2002-05-02 13:40 ]
aferree 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 08:09 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