POSITION OF A VALUE

hmsbablu

New Member
Joined
Feb 3, 2006
Messages
5
Kindly help me with a code or formula to find the solution for the following. I am a newbie to excel and beginner, here is my problem:

Data in sheet 1:

COLUMN A: SCRIP NAME COLUMN B: POSITION

x 1
y 2
z 3

Data in sheet 2:

COLUMN A: SCRIP NAME COLUMN B: POSITION

x 2
y 1
z 3

I want the result in the Sheet 3 as follows:

COLUMN A:[Scrip name] COLUMN B[Position in sheet1]: COLUMN C: [Position in sheet2]

x 1 2
y 2 1
z 3 3

and the number of List may vary from sheet to sheet, but the unique in both sheets by scrip name should be in the sheet 3.

Kindly someone here help me, please.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
You could use Vlookup()


e.g. for Sheet 1 info =Vlookup(A2,Sheet1!$A$2:$B$1000,2,FALSE)

for sheet 2 info =Vlookup(A2,Sheet2!$A$2:$B$1000,2,FALSE)

where A2 contains the first lookup value.

adjust ranges to suit and copy formulas down.
 

Forum statistics

Threads
1,141,151
Messages
5,704,586
Members
421,358
Latest member
Redstar13

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