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: 58
Default Assign value with DOWHILE (variant of TRANSPORT METHOD)

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
 
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
assign formula to variant range of cells Ira Excel Programming 5 June 17th 08 04:59 PM
How do I assign range to variant and use Mike H[_2_] Excel Discussion (Misc queries) 7 June 7th 07 01:40 AM
Transport problem with Excel MIchel Khennafi Excel Worksheet Functions 1 September 8th 06 11:59 PM
DoWhile Loop & Type mismatch error oakman[_27_] Excel Programming 4 June 27th 06 11:28 AM
How to assign directory for GetOpenFilename method Tim_M Excel Programming 1 December 10th 03 12:03 AM


All times are GMT +1. The time now is 03:33 PM.

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"