need help creating a top 10 based off of a specfic column reference (probably hlookup needed)

rob36

Board Regular
Joined
Jul 12, 2010
Messages
57
Hello there,

The company i'm interning for has a database wih the first column containing 'div item number' , essentially labelling thousands of items with unique id's. Columns E onwards (currently on BD, will keep going though), contains the value of how many units of that item were picked each week. Each column begins with a year//week (ex: 201014 would be year 2010, week 14).
I am trying to create a user friendly sheet that can display the top 10 biggest ticket items for a specific week entered in by the user (they enter in the week and year, and i CONCATENATE). Currently to find the top items, I am using =LARGE(Inbound_Receipts!BD:BD, 2), where inbound receipts is the sheet with the data, and column BD was the most recent week.
I would like to make it so the column can be automatically updated based upon what they enter in. I was thinking that hlookup might be needed, with it finding the year/week as the target value, however I wasnt sure how to get it to find the row_index_number. I assume both Large and Match would need to be nested, please help!

I know that this is a lot, and i'm not sure if I made it understandable, but please ask me any quetions if clarifications is needed.

Excel Workbook
ABCDEFGHI
36* Insert the week and year
372010Year
38
3924Week52
4020926201024
41
42Top Ten Products
43
44Div Item NumberItem DescReceipts
45171691395 INCH BRASS,TWIST NOZZLE9840
4622213370BAGS, COMPACTOR PLASTIC.7168
4737112885LAWN BAGS,CRAFTSMAN LEAF5400
4842080007KN,EF-1 EXHAU.FILTER4350
4957133181ENVIRO-FLO,W 1 GALLONENVI4000
506917816FILTER, RED3900
517941581SCREWDRIVER, 3/16X4 IN3400
528941584SCREWDRIVER,1/4X6 IN3300
539941584SCREWDRIVER,1/4X6 IN3300
541091138318V DRILL, DRVR CRAFTSMAN3202
Inbound
Excel 2002
Cell Formulas
RangeFormula
F39=MATCH(Inbound!D40,Inbound_Receipts!E1:IU1)
F40=CONCATENATE(D37,D39)
D45=INDEX(Inbound_Receipts!$1:$65536,MATCH(H45,Inbound_Receipts!$BD:$BD,0),1)
D46=INDEX(Inbound_Receipts!$1:$65536,MATCH(H46,Inbound_Receipts!$BD:$BD,0),1)
D47=INDEX(Inbound_Receipts!$1:$65536,MATCH(H47,Inbound_Receipts!$BD:$BD,0),1)
D48=INDEX(Inbound_Receipts!$1:$65536,MATCH(H48,Inbound_Receipts!$BD:$BD,0),1)
D49=INDEX(Inbound_Receipts!$1:$65536,MATCH(H49,Inbound_Receipts!$BD:$BD,0),1)
D50=INDEX(Inbound_Receipts!$1:$65536,MATCH(H50,Inbound_Receipts!$BD:$BD,0),1)
D51=INDEX(Inbound_Receipts!$1:$65536,MATCH(H51,Inbound_Receipts!$BD:$BD,0),1)
D52=INDEX(Inbound_Receipts!$1:$65536,MATCH(H52,Inbound_Receipts!$BD:$BD,0),1)
D53=INDEX(Inbound_Receipts!$1:$65536,MATCH(H53,Inbound_Receipts!$BD:$BD,0),1)
D54=INDEX(Inbound_Receipts!$1:$65536,MATCH(H54,Inbound_Receipts!$BD:$BD,0),1)
E45=VLOOKUP(D45, Inbound_Receipts!A:D, 4, FALSE)
E46=VLOOKUP(D46, Inbound_Receipts!A:D, 4, FALSE)
E47=VLOOKUP(D47, Inbound_Receipts!A:D, 4, FALSE)
E48=VLOOKUP(D48, Inbound_Receipts!A:D, 4, FALSE)
E49=VLOOKUP(D49, Inbound_Receipts!A:D, 4, FALSE)
E50=VLOOKUP(D50, Inbound_Receipts!A:D, 4, FALSE)
E51=VLOOKUP(D51, Inbound_Receipts!A:D, 4, FALSE)
E52=VLOOKUP(D52, Inbound_Receipts!A:D, 4, FALSE)
E53=VLOOKUP(D53, Inbound_Receipts!A:D, 4, FALSE)
E54=VLOOKUP(D54, Inbound_Receipts!A:D, 4, FALSE)
H45=LARGE(Inbound_Receipts!BD:BD, 2)
H46=LARGE(Inbound_Receipts!BD:BD, 3)
H47=LARGE(Inbound_Receipts!BD:BD, 4)
H48=LARGE(Inbound_Receipts!BD:BD, 5)
H49=LARGE(Inbound_Receipts!BD:BD, 6)
H50=LARGE(Inbound_Receipts!BD:BD, 7)
H51=LARGE(Inbound_Receipts!BD:BD, 8)
H52=LARGE(Inbound_Receipts!BD:BD, 9)
H53=LARGE(Inbound_Receipts!BD:BD, 10)
H54=LARGE(Inbound_Receipts!BD:BD, 11)



I hope this helps. D40 can be ignored, that was a test value. Currently, you can see that my LARGE and VLOOKUP reference BD, which happens to be the most up to date column of my data. I would like it so that instead of BD, it will use the column of the year/row entered in (see F40)

here is the page that it links to, so you can see how it is currently set up, ignore that fact that 2009 is labeled like 209, thats another issue i'll work on (and much easier)

Excel Workbook
ABCDEFGHIJKL
1DIVITEMDivItemDesc2082720828208292083020831208322083320834
2338457338457JVC CAM,GZMG330RUS HDD15611256
3338514338514DCRSX40,SNY SD FLASH MP2
4356028356028SON CAM,DCRHC52 MINIDV120130140110160160250
5356038356038SON CAM,DCRDVD61010028015060510381
6356039356039DVD CAM,SNY
7356049356049SON CAM,HDRUX10HD DVD85188173227
8356070356070MHSCM1/V,SNY MP4 CAM-EGPL
9356078356078SON CAM,DCRSR45 HDD50018055135140280230
Inbound_Receipts
Excel 2002



lastly, i'm not exactly a pro with excel, so the more thorough the explanation, the better :)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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