LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default algorithm creation

Hello. If I understand the question correctly...
If A1 holds your number, then perhaps a helper column at B1 with
=MOD(A1,36)

The number of small boxes:
=MOD(1042848, CEILING(B1/6,1) + 12)

And the number of large boxes:
=FLOOR(A1/36,1) + (B1 18)

HTH. :)
--
Dana DeLouis
Win XP & Office 2003


"Gixxer_J_97" wrote in message
...
i did forget one part to it - if there's more than 3 small boxes, they can
be
consolidated into 1 large box

sorry to be a pain =)

"Tim Williams" wrote:

Divide number of bags by 36 and round down = number of large containers
Divide remainder by 6 and round up if not exact = number of small
containers

Sounds like a homework assignment.

Tim.


"Gixxer_J_97" wrote in message
...
i have 2 size shipping containers that are available
the large can hold up to 36 bags of product and the small up to 6 bags
how would i go about creating an algorithm that would calculate how
many
(the least number) small and large boxes i would need to use?

I've gotten this far:

Bags Small Large
1-6 1 0
7-12 2 0
13-18 3 0
19-24 0 1
25-30 0 1
31-36 0 1
37-42 1 1
43-48 2 1
49-54 3 1
55-60 0 2
61-66 0 2
67-72 0 2
73-78 1 2
79-84 2 2
85-90 3 2
91-96 0 3
97-102 0 3
103-108 0 3
109-114 1 3
115-120 2 3
121-126 3 3
127-132 0 4
133-138 0 4
139-144 0 4
etc etc

and now i'm a bit stuck - any help is greatly appreciated

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
looking for my perfect algorithm meesh7391 Excel Discussion (Misc queries) 0 January 11th 06 12:06 AM
Algorithm Challenge Lowkey Excel Worksheet Functions 4 July 20th 05 06:40 PM
Trendline Linear Algorithm Mark Schreiber[_2_] Excel Programming 0 May 12th 04 09:56 PM
help with algorithm dreamer[_3_] Excel Programming 6 January 9th 04 02:14 PM
Need help with algorithm RADO[_3_] Excel Programming 1 November 4th 03 12:37 PM


All times are GMT +1. The time now is 11:15 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"