VLOOKUP of values COLUMN 1 and COLUMN 2

vas6566

New Member
Joined
Sep 24, 2019
Messages
11
Hi you have shared very useful excel formula which was very helpful to me. I have some issues in applying VLOOKUP. If possible pls help to resolve the following;
I have 2 separate excel sheets both have same data in multiple columns but not in the same sequence. I paste the sheet 1 below


A
B
C
D
E
DATE
NAME
CODE
BILL NO.
VALUE
01-04-2019
MINI
AAF
101
5000
02-04-2019
SONY
AAA
402
2000
03-04-2019
MINI
AAF
103
5500
04-04-2019
JOY
AFI
703
7000
05-04-2019
JOY
AFI
704
6000
06-04-2019
VIVA
AFO
115
5000

<tbody>
</tbody>

SHEET2


A
B
C
D
E
DATE
NAME
CODE
BILL NO.
VALUE
05-04-2019
JOY
AFI
704
6000
06-04-2019
VIVA
AFO
115
5000
03-04-2019
MINI
AAF
103
5500
04-04-2019
JOY
AFI
703
7000
01-04-2019
MINI
AAF
101
5000
02-04-2019
SONY
AAA
402
2000

<tbody>
</tbody>

Sheet1 was prepared by one person and Sheet2 was generated by another person. it has got thousands of rows.
I have to match CODE and BILL NO. in the rows of Sheet1 with the CODE and BILL NO. in sheet2. In simple I have to get the VALUE of sheet2 against the same CODE AND same BILL NO. in sheet1. This will ensure that value against each BILL NO. is same in both the sheets ( sheet1 and sheet2) kindly share suitable excel formula.
thanks in advance
 
Hi Special-K99,
Thanks for your valuable effort and reply. I copied the formula in Sheet1!F2, it shows #N/A. I think you have tried maximum. Can you pls try the same in copying the data in sheet1 and sheet2 and apply the formula in Sheet 1, F2. If you get better result, kindly share with me. Thanks a lot for extending helping hand to someone unknown.

Oops! I left out a set of brackets.
This works (tested)

in Sheet1!F2
=LOOKUP(2,1/((Sheet2!C$2:C$100000=C2)*(Sheet2!D$2:D$100000)),(Sheet2!E$2:E$100000))
and copy down the column
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You're more than welcome & thanks for the feedback
Hi, HAPPY NEW YEAR. I have come back to you after 2019 with a mild hiccup in creating one excel formula perfectly. Hope you can resolve it. I need a suitable formulae for the following subject.

IF cell B3 contains the value "A", at the same time only if cell H3 has a value greater than zero, it should return D3+E3-G3. that is if H3 has no value or its value is less than zero, no result is required. Here 2 conditions need to be fulfilled, the value in B3 should be exactly "A" and at the same time value in H3 should numeric value more than 0, if these two conditions are satisfied i need the value of D3+E3-G3, if these two conditions are not satisfied no value is required in the formula cell ( not necesary to add D3 and E3 and less G3 ). The following table may be self explanatory. pls respond , thank in advance

PARTICULARSUNITNet Block as per B/S- 01.04.2022Gross Block_AYM_ 1.4.2022AdditionsDepDeletionsNet Block as per B/S- 31-03-2023Gross Block_AYM_ 31.03.2023Result if formula is correct
Building-HosurA3,84,745.00
500000​
1000​
0​
3,85,745.00formula required
501000​
Factory-Ayanambakkam New BuildingA9,44,195.04
1500000​
55000​
0​
9,00,195.00formula required
1555000​
Factory Buildg - (Mogappair A10 & B8)M94,60,755.00
0​
0​
94,60,755.00formula required
0​
Factory Building-Ayanambakkam - OldA1,90,120.00
1140000​
190120​
-formula required
0​
Factory- Building- Sipcot, VallamA25,50,000.00
3000000​
200000​
50000​
27,00,000.00formula required
3150000​
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,873
Members
449,267
Latest member
ajaykosuri

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