Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2012, 01:49 AM
gsrikanth gsrikanth is offline joins Windows XP joins Office XP
Competent Performer
joins
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default joins

i first sheet i have



country, capital (25 rows)

in second sheet ihave

country, capital, code (around 250 rows)


by looking in second sheet i want to add code to first sheet
Reply With Quote
  #2  
Old 04-07-2012, 02:34 PM
caholmes caholmes is offline joins Windows Vista joins Office 2007
Advanced Beginner
 
Join Date: Dec 2008
Location: Sydney, Australia
Posts: 54
caholmes is on a distinguished road
Default

Hi gsrikanth,

you will need to use a vlookup. If you upload the spreadsheet I can take you throught the steps to enter the formula.
Reply With Quote
  #3  
Old 04-08-2012, 12:46 AM
gsrikanth gsrikanth is offline joins Windows XP joins Office XP
Competent Performer
joins
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default

plz find attachments
Attached Files
File Type: xls ADILABAD.xls (171.5 KB, 21 views)
Reply With Quote
  #4  
Old 04-08-2012, 11:28 AM
davesexcel's Avatar
davesexcel davesexcel is offline joins Windows XP joins Office 2007
Novice
 
Join Date: Mar 2006
Posts: 7
davesexcel is on a distinguished road
Default

Use
=INDEX(Sheet2!$C$2:$C$29,MATCH(1,(A2=Sheet2!$A$2:$ A$29)*(B2=Sheet2!$B$2:$B$29),0))
This is an array formula.
You will have to confirm with Ctrl & Shift & Enter.
Paste this into C2 and then click in the formula bar and then Ctrl & Shift & Enter.
This puts {} around the formula.
You can then drag the formula down.
Reply With Quote
  #5  
Old 04-08-2012, 02:56 PM
caholmes caholmes is offline joins Windows Vista joins Office 2007
Advanced Beginner
 
Join Date: Dec 2008
Location: Sydney, Australia
Posts: 54
caholmes is on a distinguished road
Default

Hi gsrikanth,

davesexcel has given you a great solution to your problem however he didn't use the full ranges on sheet 2. Here is a minor correction to your problem.

=INDEX(Sheet2!$C$2:$C$1759,MATCH(1,(A2=Sheet2!$A$2 :$A$1759)*(B2=Sheet2!$B$2:$B$1759),0))

Again, follow the steps that he gave you and replace this formula with his.
Reply With Quote
  #6  
Old 04-14-2012, 12:13 AM
gsrikanth gsrikanth is offline joins Windows XP joins Office XP
Competent Performer
joins
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default

Quote:
Originally Posted by davesexcel View Post
Use
=INDEX(Sheet2!$C$2:$C$29,MATCH(1,(A2=Sheet2!$A$2:$ A$29)*(B2=Sheet2!$B$2:$B$29),0))
This is an array formula.
You will have to confirm with Ctrl & Shift & Enter.
Paste this into C2 and then click in the formula bar and then Ctrl & Shift & Enter.
This puts {} around the formula.
You can then drag the formula down.
in the same way
in one sheet only colomn i have code
from second sheet i have country, capital, code
i want in first sheet using code i want get country name, capital from second
Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 06:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft