Formula Required

manoj18071965

Board Regular
Joined
Sep 16, 2011
Messages
65
I have 4 columns in MS office excel 2013. I want formula for whenever i select A value from drop down list B, C, D value should automatically populate in front to A under fields Employee Code, Salary & Variable
[TABLE="width: 472"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Employee Name[/TD]
[TD]Employee Code[/TD]
[TD]Salary[/TD]
[TD]Variable[/TD]
[/TR]
[TR]
[TD]Deeksha Sharma[/TD]
[TD]2016009[/TD]
[TD]22750[/TD]
[TD]2844[/TD]
[/TR]
[TR]
[TD]Babban Yadav[/TD]
[TD]2016012[/TD]
[TD]17500[/TD]
[TD]2188[/TD]
[/TR]
[TR]
[TD]Komal Sharma[/TD]
[TD]2016018[/TD]
[TD]26000[/TD]
[TD]3250[/TD]
[/TR]
[TR]
[TD]JaanPal[/TD]
[TD]2016022[/TD]
[TD]20000[/TD]
[TD]2500

[/TD]
[/TR]
</tbody>[/TABLE]
 

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.
Let A:D of Sheet1 house the data you posted.

Let A2 of Sheet2 house a drop down list from which an employee name can be selected.

Assuming that the selected name can just occur once in Sheet1 (the salary field implies this assumption), in B2 enter and copy across:

=VLOOKUP($A2,Sheet1!$A:$D,MATCH(B$1,INDEX(Sheet1!$A:$D,1,0),0))

where B1 = Employee Code, C1 = Salary, and D1 = Variable.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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
Back
Top