LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Compare and sum

Hi,

I am trying to look at an excel tool to decide what weights should be
manufactured onto bobines for copper cables.

I need a formula that will look through a list and create a subtotal of the
same items that are adjacent on a list IF the total of their weights is less
than 400 OR a combined weight that is multiple of 400 that can be separated
into weights of 100<weight<400. If these conditions cannot be met we must
accept the weight of the product as it is even if its outside the 100 or 400
barrier. (For your ref it means more work as it has be cut into smaller
pieces before the next process so it adds a step, hence why we group if
possible). So from the following table with inputs in cols A & B I need to
create the subtotal in col C.

XN12 F0.5A 50
XN12 F0.5A 100
XN12 F0.5A 200 350
YN8 F0.3 350
YN8 F0.3 150 500 (will be manuf in2 lots)
XN12 F0.5A 100 100
ZN11 F0.5A 450 450
ZN6 F 0.4B 75 75
ZN6 F 0.4B 350 350 (cant be split as outside
limits)
XN12 F0.5A 50
XN12 F0.5A 100 150

Note that in the above example I have purposely repeated the same code in
several places (adjacent and not adjacent) to show that the formula must only
look in adjacent cells. Also the code to match comes from an A1&B1&R1 type
formula to combine various conditions that need to be matched into one
series, so it might look like junk but it has relevance.

Does anyone know what sort of iterative type formula I could use to arrive
with the results in Col C?

Thanks
LiAD
 
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
Compare and get the best value Satya Nanduri[_2_] Excel Worksheet Functions 2 July 12th 08 07:13 AM
Compare Srenfro Excel Worksheet Functions 1 March 11th 08 10:02 PM
Compare CribbsStyle Excel Worksheet Functions 8 November 4th 06 10:15 PM
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
compare dansd Excel Worksheet Functions 1 December 21st 04 12:19 PM


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