How can I pull the records with the highest totals?

gli

Board Regular
Joined
Jun 8, 2006
Messages
96
Hi! I am having difficulty figuring a way to manipulate my data to my satisfaction. The below table shows the data in question.

I will discuss rows 3-9 to give an example of what I'm trying to do. Rows 3-9 show information for the same store. However, that information has 4 different dates related to it (column F). Out of the 4 dates shown, I need to know which one has the highest total for column D for the products listed. In this case the data associated with 5/12/2006 (row 5) has the highest total (50) even though other dates have more products shown. However, if the data associated with 5/18/2006 (rows 6-8) had a higher total then *that* data would be the pivotal data. I need this done for every store listed in the file. I'd love to have a list extropolated from this data that shows only the date records with the highest column D totals for each store. For instance, if the first case stated above were true, I'd get an extrapolated list including the one record for store 12/397 from 5/12/2006. If the second case were true I'd get a list including the three records for store 12/397 from 5/18/2006.

This data can run upwards of 1000 records, so finding a way to automate this task will really save me a lot of time. As it stands right now I have to sift through them all myself row by row. Is there any hope of automating this? Any help will be greatly appreciated!
Displays.xls
ABCDEF
1RtStoreProductCasesPriceDate
240#2159STOPANDGRABPRODUCTA4/6/12NR57.495/26/2006
34012/397ABCFOODSTORES2NDPRODUCT4/6/12NR205/05/2006
44012/397ABCFOODSTORESPRODUCTA2/12/12NR159.995/05/2006
54012/397ABCFOODSTORESPRODUCTA2/12/12NR5012.995/12/2006
64012/397ABCFOODSTORES2NDPRODUCT4/6/12NR56.495/18/2006
74012/397ABCFOODSTORESPRODUCTA4/6/12NR56.495/18/2006
84012/397ABCFOODSTORESPRODUCTA2/12/12NR59.995/18/2006
94012/397ABCFOODSTORESPRODUCTA2/12/12NR1012.995/26/2006
104020/398ABCFOODSTORESPRODUCTA2/12/12NR109.995/05/2006
114035/164ABCFOODSTORESPRODUCTA2/12/12NR209.995/05/2006
124035/164ABCFOODSTORESPRODUCTA2/12/12NR2512.995/12/2006
134038/195ABCFOODSTORESPRODUCTA2/12/12NR129.995/05/2006
144038/195ABCFOODSTORESPRODUCTA2/12/12NR1212.995/12/2006
154038/195ABCFOODSTORESPRODUCTA2/12/12NR612.995/19/2006
164038/195ABCFOODSTORESPRODUCTA2/12/12NR612.995/26/2006
May
 
Hi gli,

A question, what is the approach when there are multiple results - such as row 13 is a result and row 14 also?

As mentioned in my response to Yogi's post, if the date was the same in rows 15 & 16 that would be a third answer for that store.

Are all results required, or maybe those from the oldest or newest date?

regards,
Fazza
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,914
Messages
6,175,351
Members
452,638
Latest member
Oluwabukunmi

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