PC Review


Reply
Thread Tools Rate Thread

Assign value with DOWHILE (variant of TRANSPORT METHOD)

 
 
Alonso
Guest
Posts: n/a
 
      10th Nov 2008
I have a table with 15 rows and 10 columns (A1:J15)

Row 16 sums the values in each column (1:15)
Column K sums the values in each row (A:J)

Column L has values assigned
Column M ranks thes values (#1 for highest, moving downwards)

what i need to do is to get a VBA
to assing a value (1)
for each column
based on this:

as long as the column total (row 16) isn't higher (>) that 7
search for the highest ranked row
and assing a value of 1
as long as the row total (column K) is lower (<) that the values in column L
then search for the next higher ranked row

this could be seen as a variant of a transport method
where row 16 would be the assigned trucks (up to 7)
and column L is the minimum amount of trips
of course, if there is a way to optimize this
i accept sugestions
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
assign formula to variant range of cells Ira Microsoft Excel Programming 5 17th Jun 2008 04:59 PM
How do I assign range to variant and use Mike H Microsoft Excel Misc 7 7th Jun 2007 01:40 AM
Getting "you tried to assign the null value to a variable that is not a variant data type" error with MS template Jess Microsoft Access Form Coding 11 27th Jun 2006 02:51 PM
You tried to assign the Null value to a variable that is not a Variant Data Type Lance Microsoft Access Form Coding 2 24th Apr 2006 08:51 AM
ERROR - You tried to assign the NULL value to a variabe that is not a Variant data type Scott B Microsoft Access Forms 1 4th Jul 2005 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 PM.