LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB Code needed for Sorting with constraints problem-Tough One

I have a huge spreadsheet containing part numbers, work order numbers, labor time, and due dates. I know you cannot solve this under regular Excel channels. I think VB code will have to be added, unfortunately, I can't write code. I really need help in that department. Here are the constraints

1. Cannot exceed certain amount of labor hours in one day (For this example let's use 10 hours) Would like to be able to choose labor hour amount to try different scenarios
2. Cannot repeat the same part number within that block of 10 hour
3. Work must be sorted by due date within 10 hour block (that's the easy part

Look at the example below

Part Number W.O. Labor Time (Hours) Due Dat
A 100 2 1/1/0
A 101 2 1/1/0
B 200 3 1/2/0
B 201 3 1/2/0
C 300 4 1/1/0

Sorted Report Should Like the following

Part Number W.O. Labor Time (Hours) Due Dat
A 100 2 1/1/0
C 300 4 1/1/0
B 200 3 1/2/0
Page Break or Empty Ro

Part Number W.O. Labor Time (Hours) Due Dat
A 101 2 1/1/0
B 201 3 1/2/04

Anyone that can solve this is a master in my book.....thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Master needed - Too tough to tame RiverCity Excel Worksheet Functions 2 November 10th 08 09:25 PM
Tough formula problem Joker Excel Discussion (Misc queries) 1 February 1st 07 03:17 PM
a tough question - calculating a number out of an alphanumeric code usingexcel Excel Discussion (Misc queries) 2 August 3rd 06 06:07 PM
Problem with Solver and Integer constraints [email protected] Excel Worksheet Functions 1 August 12th 05 03:23 AM
A tough problem Patrick Simonds Excel Discussion (Misc queries) 3 July 30th 05 07:26 PM


All times are GMT +1. The time now is 09:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"