Extract Multiple Records with 3 Criteria

ario

New Member
Joined
Feb 21, 2013
Messages
19
Hi,

I'd like to create a report that displays the values according to 3 criteria. I have 3 drop down boxes that one can select a customer's name, brand, and date (format of Jan 2013 Week Ending 1/26/2013). My drop downs are in a separate sheet under a5, b5, and c5 respectively. I will then need to find the various sales facts ($sales a2:a34279, volume sales b2:b34279, etc.) from my data sheet. I'm not certain which formulas to use, should I use aggregate or use the old formulas of only index, match, and, row, etc. I'm also not sure if I must split my date drop down values to a month and year only or if the present date value will work, i.e. Jan 2013 Week Ending 1/26/2013. Any advice? Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

I'd like to create a report that displays the values according to 3 criteria. I have 3 drop down boxes that one can select a customer's name, brand, and date (format of Jan 2013 Week Ending 1/26/2013). My drop downs are in a separate sheet under a5, b5, and c5 respectively. I will then need to find the various sales facts ($sales a2:a34279, volume sales b2:b34279, etc.) from my data sheet. I'm not certain which formulas to use, should I use aggregate or use the old formulas of only index, match, and, row, etc. I'm also not sure if I must split my date drop down values to a month and year only or if the present date value will work, i.e. Jan 2013 Week Ending 1/26/2013. Any advice? Thanks!

Hello ad welcome.
Please post your data.See below how to do it.
 
Upvote 0
In one view I would like to display records/columns 6-9 for the same market, brand, and date. In another view I would like to only display the markets and products for the selected brand and date. I am only interested in displaying the top 20 records for each view. Thanks!

I have excel 2010.

see an example of the data

MarketsProductsBRAND[UPC]Period[$][$ % Chg][Base $][Base $ % Chg]
Total xAOCYVS IF YOU PLS MTLS VG MXCN GRND 12 OZ 006082280002Meat Alternative Category74854Jan 13 W/E 01/26/13748393794-100-100
Total FoodYVS IF YOU PLS MTLS VG MXCN GRND 12 OZ 068692432726Boc74855Dec 12 W/E 12/29/12748393795-100-100
Walmart Total US TAYVS IF YOU PLS ORGN WNR WRP 13.4 OZ 006082200070Star74856Nov 12 W/E 11/24/12748393796-100-100
Kroger Corp Total TAYVS IF YOU PLS ORGN WNR WRP 13.4 OZ 068692432699Lighter74857Oct 12 W/E 10/27/12748393797-100-100
Walmart SC Total US TAYVS IF YOU PLS 12 OZ 006082200041Gard74858Sep 12 W/E 09/29/12748393798-100-100
Target Total TAYVS IF YOU PLS 12 OZ 006082200301Veggieburger74859Aug 12 W/E 08/25/12748393799-100-100
Safeway Corp TAYVS IF YOU PLS BBQ RC BN BRGR 5.3 OZ 068692460693Dr. Prag74860Jul 12 W/E 07/28/12748393800-100-100
Ahold USA Corp Total TAYVS IF YOU PLS CJN MTLS CHCK 5.5 OZ 006082200119Quorny74861Jun 12 W/E 06/30/12748393801-100-100
Publix Total TAYVS IF YOU PLS MTLS BLGN SLCD 5.5 OZ 006082200006Tofurky74862May 12 W/E 05/26/12748393802-10028.504-97.964
SUPERVALU Total Corp incl ALB TAYVS IF YOU PLS MTLS BLGN SLCD 5.5 OZ 068692432693Yves74863Apr 12 W/E 04/28/12748393803-92.675105.386-93.056
ShopRite Total TAYVS IF YOU PLS MTLS CNDN BCN SLCD 6 OZ 006082200115Meat Alternative Category74864Mar 12 W/E 03/31/12748393804-72.911722.913-66.976
Meijer Total TAYVS IF YOU PLS MTLS CNDN BCN SLCD 6 OZ 068692432704Boc74865Feb 12 W/E 02/25/12748393805-26.7711007.115-28.004
Total xAOCYVS IF YOU PLS MTLS DL SLCD 5.5 OZ 006082200120Star74866Latest 12 - W/E 01/26/13748393806-100-100
Total FoodYVS IF YOU PLS MTLS HAM SLCD 5.5 OZ 006082200307Lighter74867Latest 13 - W/E 01/26/13748393807-100-100
Walmart Total US TAYVS IF YOU PLS MTLS HAM SLCD 5.5 OZ 068692432712Gard74868Latest 24 - W/E 01/26/13748393808-100-100
Kroger Corp Total TAYVS IF YOU PLS MTLS PPRN SLCD 4.2 OZ 006082200116Veggieburger74869YTD W/E 01/26/13748393809-100-100
Walmart SC Total US TAYVS IF YOU PLS MTLS PPRN SLCD 4.2 OZ 068692432705Dr. Prag74870Jan 13 W/E 01/26/13748393810-100-100
Target Total TAYVS IF YOU PLS MTLS SLM SLCD 5.5 OZ 006082200111Quorny74871Dec 12 W/E 12/29/12748393811-81.6673.98-35.285
Safeway Corp TAYVS IF YOU PLS MTLS SLM SLCD 5.5 OZ 068692432703Tofurky74872Nov 12 W/E 11/24/127483938123.03-9.009
Ahold USA Corp Total TAYVS IF YOU PLS MTLS TRKY SLCD 5.5 OZ 006082200306Yves74873Oct 12 W/E 10/27/12748393813-100-100
Publix Total TAYVS IF YOU PLS MTLS TRKY SLCD 5.5 OZ 068692432711Meat Alternative Category74874Sep 12 W/E 09/29/12748393814-83.9271.49-90.82
SUPERVALU Total Corp incl ALB TAYVS IF YOU PLS ORGN HOT DOG WRP 11 OZ 006082200311Boc74875Aug 12 W/E 08/25/12748393815-91.231.99-87.508
ShopRite Total TAYVS IF YOU PLS PRCK HOT DOG WRP 11 OZ 068692432716Star74876Jul 12 W/E 07/28/12748393816-100-100
Meijer Total TAYVS IF YOU PLS PRCK HOT DOG WRP 9.7 OZ 006082200008Lighter74877Jun 12 W/E 06/30/12748393817-100-100
Total xAOCYVS IF YOU PLS PRCK HOT DOG WRP 9.7 OZ 068692432695Gard74878May 12 W/E 05/26/12748393818-100-100
Total FoodYVS IF YOU PLS PRCK VG SSG PT RFRG 8 OZ 006082200312Veggieburger74879Apr 12 W/E 04/28/12748393819-100-100
Walmart Total US TAYVS IF YOU PLS PRCK VG SSG PT RFRG 8 OZ 068692432717Dr. Prag74880Mar 12 W/E 03/31/12748393820-67.87513.73-55.422
Kroger Corp Total TAYVS IF YOU PLS VG MTLS BRTW LNK 13.4 OZ 006082200025Quorny74881Feb 12 W/E 02/25/12748393821-12.29818.87-27.673
Walmart SC Total US TAYVS IF YOU PLS VG MTLS BRTW LNK 13.4 OZ 068692441405Tofurky74882Latest 12 - W/E 01/26/13748393822-88.0555.02-68.208
Target Total TAYVS IF YOU PLS VG MTLS ITLN BRTW 13.4 OZ 006082200027Yves74883Latest 13 - W/E 01/26/13748393823-83.2817.01-59.433
Safeway Corp TAYVS IF YOU PLS VG MTLS ITLN BRTW 13.4 OZ 068692441406Meat Alternative Category74884Latest 24 - W/E 01/26/13748393824-83.78810.49-76.05
Ahold USA Corp Total TAGRDN 10 OZ 084223400073Boc74885YTD W/E 01/26/13748393825-100-100
Publix Total TAGRDN 10.5 OZ 084223400030Star74886Jan 13 W/E 01/26/13748393826-100-100
SUPERVALU Total Corp incl ALB TAGRDN 12.3 OZ 084223400096Lighter74887Dec 12 W/E 12/29/12748393827-100-100
ShopRite Total TAGRDN BFLS BRGR ENTR BAG 12 OZ 084223400082Gard74888Nov 12 W/E 11/24/12748393828-100-100
Meijer Total TAGRDN CHPT BLCK BN VG BRGR PTY 50.8 OZ 084223400119Veggieburger74889Oct 12 W/E 10/27/12748393829-100-100
Total xAOCGRDN CHPT LM CRSP MT FR FNGR BAG 9 OZ 084223400080Dr. Prag74890Sep 12 W/E 09/29/12748393830-100-100
Total FoodGRDN HMST BFLS BRGR BAG IN BOX 12 OZ 084223400103Quorny74891Aug 12 W/E 08/25/12748393831-1002.02-98.793
Walmart Total US TAGRDN MNDR ORNG CHCK ENTR BAG 10.5 OZ 084223400094Tofurky74892Jul 12 W/E 07/28/12748393832-88.88917.56-78.733
Kroger Corp Total TAGRDN MT FR BBQ PLD SHRD BAG IN BOX 9 OZ 084223400047Yves74893Jun 12 W/E 06/30/12748393833-41.654118.23-23.51
Walmart SC Total US TAGRDN MT FR BBQ SKWR ENTR BAG IN BOX 8 OZ 084223400038Meat Alternative Category74894May 12 W/E 05/26/1274839383435.216132.998-9.807
Target Total TAGRDN MT FR BRGN TR BFLS TPS VGS 10.5 OZ 084223400056Boc74895Apr 12 W/E 04/28/12748393835-43.397180.07115.378
Safeway Corp TAGRDN MT FR CHCK FLT ENTR BAG IN BOX 7 OZ 084223400036Star74896Mar 12 W/E 03/31/1274839383679.723262.57141.877
Ahold USA Corp Total TAGRDN MT FR CHCK STRP RFRG ENTR BOX 7 OZ 084223400034Lighter74897Feb 12 W/E 02/25/127483938373.914216.6757.965
Publix Total TAGRDN MT FR CLSC STYL BFL WNG BAG 9 OZ 084223400049Gard74898Latest 12 - W/E 01/26/13748393838-100-100
SUPERVALU Total Corp incl ALB TAGRDN MT FR HM STYL BFLS TIP BAG 9 OZ 084223400051Veggieburger74899Latest 13 - W/E 01/26/13748393839-100-100
ShopRite Total TAGRDN MT FR LGHT SSND CHCK N SCLP 30 OZ 084223400067Dr. Prag74900Latest 24 - W/E 01/26/13748393840-100-100
Meijer Total TAGRDN MT FR LGHT SSND CHCK SCLP BAG 10 OZ 084223400048Quorny74901YTD W/E 01/26/13748393841-100-100

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
In one view I would like to display records/columns 6-9 for the same market, brand, and date. In another view I would like to only display the markets and products for the selected brand and date. I am only interested in displaying the top 20 records for each view. Thanks!

I have excel 2010 and I'm unable to have the formulat below work. Any idea how to get to work?

=IF(ROWS(A$13:A13)>Control!$G$2,"",INDEX(Data!$I$2:$I$34279,AGGREGATE(15,6,(ROW(Data!$G$2:$G$34279)-ROW(Data!$G$3)+1/((Data!$G$2:$G$34279=Control!$E$5)*(Data!$H$2:$H$34279=Control!$A$70)*(Data!$K$2:$K$34279=Control!$A$5)),ROWS(A$13:A13)))))
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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