I need a formula that can do what VLOOKUP does, but can sum the results. I'm looking up products on an inbound PO's report, so on the report I need all the inbound PO quantities to be summed up into one field. Does anyone know how to tackle that?
If I understand correctly what you want, then this can help you:
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: center;;">Column01</td><td style="text-align: center;;">Column02</td><td style="text-align: center;;"></td><td style="text-align: center;;">Column01</td><td style="text-align: center;;">Result</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;">6309X</td><td style="text-align: center;;">112</td><td style="text-align: center;;"></td><td style="text-align: center;;">8151X</td><td style="text-align: center;;">1606</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: center;;">8151X</td><td style="text-align: center;;">493</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: center;;">4340X</td><td style="text-align: center;;">290</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: center;;">6476X</td><td style="text-align: center;;">866</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: center;;">2893X</td><td style="text-align: center;;">122</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: center;;">8151X</td><td style="text-align: center;;">788</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: center;;">8226X</td><td style="text-align: center;;">273</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;;">6952X</td><td style="text-align: center;;">815</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;;">8151X</td><td style="text-align: center;;">325</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;;">4023X</td><td style="text-align: center;;">159</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">E2</th><td style="text-align:left">=SUMIF(<font color="Blue">A2:A11,D2,B2:B11</font>)</td></tr></tbody></table></td></tr></table><br />
If not, give us more information (like examples).
Markmzz
I can't really give a screen shot, but here's my problem. I get lists of products coming in from overseas on containers that are sorted by PO's. So there might be many PO's for the same product. Sheet one is a summary list of products, sheet two is the inbound report that could be 500-600 lines long. I need a formula that not only does a VLOOKUP from sheet 1 to sheet 2, but finds all the info and sums up the numbers, so that the sheet 1 summary page only shows each product once. Typically, VLOOKUP only finds the first instance of whatever it's looking for so it's only populating the summary field with the quantity of the first PO. Does that make more sense?
OK, I'll try:
Here's a very simplified version. Sheet 1 is a summary, it's the Inbound cell I'm trying to populate.
PAGE ONE SUMMARY
A B C
FG NUMBER Description Inbound
000001 Product Description #N/A
The sheet that is the lookup for the Inbound might have several lines within the sheet where the 0000001 product has many, many PO's that are inbound. I'm trying to both do a VLOOKUP to find the products, but also sum up the total. What I'm getting populated on sheet 1 is 171, just the first instance of the 0000001 product, instead of 1686 which is all of the 000001 PO's summed. This is very simplified, sheet one might have 100 products, while the inbound sheet might be over 500 lines with many PO's for any specific product.
A B C
0000001 PRODUCT DESCRIPTION 171
0000001 PRODUCT DESCRIPTION 129
0000001 PRODUCT DESCRIPTION 200
0000001 PRODUCT DESCRIPTION 450
0000001 PRODUCT DESCRIPTION 355
0000001 PRODUCT DESCRIPTION 200
0000001 PRODUCT DESCRIPTION 181
Thanks in advance for any help!
Post an example Vlookup formulat that successfully returns the 1st instance of what you want...
Try
=SUMIF(inbound!$C$1:$C$5000,$A4,inbound!$E$1:$E$5000)