kiwikiki718
Board Regular
- Joined
- Apr 7, 2017
- Messages
- 80
- Office Version
- 365
- Platform
- Windows
I have a range of cells that I would like to compare and get the value if they match.
Range J3:J13 in worksheet 1
Example
If range J3:J13 in worksheet1 = P1 in worksheet2 I need to display K3 Value from worksheet 1 in cell P2 in worksheet2
If range J3:J13 in worksheet1 = Q1 in worksheet2 I need to display L3 Value from worksheet 1 in cell Q2 in worksheet2
If range J3:J13 in worksheet1 = R1 in worksheet2 I need to display K3 Value from worksheet 1 in cell R2 in worksheet2
If range J3:J13 in worksheet1 = S1 in worksheet2 I need to display L3 Value from worksheet 1 in cell R2 in worksheet2
Note
P and Q are a set
R and S are a set
T and U are a set and so on
basically I want to compare range J3:J13 in worksheet 1 to all of the values in the first row of worksheet 2 starting at P1 then Q1 etc. and display the value of either K or L in worksheet 2 depending on what is being compared on worked sheet 2.
I have a formula that I entered in each cell manually which was very time consuming and very flexible. I wanted to know if this could be automated using some sort of loop function.
Range J3:J13 in worksheet 1
Example
If range J3:J13 in worksheet1 = P1 in worksheet2 I need to display K3 Value from worksheet 1 in cell P2 in worksheet2
If range J3:J13 in worksheet1 = Q1 in worksheet2 I need to display L3 Value from worksheet 1 in cell Q2 in worksheet2
If range J3:J13 in worksheet1 = R1 in worksheet2 I need to display K3 Value from worksheet 1 in cell R2 in worksheet2
If range J3:J13 in worksheet1 = S1 in worksheet2 I need to display L3 Value from worksheet 1 in cell R2 in worksheet2
Note
P and Q are a set
R and S are a set
T and U are a set and so on
basically I want to compare range J3:J13 in worksheet 1 to all of the values in the first row of worksheet 2 starting at P1 then Q1 etc. and display the value of either K or L in worksheet 2 depending on what is being compared on worked sheet 2.
I have a formula that I entered in each cell manually which was very time consuming and very flexible. I wanted to know if this could be automated using some sort of loop function.