Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default replacing value between sheets!


hi all!

i am having two worksheets. sheet1COL"A" having some defined values &
sheet1COL"B" having some related defined names.

sheet2 COL"A" having the same defined values as in sheet1 but randomly
repetitive and COL"B" having names but entirely different with
sheet1COL"B".

what i want is to replace the names in sheet2COL"B" with the related
difined names as in sheet1COL"B"!

example

sheet1
COL"A" COL"B"
10 aaa
20 bbb
30 ccc
40 ddd
50 eee

sheet2
COL"A" COL"B"
10 abc
20 bca
10 cab
30 cba
40 xyz
50 yzx
20 mno


result expected
sheet2
COL"A" COL"B"
10 aaa
20 bbb
10 aaa
30 ccc
40 ddd
50 eee
20 bbb



help pl?

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paul
 
Posts: n/a
Default replacing value between sheets!

in col b sheet 2
=vlookup(a1,sheet1!$A$1:$B$5,2,false),and copy down.Adjust the table a1:b5
to reflect the actual size of your tble but you must use the $ symbols to
make an absolute reference to the table
--
paul
remove nospam for email addy!



"via135" wrote:


hi all!

i am having two worksheets. sheet1COL"A" having some defined values &
sheet1COL"B" having some related defined names.

sheet2 COL"A" having the same defined values as in sheet1 but randomly
repetitive and COL"B" having names but entirely different with
sheet1COL"B".

what i want is to replace the names in sheet2COL"B" with the related
difined names as in sheet1COL"B"!

example

sheet1
COL"A" COL"B"
10 aaa
20 bbb
30 ccc
40 ddd
50 eee

sheet2
COL"A" COL"B"
10 abc
20 bca
10 cab
30 cba
40 xyz
50 yzx
20 mno


result expected
sheet2
COL"A" COL"B"
10 aaa
20 bbb
10 aaa
30 ccc
40 ddd
50 eee
20 bbb



help pl?

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default replacing value between sheets!


sorry Paul!

i am getting error #REF!
what's wrong with me?

-via135

paul Wrote:
in col b sheet 2
=vlookup(a1,sheet1!$A$1:$B$5,2,false),and copy down.Adjust the table
a1:b5
to reflect the actual size of your tble but you must use the $ symbols
to
make an absolute reference to the table
--
paul
remove nospam for email addy!



"via135" wrote:


hi all!

i am having two worksheets. sheet1COL"A" having some defined values

&
sheet1COL"B" having some related defined names.

sheet2 COL"A" having the same defined values as in sheet1 but

randomly
repetitive and COL"B" having names but entirely different with
sheet1COL"B".

what i want is to replace the names in sheet2COL"B" with the related
difined names as in sheet1COL"B"!

example

sheet1
COL"A" COL"B"
10 aaa
20 bbb
30 ccc
40 ddd
50 eee

sheet2
COL"A" COL"B"
10 abc
20 bca
10 cab
30 cba
40 xyz
50 yzx
20 mno


result expected
sheet2
COL"A" COL"B"
10 aaa
20 bbb
10 aaa
30 ccc
40 ddd
50 eee
20 bbb



help pl?

-via135


--
via135

------------------------------------------------------------------------
via135's Profile:

http://www.excelforum.com/member.php...o&userid=26725
View this thread:

http://www.excelforum.com/showthread...hreadid=508493




--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default replacing value between sheets!


What formula are you using?

#REF! possibly means that the sheet name is not recognised. Check you
are referencing the exact sheet name. If sheet name contains spaces use
single quotes around sheet name as below

=vlookup(a1,'sheet 1'!$A$1:$B$5,2,false)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=508493

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default replacing value between sheets!


hi!

i am using the exact sheet name! and my formula is

=(VLOOKUP(A1,Sheet7!$A$1:$A$6,2,FALSE))

can u help me pl?

-via135

daddylonglegs Wrote:
What formula are you using?

#REF! possibly means that the sheet name is not recognised. Check you
are referencing the exact sheet name. If sheet name contains spaces use
single quotes around sheet name as below

=vlookup(a1,'sheet 1'!$A$1:$B$5,2,false)



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default replacing value between sheets!

That formula can never return anything but an error, however that error
should be
#N/A You are trying to return a value in the second column from a table that
is only one column
If you want the 2nd column you need to use

=VLOOKUP(A1,Sheet7!$A$1:$B$6,2,FALSE)

now you can get ref errors if you delete a row where a formula points to, if
you use INDIRECT incorrectly
or if you already have a ref error in a range you are using. You might want
to check that, the version of your formula
that I posted works


--
Regards,

Peo Sjoblom

Portland, Oregon




"via135" wrote in
message ...

hi!

i am using the exact sheet name! and my formula is

=(VLOOKUP(A1,Sheet7!$A$1:$A$6,2,FALSE))

can u help me pl?

-via135

daddylonglegs Wrote:
What formula are you using?

#REF! possibly means that the sheet name is not recognised. Check you
are referencing the exact sheet name. If sheet name contains spaces use
single quotes around sheet name as below

=vlookup(a1,'sheet 1'!$A$1:$B$5,2,false)



--
via135
------------------------------------------------------------------------
via135's Profile:
http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default replacing value between sheets!

Your table is only one column wide ($A$1:$A$6), yet you are trying to
get data from the second column. I suggest you change the formula to:

=(VLOOKUP(A1,Sheet7!$A$1:$B$6,2,FALSE))

Hope this helps.

Pete

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default replacing value between sheets!


thank you all for pinpointing my stupid mistake!

after adjusting my array ref to 2 col ($a$1:$b$6) the formula works
nicely!

thks again!

-via135



Pete Wrote:
Your table is only one column wide ($A$1:$A$6), yet you are trying to
get data from the second column. I suggest you change the formula to:

=(VLOOKUP(A1,Sheet7!$A$1:$B$6,2,FALSE))

Hope this helps.

Pete



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=508493

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
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc EDSTAFF Excel Worksheet Functions 0 November 14th 05 03:27 PM
In 3 active sheets in wkbk, determine& display the # of sheets that have data wrpalmer Excel Discussion (Misc queries) 1 November 4th 05 02:01 PM
Finding specific sheets within a workbook Roy Excel Discussion (Misc queries) 2 August 23rd 05 06:40 PM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM


All times are GMT +1. The time now is 03:41 PM.

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

About Us

"It's about Microsoft Excel"