Formula Question - Don't know what to call it

jaysh

New Member
Joined
Jul 30, 2006
Messages
16
I have a quick question. I dont know exactly what this would be called so I unfortunatley could not search.

Basically, I have 2 sheets.

Example

Sheet 1

1 A
2 B
3 C

Sheet 2

2 ?
2 ?
3 ?
1 ?
1 ?
2 ?
3 ?
2 ?

What I would like to do, is replace column b on sheet 2 w/ the corresponding information from sheet 1.

Answer would be like this:

2 B
2 B
3 C
1 A
1 A
2 B
3 C
2 B

But a simple IF would not work for me because I have about 100 different variables.

Any help would be appreciated.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
In case the values in column A are not index values (positions pointing to column B)...

B1, Sheeet2

=INDEX(Sheet1!$B$1:$B$3,MATCH(A1,Sheet1!$A$1:$A$3,0))
 

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
I have a quick question. I dont know exactly what this would be called so I unfortunatley could not search.

Basically, I have 2 sheets.

Example

Sheet 1

1 A
2 B
3 C

Sheet 2

2 ?
2 ?
3 ?
1 ?
1 ?
2 ?
3 ?
2 ?

What I would like to do, is replace column b on sheet 2 w/ the corresponding information from sheet 1.

Answer would be like this:

2 B
2 B
3 C
1 A
1 A
2 B
3 C
2 B

But a simple IF would not work for me because I have about 100 different variables.

Any help would be appreciated.
Here's another one...

Assuming your data on Sheet1 is in the range A2:B4.

Your data on Sheet2 is in the range A2:A9.

Enter this formula in Sheet2 B2 and copy down as needed:

=VLOOKUP(A2,Sheet1!A$2:B$4,2,0)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,712
Messages
5,833,266
Members
430,200
Latest member
ADLHMA2022

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top