show data from sheet 2 while selecting cell value from sheet 1

azii

Board Regular
Joined
May 26, 2011
Messages
80
hi there
i have two data sheets,
sheet 1 for summary
sheet 2 for data
i want that if i select cell b4 value and cell c4 value, it should get data from sheet 2 with matching my two selected cell values.

Sheet 1 (the Summary Sheet ( here under crop, Farmetr Type an Tubewell i need to select these three values and in sheet 2 i need to match and get a certain cell value
CropFarmer TypeTubewell
PotatoAverageElectricity
TitleAmount
Total Expense165,533.32
Total Income278,731.43
Net Profit113,198.11
VCR73.71


Sheet 2
CropFarmer TypeAmount Rs
MaizeProgressive156,624
MaizeProgressive278,731
MaizeProgressive122,107
MaizeProgressive0.78
PotatoProgressive165,533
PotatoProgressive278,731
PotatoProgressive113,198
PotatoProgressive0.68
RiceProgressive182,241
RiceProgressive278,731
RiceProgressive96,491
RiceProgressive0.53
RiceProgressive182,241
RiceProgressive278,731
RiceProgressive96,491
RiceProgressive0.53
MaizeAverage156,624
MaizeAverage278,731
MaizeAverage122,107
MaizeAverage0.78
PotatoAverage165,533
PotatoAverage278,731
PotatoAverage113,198
PotatoAverage0.68
RiceAverage182,241
RiceAverage278,731
RiceAverage96,491
RiceAverage0.53
RiceAverage182,241
RiceAverage278,731
RiceAverage96,491
RiceAverage0.53
MaizePE/Tractor156,624
MaizePE/Tractor278,731
MaizePE/Tractor122,107
MaizePE/Tractor0.78
PotatoPE/Tractor165,533
PotatoPE/Tractor278,731
PotatoPE/Tractor113,198
PotatoPE/Tractor0.68
RicePE/Tractor182,241
RicePE/Tractor278,731
RicePE/Tractor96,491
RicePE/Tractor0.53
RicePE/Tractor182,241
RicePE/Tractor278,731
RicePE/Tractor96,491
RicePE/Tractor0.53
MaizeElectricity156,624
MaizeElectricity278,731
MaizeElectricity122,107
MaizeElectricity0.78
PotatoElectricity165,533
PotatoElectricity278,731
PotatoElectricity113,198
PotatoElectricity0.68
RiceElectricity182,241
RiceElectricity278,731
RiceElectricity96,491
RiceElectricity0.53
RiceElectricity182,241
RiceElectricity278,731
RiceElectricity96,491
RiceElectricity0.53

Please help resolve the issue
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
i want that if i select cell b4 value and cell c4 value, it should get data from sheet 2 with matching my two selected cell values.
apparently looks no issue with your idea

We can propagate formula linking cells as dynamic references

Please share XL2BB of both sheets - It saves hazard to recreate the data and give you resolution promptly.

There to help you. Need not worry.
 
Upvote 0
mrexcel.xlsx
BCDEF
3CropFarmer TypeTubewell
4PotatoAverageElectricity
5TitleAmount
6Total Expense165,533.32
7Total Income278,731.43
8Net Profit113,198.11
9VCR73.71
Sheet1
Cell Formulas
RangeFormula
F6:F7F6=IF($B$4="Maize",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]Sheet2'!I3,IF($B$4="Potato",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I74,IF($B$4="Rice",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I72,IF($B$4="Citrus (Kinnow)",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I72:I72))))
F8F8=IF($B$4="Maize",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-DAP'!I76,IF($B$4="Potato",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I76,IF($B$4="Rice",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I74,IF($B$4="Citrus (Kinnow)",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I74:I74))))
F9F9=IF($B$4="Maize",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-DAP'!I77,IF($B$4="Potato",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I77,IF($B$4="Rice",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I75,IF($B$4="Citrus (Kinnow)",'C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I76))))
Cells with Data Validation
CellAllowCriteria
B4List=$B$200:$B$203
C4List=$C$200:$C$201
D4List=$E$200:$E$201
F4List=$F$200:$F$201
 
Upvote 0
mrexcel.xlsx
BCD
2CropFarmer TypeAmount Rs
3MaizeProgressive156,624
4MaizeProgressive278,731
5MaizeProgressive122,107
6MaizeProgressive0.78
7PotatoProgressive165,533
8PotatoProgressive278,731
9PotatoProgressive113,198
10PotatoProgressive0.68
11RiceProgressive182,241
12RiceProgressive278,731
13RiceProgressive96,491
14RiceProgressive0.53
15RiceProgressive182,241
16RiceProgressive278,731
17RiceProgressive96,491
18RiceProgressive0.53
19MaizeAverage156,624
20MaizeAverage278,731
21MaizeAverage122,107
22MaizeAverage0.78
23PotatoAverage165,533
24PotatoAverage278,731
25PotatoAverage113,198
26PotatoAverage0.68
27RiceAverage182,241
28RiceAverage278,731
29RiceAverage96,491
30RiceAverage0.53
31RiceAverage182,241
32RiceAverage278,731
33RiceAverage96,491
34RiceAverage0.53
35MaizePE/Tractor156,624
36MaizePE/Tractor278,731
37MaizePE/Tractor122,107
38MaizePE/Tractor0.78
39PotatoPE/Tractor165,533
40PotatoPE/Tractor278,731
41PotatoPE/Tractor113,198
42PotatoPE/Tractor0.68
43RicePE/Tractor182,241
44RicePE/Tractor278,731
45RicePE/Tractor96,491
46RicePE/Tractor0.53
47RicePE/Tractor182,241
48RicePE/Tractor278,731
49RicePE/Tractor96,491
50RicePE/Tractor0.53
51MaizeElectricity156,624
52MaizeElectricity278,731
53MaizeElectricity122,107
54MaizeElectricity0.78
55PotatoElectricity165,533
56PotatoElectricity278,731
57PotatoElectricity113,198
58PotatoElectricity0.68
59RiceElectricity182,241
60RiceElectricity278,731
61RiceElectricity96,491
62RiceElectricity0.53
63RiceElectricity182,241
64RiceElectricity278,731
65RiceElectricity96,491
66RiceElectricity0.53
Sheet2
 
Upvote 0
The sample data you have shared contains a lot of repetitive figures which don't help with propagating right results

Still I have tried to work with an initial solution. Check this and revert -

Try using in actual data and then ask for discrepancies.

Book1
BCDEFGHIJK
1CropFarmer Type Amount Rs
2CropFarmer TypeTubewellMaizeAverage0.78
3PotatoAverageElectricityMaizeAverage1,22,107.14
4TitleAmountSolutionMaizeAverage1,56,624.29
5Total ExpenseFALSE0.68MaizeAverage2,78,731.43
6Total IncomeFALSE0.68MaizeElectricity0.78
7Net ProfitFALSE0.68MaizeElectricity1,22,107.14
8VCRFALSE0.68MaizeElectricity1,56,624.29
9MaizeElectricity2,78,731.43
10MaizePE/Tractor0.78
11MaizePE/Tractor1,22,107.14
12MaizePE/Tractor1,56,624.29
13MaizePE/Tractor2,78,731.43
14MaizeProgressive0.78
15MaizeProgressive1,22,107.14
16MaizeProgressive1,56,624.29
17MaizeProgressive2,78,731.43
18PotatoAverage0.68
19PotatoAverage1,13,198.11
20PotatoAverage1,65,533.32
21PotatoAverage2,78,731.43
22PotatoElectricity0.68
23PotatoElectricity1,13,198.11
24PotatoElectricity1,65,533.32
25PotatoElectricity2,78,731.43
26PotatoPE/Tractor0.68
27PotatoPE/Tractor1,13,198.11
28PotatoPE/Tractor1,65,533.32
29PotatoPE/Tractor2,78,731.43
30PotatoProgressive0.68
31PotatoProgressive1,13,198.11
32PotatoProgressive1,65,533.32
33PotatoProgressive2,78,731.43
34RiceAverage0.53
35RiceAverage0.53
36RiceAverage96,490.65
37RiceAverage96,490.65
38RiceAverage1,82,240.78
39RiceAverage1,82,240.78
40RiceAverage2,78,731.43
41RiceAverage2,78,731.43
42RiceElectricity0.53
43RiceElectricity0.53
44RiceElectricity96,490.65
45RiceElectricity96,490.65
46RiceElectricity1,82,240.78
47RiceElectricity1,82,240.78
48RiceElectricity2,78,731.43
49RiceElectricity2,78,731.43
50RicePE/Tractor0.53
51RicePE/Tractor0.53
52RicePE/Tractor96,490.65
53RicePE/Tractor96,490.65
54RicePE/Tractor1,82,240.78
55RicePE/Tractor1,82,240.78
56RicePE/Tractor2,78,731.43
57RicePE/Tractor2,78,731.43
58RiceProgressive0.53
59RiceProgressive0.53
60RiceProgressive96,490.65
61RiceProgressive96,490.65
62RiceProgressive1,82,240.78
63RiceProgressive1,82,240.78
64RiceProgressive2,78,731.43
65RiceProgressive2,78,731.43
Sheet1
Cell Formulas
RangeFormula
F5:F6F5=IF($C$5="Maize",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]Sheet2'!I3,IF($C$5="Potato",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I74,IF($C$5="Rice",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I72,IF($C$5="Citrus (Kinnow)",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I72:I72))))
G5,G7G5=XLOOKUP(1,($I$2:$I$65=$B$3)*($J$2:$J$65=$C$3),$K$2:$K$65)
G6G6=XLOOKUP(1,($I$2:$I$65=$B$3)*($J$2:$J$65=$D$3),$K$2:$K$65)
F7F7=IF($C$5="Maize",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-DAP'!I76,IF($C$5="Potato",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I76,IF($C$5="Rice",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I74,IF($C$5="Citrus (Kinnow)",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I74:I74))))
F8F8=IF($C$5="Maize",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-DAP'!I77,IF($C$5="Potato",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-E-NP'!I77,IF($C$5="Rice",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-NP'!I75,IF($C$5="Citrus (Kinnow)",'/Users/SGM/Library/Containers/com.microsoft.Excel/Data/Documents/C:\Users\asif.zamir\Desktop\[VCR Test.xls]M-P-O-O-PE-DAP'!I76))))
G8G8=XLOOKUP(1,($I$2:$I$65=$B$3)*($J$2:$J$65="PE/Tractor"),$K$2:$K$65)
 
Upvote 0
mrexcel.xlsx
BCD
2CropFarmer TypeAmount Rs
3MaizeProgressive156,624
4MaizeProgressive278,731
5MaizeProgressive122,107
6MaizeProgressive0.78
7PotatoProgressive165,533
8PotatoProgressive278,731
9PotatoProgressive113,198
10PotatoProgressive0.68
11RiceProgressive182,241
12RiceProgressive278,731
13RiceProgressive96,491
14RiceProgressive0.53
15MaizeAverage156,624
16MaizeAverage278,731
17MaizeAverage122,107
18MaizeAverage0.78
19PotatoAverage165,533
20PotatoAverage278,731
21PotatoAverage113,198
22PotatoAverage0.68
23RiceAverage182,241
24RiceAverage278,731
25RiceAverage96,491
26RiceAverage0.53
27MaizePE/Tractor156,624
28MaizePE/Tractor278,731
29MaizePE/Tractor122,107
30MaizePE/Tractor0.78
31PotatoPE/Tractor165,533
32PotatoPE/Tractor278,731
33PotatoPE/Tractor113,198
34PotatoPE/Tractor0.68
35RicePE/Tractor182,241
36RicePE/Tractor278,731
37RicePE/Tractor96,491
38RicePE/Tractor0.53
39MaizeElectricity156,624
40MaizeElectricity278,731
41MaizeElectricity122,107
42MaizeElectricity0.78
43PotatoElectricity165,533
44PotatoElectricity278,731
45PotatoElectricity113,198
46PotatoElectricity0.68
47RiceElectricity182,241
48RiceElectricity278,731
49RiceElectricity96,491
50RiceElectricity0.53
Sheet2
 
Upvote 0
mrexcel.xlsx
BCDE
2CropFarmer TypeAmount Rs
3MaizeProgressive156,624total amount
4MaizeProgressive278,731Total Income
5MaizeProgressive122,107Net Profit
6MaizeProgressive0.78VCR
7PotatoProgressive165,533
8PotatoProgressive278,731
9PotatoProgressive113,198
10PotatoProgressive0.68
11RiceProgressive182,241
12RiceProgressive278,731
13RiceProgressive96,491
14RiceProgressive0.53
15MaizeAverage156,624
16MaizeAverage278,731
17MaizeAverage122,107
18MaizeAverage0.78
19PotatoAverage165,533
20PotatoAverage278,731
21PotatoAverage113,198
22PotatoAverage0.68
23RiceAverage182,241
24RiceAverage278,731
25RiceAverage96,491
26RiceAverage0.53
27MaizePE/Tractor156,624
28MaizePE/Tractor278,731
29MaizePE/Tractor122,107
30MaizePE/Tractor0.78
31PotatoPE/Tractor165,533
32PotatoPE/Tractor278,731
33PotatoPE/Tractor113,198
34PotatoPE/Tractor0.68
35RicePE/Tractor182,241
36RicePE/Tractor278,731
37RicePE/Tractor96,491
38RicePE/Tractor0.53
39MaizeElectricity156,624
40MaizeElectricity278,731
41MaizeElectricity122,107
42MaizeElectricity0.78
43PotatoElectricity165,533
44PotatoElectricity278,731
45PotatoElectricity113,198
46PotatoElectricity0.68
47RiceElectricity182,241
48RiceElectricity278,731
49RiceElectricity96,491
50RiceElectricity0.53
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,455
Members
449,161
Latest member
NHOJ

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