Formula or VBA to Evaluating Data based on Material #, Location then Date

Seabee1

New Member
Joined
Feb 19, 2018
Messages
7
Hello, i am very basic with formulas and VBA and i am trying to evaluate data based on material number date and location. i want to group all the same material number then if the product is in location "A Pick Line" or "A Tygard" look at all the age dates to make sure all those locations have the oldest product and if they don't then highlight that cell red. Material is column G, Location is column W, and date is column R. Any help is greatly Appreciated



PlantLocationWarehouseStorage BinSequenceCount OrderMaterial
Material DescriptionStock typeBatchPhysical CountBase Unit of MeasureFull(s)LoosePallet QtyCounterInventory DocBBE DateDateTimeDays DiffUnder 90 DaysProduct Location
10001 B00251316100278
Product 11DSDP046540.000CS5.00020.000104.000 8/12/201912/3/20184:24:26 AM213NoA Pick Line
10001 J20132818100278Product 11DSDP046104.000CS1.0000.000104.000 8/12/201912/3/20183:56:44 AM213NoNorth Warehouse
10001 C200862728100278Product 11DSDP0462,184.000CS21.0000.000104.000 8/19/201912/3/20185:41:29 AM220NoNorth Warehouse
10001 J20153828100278Product 11DSDP046832.000CS8.0000.000104.000 8/26/201912/3/20183:57:18 AM227NoNorth Warehouse
10001 F201041302100278Product 11DSDP0462,704.000CS26.0000.000104.000 8/26/201912/3/20184:23:49 AM227NoNorth Warehouse
10001 C302031842100281Product 21DSDP046624.000CS6.0000.000104.000 2/4/201912/3/20184:54:45 AM24YesNorth Warehouse
10001 C301041892100281Product 21DSDP046104.000CS1.0000.000104.000 2/4/201912/3/20184:57:01 AM24YesNorth Warehouse
10001 A1008C21226100281Product 21DSDP046235.000CS2.00027.000104.000 2/11/201912/3/20184:19:38 AM31YesNorth Warehouse
10001 C201052736100281Product 21DSDP0461,248.000CS12.0000.000104.000 2/11/201912/3/20185:41:52 AM31YesNorth Warehouse
10001 A1002C31290100287Product 31DSDP04634.000CS0.00034.000104.000 8/5/201912/3/20184:23:11 AM206NoNorth Warehouse
10001 A1002C21264100287Product 31DSDP046573.000CS5.00053.000104.000 8/12/201912/3/20184:21:46 AM213NoNorth Warehouse
10001 C202042786100287Product 31DSDP0461,664.000CS16.0000.000104.000 8/12/201912/3/20185:44:42 AM213NoNorth Warehouse
10001 ST02119100722Product 41DSDP046104.000CS1.0000.000104.000 12/3/20183:10:53 AM
10001 B035101661100722Product 41DSDP046538.000CS5.00018.000104.000 8/26/201912/3/20184:43:50 AM227NoA Pick Line
10001 LY3120100722Product 41DSDP046208.000CS2.0000.000104.000 8/26/201912/3/20183:22:33 AM227NoA Tygard
10001 LY4357100722Product 41DSDP04648.000CS0.00048.000104.000 8/26/201912/3/20183:31:20 AM227NoA Tygard
10001 H20145932100722Product 41DSDP046728.000CS7.0000.000104.000 8/19/201912/3/20184:03:08 AM220NoNorth Warehouse
10001 G202171230100722Product 41DSDP0463,224.000CS31.0000.000104.000 8/19/201912/3/20184:19:43 AM220NoNorth Warehouse
10001 E2015123765100722Product 41DSDP0461,664.000CS16.0000.000104.000 8/19/201912/3/201810:25:33 AM220NoNorth Warehouse
10001 G202261126100722Product 41DSDP0461,768.000CS17.0000.000104.000 8/26/201912/3/20184:14:03 AM227NoNorth Warehouse
10001 E202181514100722Product 41DSDP0462,600.000CS25.0000.000104.000 8/26/201912/3/20184:34:39 AM227NoNorth Warehouse
10001 E202391522100722Product 41DSDP0462,912.000CS28.0000.000104.000 8/26/201912/3/20184:35:07 AM227NoNorth Warehouse
10001 D2021111673100722Product 41DSDP0464,784.000CS46.0000.000104.000 8/26/201912/3/20184:44:31 AM227NoNorth Warehouse
<colgroup><col width="64" style="width: 48pt;" span="2"> <col width="32" style="width: 24pt; mso-width-source: userset; mso-width-alt: 1170;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;" span="2"> <col width="64" style="width: 48pt;"> <col width="216" style="width: 162pt; mso-width-source: userset; mso-width-alt: 7899;" span="3"> <col width="83" style="width: 62pt; mso-width-source: userset; mso-width-alt: 3035;"> <col width="38" style="width: 29pt; mso-width-source: userset; mso-width-alt: 1389;"> <col width="64" style="width: 48pt;" span="3"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"> <col width="95" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3474;"> <col width="61" style="width: 46pt;"> <col width="64" style="width: 48pt;"> <col width="151" style="width: 113pt; mso-width-source: userset; mso-width-alt: 5522;"> <tbody> </tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Could you explain your example?
In which case the cell is highlight and why?
And which cell you want to highlight
 
Upvote 0
i am trying to sort by material number first and then by BBE Date so i can compare locations. if items located in A Pick Line or A Tygard are not the oldest or equal to the oldest BBE Date then i want the location cell to be highlighted Red. please let me know if this helps and thank you for taking the time.
 
Upvote 0
I need you to tell me, according to your image In which case the cell is highlight and why
 
Upvote 0

Forum statistics

Threads
1,215,573
Messages
6,125,608
Members
449,238
Latest member
wcbyers

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