Match data from 3 columns to return data from the correct 4th column

klwilliams13wf

New Member
Joined
Mar 31, 2021
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hi there! I'm trying to have a cell auto-populate the data in a cell based on the data entered in 3 other cells. I've pasted a copy of the spreadsheet I'm working with below. I want to manually enter a number in C4, and in E4, and then pick a number from a drop down box in G4, and have it auto-populate the corresponding lbs/sq ft in N4 based on a chart on another worksheet. I've pasted a copy of the chart below as well. Is this possible??

1617212084818.png
1617212310848.png
 
You MUST reference the other tab.
If you use XL2BB the table won't have to be typed by me (or anyone).
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Use this assuming your data is on the sheet named Lists and starting in A1.

Code:
=SUM((Lists!$A$2:$A$8=E2)*(Lists!$B$2:$B$8=C2)*(Lists!$C$2:$C$8=G2)*Lists!$D$2:$D$8)

Change the reference to the 8th row to however many rows are in the table.
 
Upvote 0
Good morning! I've tried to download XL2BB. I select the file but the add-on isn't being added to my excel program.

I've copied your formula and verified the information, but it is still returning a #VALUE error. So frustrating! I really appreciate your efforts by the way!!!!
 
Upvote 0
Try it like
Excel Formula:
=SUMPRODUCT((Lists!$A$2:$A$8=E2)*(Lists!$B$2:$B$8=C2)*(Lists!$C$2:$C$8=G2)*Lists!$D$2:$D$8)
 
Upvote 0
Solution
I figured out Xl2bb!

NEW TAKEOFF LAYOUTkw.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1DescriptionGradeQTYWIDTHUNITDEPTHUNITTHICKNESSUNITLENGTHUNITWELD SIZEEXTENSIONUNITLBS PER UNITUNITTOTAL LBS$/UNITCustom $/UnitPLATE PROCESSING TOTALMATERIAL TOTALCOST/UNITLABOR TOTALOVERALL TOTALMAN HOURS
2HSS Square Column54in4in0.250in10ft50ft441/86.34eq chart
HSS SQUARE COLUMN
Cell Formulas
RangeFormula
F2F2=IF(D2="","",IF(A2="Weld Simpson Bucket","",IF(A2="Weld Base Plate","",IF(A2="Weld Top Plate","",IF(ISNUMBER(SEARCH("Column",A2)),"in",IF(ISNUMBER(SEARCH("holes",A2)),"dia",IF(ISNUMBER(SEARCH("studs",A2)),"dia",IF(ISNUMBER(SEARCH("bucket",A2)),"ea",IF(ISNUMBER(SEARCH("bolt",A2)),"dia",IF(ISNUMBER(SEARCH("plate",A2)),"in",IF(ISNUMBER(SEARCH("",A2)),"")))))))))))
H2,J2H2=F2
N2N2=K2*D2
Cells with Data Validation
CellAllowCriteria
X2List=Pricing
I2List=Wall_Thickness


NEW TAKEOFF LAYOUTkw.xlsx
LMNO
31/21/20.0480.301
41/21/20.0600.362
55/85/80.0480.367
65/85/80.0600.442
73/43/40.0480.457
83/43/40.0600.552
93/43/40.0750.690
103/43/40.0830.753
113/43/40.0900.800
123/43/40.1201.029
13110.0480.629
14110.0600.763
15110.0750.945
16110.0831.036
17110.0901.115
18110.1201.437
191 1/41 1/40.0480.807
201 1/41 1/40.0600.981
211 1/41 1/40.0751.200
221 1/41 1/40.0831.318
231 1/41 1/40.0901.443
241 1/41 1/40.1201.846
251 1/41 1/40.1882.400
261 1/21 1/20.0480.956
271 1/21 1/20.0601.163
281 1/21 1/20.0751.455
291 1/21 1/20.0831.602
301 1/21 1/20.0901.716
311 1/21 1/20.1202.254
321 1/21 1/20.1883.230
331 1/21 1/20.2503.700
341 3/41 3/40.0601.370
351 3/41 3/40.0831.884
361 3/41 3/40.0902.011
371 3/41 3/40.1202.663
38220.0601.564
39220.0751.966
40220.0832.143
41220.0902.316
42220.1203.050
43220.1884.320
44220.2505.410
45220.3136.320
462 1/22 1/20.0902.979
472 1/22 1/20.1203.890
482 1/22 1/20.1885.590
492 1/22 1/20.2507.110
502 1/22 1/20.3138.450
51330.1204.700
52330.1886.870
53330.2508.810
54330.31310.580
55330.37511.750
563 1/23 1/20.1205.520
573 1/23 1/20.1888.150
583 1/23 1/20.25010.510
593 1/23 1/20.31312.700
603 1/23 1/20.37514.710
61440.1206.340
62440.1889.420
63440.25012.210
64440.31314.830
65440.37517.270
66440.50021.630
674 1/24 1/20.1207.310
684 1/24 1/20.18810.700
694 1/24 1/20.25013.910
704 1/24 1/20.31316.980
714 1/24 1/20.37519.820
72550.1207.840
73550.18811.970
74550.25015.620
75550.31319.080
76550.37522.370
77550.50028.430
785 1/25 1/20.1259.010
795 1/25 1/20.16511.740
805 1/25 1/20.18813.300
815 1/25 1/20.25017.320
825 1/25 1/20.31321.220
835 1/25 1/20.37524.930
845 1/25 1/20.50031.840
85660.18814.530
86660.25019.020
87660.31323.340
88660.37527.480
89660.50035.240
90660.62542.300
91770.18817.080
92770.25022.420
93770.31327.590
94770.37532.580
95770.50042.050
96770.62550.760
97880.18819.630
98880.25025.820
99880.31331.840
100880.37537.690
101880.50048.850
102880.62559.320
103990.25029.230
104990.31336.100
105990.37542.790
106990.50055.660
107990.62567.820
10810100.18824.750
10910100.25032.630
11010100.31340.350
11110100.37547.900
11210100.50062.460
11310100.62576.330
11412120.25039.430
11512120.31348.860
11612120.37558.100
11712120.50076.070
11812120.62593.340
11914140.31357.360
12014140.37568.310
12114140.50089.680
12214140.625110.230
12316160.31365.870
12416160.37578.520
12516160.500103.300
12616160.625127.340
12718180.500116.910
12818180.625144.390
12918180.750171.160
13018180.870197.240
13120200.500130.520
13220200.625161.400
13320200.750191.580
13420200.875221.060
13522220.750212.000
13622220.875244.880
Lists


Maybe I didn't... is that how it's supposed to look?
 
Upvote 0
maybe I didn't enter the formula right, but I'm getting a value error... the table that has the data I want to pull from is on another tab "Lists". Would that be causing the problem. I'm just lost! I copied the formula =SUM(($Q$2:$Q$8=E2)*($R$2:$R$8=C2)*($S$2:$S$8=G2)*$T$2:$T$8) and pasted it into the cell that I want to have the wt/ft populate. Is that right?
Book1
BCDEFGHIJKLMNOPQRST
1QTYWIDTHUNITDEPTHUNITTHICKUNITLENGTHUNITWELDEXTUNITLBS/UNITDWTHICKWT/FT
2101 1/2in1 1/2in0.083IN10IN1001.602110.121.437
3440.37517.27110.0750.945
43/43/40.060.5525/85/80.06250.442
53/43/40.0480.457
63/43/40.060.552
71 1/21 1/20.0831.602
8440.37517.27
Sheet1
Cell Formulas
RangeFormula
N2:N4N2=SUM(($Q$2:$Q$8=E2)*($R$2:$R$8=C2)*($S$2:$S$8=G2)*$T$2:$T$8)
Q4:R4R4=5/8
Q5:Q6Q5=3/4
I got the solution... thank you sooooo much for all your time, you are awesome!
 
Upvote 0
With the data like that you could also use
Excel Formula:
=SUMIFS(Lists!O:O,Lists!M:M,E2,Lists!L:L,G2,Lists!N:N,I2)
 
Upvote 0
I figured out Xl2bb!

NEW TAKEOFF LAYOUTkw.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1DescriptionGradeQTYWIDTHUNITDEPTHUNITTHICKNESSUNITLENGTHUNITWELD SIZEEXTENSIONUNITLBS PER UNITUNITTOTAL LBS$/UNITCustom $/UnitPLATE PROCESSING TOTALMATERIAL TOTALCOST/UNITLABOR TOTALOVERALL TOTALMAN HOURS
2HSS Square Column54in4in0.250in10ft50ft441/86.34eq chart
HSS SQUARE COLUMN
Cell Formulas
RangeFormula
F2F2=IF(D2="","",IF(A2="Weld Simpson Bucket","",IF(A2="Weld Base Plate","",IF(A2="Weld Top Plate","",IF(ISNUMBER(SEARCH("Column",A2)),"in",IF(ISNUMBER(SEARCH("holes",A2)),"dia",IF(ISNUMBER(SEARCH("studs",A2)),"dia",IF(ISNUMBER(SEARCH("bucket",A2)),"ea",IF(ISNUMBER(SEARCH("bolt",A2)),"dia",IF(ISNUMBER(SEARCH("plate",A2)),"in",IF(ISNUMBER(SEARCH("",A2)),"")))))))))))
H2,J2H2=F2
N2N2=K2*D2
Cells with Data Validation
CellAllowCriteria
X2List=Pricing
I2List=Wall_Thickness


NEW TAKEOFF LAYOUTkw.xlsx
LMNO
31/21/20.0480.301
41/21/20.0600.362
55/85/80.0480.367
65/85/80.0600.442
73/43/40.0480.457
83/43/40.0600.552
93/43/40.0750.690
103/43/40.0830.753
113/43/40.0900.800
123/43/40.1201.029
13110.0480.629
14110.0600.763
15110.0750.945
16110.0831.036
17110.0901.115
18110.1201.437
191 1/41 1/40.0480.807
201 1/41 1/40.0600.981
211 1/41 1/40.0751.200
221 1/41 1/40.0831.318
231 1/41 1/40.0901.443
241 1/41 1/40.1201.846
251 1/41 1/40.1882.400
261 1/21 1/20.0480.956
271 1/21 1/20.0601.163
281 1/21 1/20.0751.455
291 1/21 1/20.0831.602
301 1/21 1/20.0901.716
311 1/21 1/20.1202.254
321 1/21 1/20.1883.230
331 1/21 1/20.2503.700
341 3/41 3/40.0601.370
351 3/41 3/40.0831.884
361 3/41 3/40.0902.011
371 3/41 3/40.1202.663
38220.0601.564
39220.0751.966
40220.0832.143
41220.0902.316
42220.1203.050
43220.1884.320
44220.2505.410
45220.3136.320
462 1/22 1/20.0902.979
472 1/22 1/20.1203.890
482 1/22 1/20.1885.590
492 1/22 1/20.2507.110
502 1/22 1/20.3138.450
51330.1204.700
52330.1886.870
53330.2508.810
54330.31310.580
55330.37511.750
563 1/23 1/20.1205.520
573 1/23 1/20.1888.150
583 1/23 1/20.25010.510
593 1/23 1/20.31312.700
603 1/23 1/20.37514.710
61440.1206.340
62440.1889.420
63440.25012.210
64440.31314.830
65440.37517.270
66440.50021.630
674 1/24 1/20.1207.310
684 1/24 1/20.18810.700
694 1/24 1/20.25013.910
704 1/24 1/20.31316.980
714 1/24 1/20.37519.820
72550.1207.840
73550.18811.970
74550.25015.620
75550.31319.080
76550.37522.370
77550.50028.430
785 1/25 1/20.1259.010
795 1/25 1/20.16511.740
805 1/25 1/20.18813.300
815 1/25 1/20.25017.320
825 1/25 1/20.31321.220
835 1/25 1/20.37524.930
845 1/25 1/20.50031.840
85660.18814.530
86660.25019.020
87660.31323.340
88660.37527.480
89660.50035.240
90660.62542.300
91770.18817.080
92770.25022.420
93770.31327.590
94770.37532.580
95770.50042.050
96770.62550.760
97880.18819.630
98880.25025.820
99880.31331.840
100880.37537.690
101880.50048.850
102880.62559.320
103990.25029.230
104990.31336.100
105990.37542.790
106990.50055.660
107990.62567.820
10810100.18824.750
10910100.25032.630
11010100.31340.350
11110100.37547.900
11210100.50062.460
11310100.62576.330
11412120.25039.430
11512120.31348.860
11612120.37558.100
11712120.50076.070
11812120.62593.340
11914140.31357.360
12014140.37568.310
12114140.50089.680
12214140.625110.230
12316160.31365.870
12416160.37578.520
12516160.500103.300
12616160.625127.340
12718180.500116.910
12818180.625144.390
12918180.750171.160
13018180.870197.240
13120200.500130.520
13220200.625161.400
13320200.750191.580
13420200.875221.060
13522220.750212.000
13622220.875244.880
Lists


Maybe I didn't... is that how it's supposed to look?
Sorry abou the mis-typing when it should have been SUMPRODUCT as Fluff pointed out.
 
Upvote 0
With the data like that you could also use
Excel Formula:
=SUMIFS(Lists!O:O,Lists!M:M,E2,Lists!L:L,G2,Lists!N:N,I2)
And if I wanted to have the next cell point to another column in the same table, would I just add it like below?

=SUMPRODUCT((Lists!$M$3:$M$136=E2)*(Lists!$L$3:$L$136=G2)*(Lists!$N$3:$N$136=I2)*(Lists!$N$3:$N$136=I2)*(Lists!$O$3:$O$136=P2)*Lists!$S$3:$S$136)
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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