crinaldi90
New Member
- Joined
- Feb 6, 2014
- Messages
- 8
I have tried going about this in a variety of different ways and seem to not be able to figure out the solution. The data itself shown below is not real and is rather there just to show what I need help doing, and also for your reference the 1st worksheet is several thousand rows longer with that many titles and a total of over 50 different categories. On the 1st worksheet 'Database', I have all the sales data for each title for the past 1, 2, and 4 weeks in columns C, D, and E, and then each ranked within their specific category for the corresponding period in columns F, G, and H. On the 2nd worksheet 'Rank', cells B2 and C2 are drop downs (data validation lists) to select the category and week ranking you want to choose. These are not dynamic lists that index the first worksheet, although I think that could be a potential solution to have built in if somebody thinks that will work with what I am asking.
What I need help with is that based upon the drop down selections that are chosen in those two cells, B5 will populate the title from the 1st worksheet that has the greatest sales figures for it's category within the period chosen. Then obviously in B6 it will have the second highest and so on thereafter. Ideally, I would like to not have to have the ranking columns in the first worksheet and have the formula I need within the Rank worksheet populate by searching through just the sales figures in columns C, D, and E. I added those in there in case it is a required step by using the numbers in cells A5:A9 in the 2nd worksheet to reference the rankings in columns F,G, and H in the 1st worksheet. As an example on the Rank Worksheet, if you were to choose 'Fiction' and '2 Week', the cells with the formula I am trying to figure out would populate in order: Heroes, Martyn L, and Batman as shown below. I've tried using many variations of the Index, Match, Large, Rank, Sumproduct, Vlookup, indirect, row functions and am fairly confident that some combination of these will work, but I cant figure out what it exactly is. Let me know if this makes sense and whether I left out any important information that might be critical to understanding/answering this question. I appreciate any help or insight somebody can provide here. Thanks!
Worksheet 1: Database
[TABLE="class: grid, width: 1007"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Title[/TD]
[TD]Category[/TD]
[TD]1 Week[/TD]
[TD]2 Week[/TD]
[TD]4 Week[/TD]
[TD]Rank 1 wk[/TD]
[TD]Rank 2 wk[/TD]
[TD]Rank 4 wk[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]LIVING IN THE END TIMES[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]89[/TD]
[TD]109[/TD]
[TD]107[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]BATMAN[/TD]
[TD]Fiction[/TD]
[TD]27[/TD]
[TD]2[/TD]
[TD]13[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]MORTE D'URBAN[/TD]
[TD]Health & Fitness[/TD]
[TD]80[/TD]
[TD]99[/TD]
[TD]72[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BLUE ZONES, THE[/TD]
[TD]Self Help[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]MINDFUL EATING[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]21[/TD]
[TD]19[/TD]
[TD]13[/TD]
[TD]18[/TD]
[TD]14[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PO: HEROES ELEMENTAL CHAOS[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]70[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]TRANSMET VOL 08 NEW EDITION[/TD]
[TD]Photography[/TD]
[TD]23[/TD]
[TD]22[/TD]
[TD]28[/TD]
[TD]14[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]HEROES[/TD]
[TD]Fiction[/TD]
[TD]37[/TD]
[TD]50[/TD]
[TD]38[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]MARTYN L[/TD]
[TD]Fiction[/TD]
[TD]24[/TD]
[TD]10[/TD]
[TD]26[/TD]
[TD]23[/TD]
[TD]18[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]CANNING[/TD]
[TD]Cooking[/TD]
[TD]26[/TD]
[TD]40[/TD]
[TD]38[/TD]
[TD]11[/TD]
[TD]11[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]WING CHUN COMPENDIUM V1[/TD]
[TD]Religion[/TD]
[TD]402[/TD]
[TD]363[/TD]
[TD]439[/TD]
[TD]12[/TD]
[TD]9[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]BUDDHA V. 3[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]16[/TD]
[TD]25[/TD]
[TD]21[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]ALMOST ANIMAL ALPHABET[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]56[/TD]
[TD]71[/TD]
[TD]103[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2: Rank
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Category[/TD]
[TD]Rank[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Fiction[/TD]
[TD]2 Week[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1[/TD]
[TD]Heroes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2[/TD]
[TD]Martyn L[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]3[/TD]
[TD]Batman[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need help with is that based upon the drop down selections that are chosen in those two cells, B5 will populate the title from the 1st worksheet that has the greatest sales figures for it's category within the period chosen. Then obviously in B6 it will have the second highest and so on thereafter. Ideally, I would like to not have to have the ranking columns in the first worksheet and have the formula I need within the Rank worksheet populate by searching through just the sales figures in columns C, D, and E. I added those in there in case it is a required step by using the numbers in cells A5:A9 in the 2nd worksheet to reference the rankings in columns F,G, and H in the 1st worksheet. As an example on the Rank Worksheet, if you were to choose 'Fiction' and '2 Week', the cells with the formula I am trying to figure out would populate in order: Heroes, Martyn L, and Batman as shown below. I've tried using many variations of the Index, Match, Large, Rank, Sumproduct, Vlookup, indirect, row functions and am fairly confident that some combination of these will work, but I cant figure out what it exactly is. Let me know if this makes sense and whether I left out any important information that might be critical to understanding/answering this question. I appreciate any help or insight somebody can provide here. Thanks!
Worksheet 1: Database
[TABLE="class: grid, width: 1007"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Title[/TD]
[TD]Category[/TD]
[TD]1 Week[/TD]
[TD]2 Week[/TD]
[TD]4 Week[/TD]
[TD]Rank 1 wk[/TD]
[TD]Rank 2 wk[/TD]
[TD]Rank 4 wk[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]LIVING IN THE END TIMES[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]89[/TD]
[TD]109[/TD]
[TD]107[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]BATMAN[/TD]
[TD]Fiction[/TD]
[TD]27[/TD]
[TD]2[/TD]
[TD]13[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]MORTE D'URBAN[/TD]
[TD]Health & Fitness[/TD]
[TD]80[/TD]
[TD]99[/TD]
[TD]72[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BLUE ZONES, THE[/TD]
[TD]Self Help[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]MINDFUL EATING[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]21[/TD]
[TD]19[/TD]
[TD]13[/TD]
[TD]18[/TD]
[TD]14[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PO: HEROES ELEMENTAL CHAOS[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]67[/TD]
[TD]67[/TD]
[TD]70[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]TRANSMET VOL 08 NEW EDITION[/TD]
[TD]Photography[/TD]
[TD]23[/TD]
[TD]22[/TD]
[TD]28[/TD]
[TD]14[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]HEROES[/TD]
[TD]Fiction[/TD]
[TD]37[/TD]
[TD]50[/TD]
[TD]38[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]MARTYN L[/TD]
[TD]Fiction[/TD]
[TD]24[/TD]
[TD]10[/TD]
[TD]26[/TD]
[TD]23[/TD]
[TD]18[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]CANNING[/TD]
[TD]Cooking[/TD]
[TD]26[/TD]
[TD]40[/TD]
[TD]38[/TD]
[TD]11[/TD]
[TD]11[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]WING CHUN COMPENDIUM V1[/TD]
[TD]Religion[/TD]
[TD]402[/TD]
[TD]363[/TD]
[TD]439[/TD]
[TD]12[/TD]
[TD]9[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]BUDDHA V. 3[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]16[/TD]
[TD]25[/TD]
[TD]21[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]ALMOST ANIMAL ALPHABET[/TD]
[TD]Comics & Graphic Novels[/TD]
[TD]56[/TD]
[TD]71[/TD]
[TD]103[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2: Rank
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Category[/TD]
[TD]Rank[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Fiction[/TD]
[TD]2 Week[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1[/TD]
[TD]Heroes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2[/TD]
[TD]Martyn L[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]3[/TD]
[TD]Batman[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]