Excel formula to get the value from another sheet

GirishDhruva

Active Member
Joined
Mar 26, 2019
Messages
308
Hi Everyone,


Check with the above attachment and kindly read the below lines.

In column "D" of Target_Ws i am trying to add the formula, where i need to get the value of that EC based on PEC.

Like below:

If my EC value is 2 based on that i need to get the value of BAS from the Source_Ws sheet and in the similar way i need to get all the other values based on the EC and PEC

ECPCPECPEVPECl
2​
RPBAS
177800​
HAR
88900​
CA
0​
MA
0​
CCP
0​
FVA
0​
DSR
0​
PDS
2200​
VOE
0​
CPD
0​
JB
0​
LET
0​
SA
0​
TE
0​
PFEC
173216​
VPFC
442116​
IT
17780​
PRT
0​
IS
117430​
IS Ar
200​
FCD
502​
TD
0​
NP
2200​

Regards,
Dhruva.
 
Are you getting the other values like LTAA ,PDA ,VOEA values.

I am not getting the values for the if i extend my EC Value also.

ECPCPECPEV
2​
DSA
12000​
2​
LTAA0
2​
PDA0
2​
VOEA0
6​
DSA
4500​
6​
LTAA0
6​
PDA0
6​
VOEA0
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi I'm sorry, that's not correct.

Here below two solution.

01. With array formula, after writing the formula you have to press CRTL+SHIFT+ENTER & then drag down for others cells.

Rem_Mr_Excel.xlsx
ABCD
1ECPCPECPEV
22DSA12000
32LTAA4500
426PDA37500
526VOEA12000
66DSA4500
7LTAA0
8PDA0
9VOEA0
1014DSA4500
11LTAA0
12PDA0
Target_Ws
Cell Formulas
RangeFormula
D2:D12D2=IFERROR(INDEX(Source_Ws!$AR$2:$AR$20,MATCH(Target_Ws!A2&Target_Ws!C2,Source_Ws!$A$2:$A$20&Source_Ws!$C$2:$C$20,0),1),"0")
Press CTRL+SHIFT+ENTER to enter array formulas.


02. Second solution, add a helper column in Target_WS, between PEC & PEV, type =A2&C2 & drag down.
And on Source_WS add another column after "PM"/C, type =A2&C2 & drag down.
And at the Target_WS sheet writes the formula as below.
=IFERROR(INDEX('Source_Ws (2)'!AS2:AS20,MATCH('Target_Ws (2)'!D2,'Source_Ws (2)'!D2:D20,0),1),"0")

Rem_Mr_Excel.xlsx
ABCDE
1ECPCPECPEV
22DSA2DSA12000
32LTAA2LTAA4500
426PDA26PDA37500
526VOEA26VOEA12000
66DSA6DSA0
7LTAALTAA0
8PDAPDA0
9VOEAVOEA0
1014DSA14DSA0
11LTAALTAA0
Target_Ws (2)
Cell Formulas
RangeFormula
D2:D11D2=A2&C2
E2:E11E2=IFERROR(INDEX('Source_Ws (2)'!AS2:AS20,MATCH('Target_Ws (2)'!D2,'Source_Ws (2)'!D2:D20,0),1),"0")
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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