jerminski73
New member
- Joined
- Apr 24, 2025
- Messages
- 9
- Reaction score
- 0
- Points
- 1
- Excel Version(s)
- 365
I have a document # in Column C, Product Type in D, Quantity in E
What I want is a multiple IF scenario. The scenario: Each load we haul has 3 product types available and if we haul all 3 types then each load will have 3 lines of data, if we haul 2 then it will generate 2 lines of data, if we haul 1 full load then it will only generate 1 line of data. Now for the rest of the fun, I have to combine 2 product types into 1 value and the 3rd item will be all on it's own. Item 65 & 124 need to become combined values, Item 99 will always be separate.

Problem 1: I created a way to combine flag the document number and tell me if the doc has multiple line items. (Row 1 will always be a "1" so that's a given). Right now the formula is set to if line 2 does not match line 1 then enter "1" if it matches line 1 then return value of "2". Right now the first line of the document number will always be "1" without any formatting, any additional lines with the same Doc# will be "2" formatted yellow cell. Is there a way to give me a return value of 3 for the third item?
Next problem after figuring out the above question: I have Product flagging in column H, Product 65&124 are combined values for a grand total, product 99 always has to be separate from these two product types. I Sort my Sheet by Doc then by Product Flag so it puts all the 1's together and then the trailing 2 at the bottom of the lines. Now I want to combine the values flagged as 1's by Doc#.
So,
Doc 1000542 has 3 products, Total product is 7500, I need the sheet to tell me product Flag 1 total equals 6500 and product Flag 2 equals 1000.
Doc 1000543 has 2 products, Total product is 7500, I need the sheet to tell me product Flag 1 total equals 7500.
Doc 1000544 has 1 product, Total product is 7300, I need the sheet to tell me product Flag 1 total equals 7300.
Doc 1000545 has 2 products, Total product is 7700, I need the sheet to tell me product Flag 1 total equals 7700.
Doc 1000546 has 1 product, Total product is 6900, I need the sheet to tell me product Flag 2 total equals 6900.
The way I have it setup is not terrible compared to the way it used to be but I am sure there is a better way!.. Thanks in advance for any assistance!
What I want is a multiple IF scenario. The scenario: Each load we haul has 3 product types available and if we haul all 3 types then each load will have 3 lines of data, if we haul 2 then it will generate 2 lines of data, if we haul 1 full load then it will only generate 1 line of data. Now for the rest of the fun, I have to combine 2 product types into 1 value and the 3rd item will be all on it's own. Item 65 & 124 need to become combined values, Item 99 will always be separate.

Problem 1: I created a way to combine flag the document number and tell me if the doc has multiple line items. (Row 1 will always be a "1" so that's a given). Right now the formula is set to if line 2 does not match line 1 then enter "1" if it matches line 1 then return value of "2". Right now the first line of the document number will always be "1" without any formatting, any additional lines with the same Doc# will be "2" formatted yellow cell. Is there a way to give me a return value of 3 for the third item?
Next problem after figuring out the above question: I have Product flagging in column H, Product 65&124 are combined values for a grand total, product 99 always has to be separate from these two product types. I Sort my Sheet by Doc then by Product Flag so it puts all the 1's together and then the trailing 2 at the bottom of the lines. Now I want to combine the values flagged as 1's by Doc#.
So,
Doc 1000542 has 3 products, Total product is 7500, I need the sheet to tell me product Flag 1 total equals 6500 and product Flag 2 equals 1000.
Doc 1000543 has 2 products, Total product is 7500, I need the sheet to tell me product Flag 1 total equals 7500.
Doc 1000544 has 1 product, Total product is 7300, I need the sheet to tell me product Flag 1 total equals 7300.
Doc 1000545 has 2 products, Total product is 7700, I need the sheet to tell me product Flag 1 total equals 7700.
Doc 1000546 has 1 product, Total product is 6900, I need the sheet to tell me product Flag 2 total equals 6900.
The way I have it setup is not terrible compared to the way it used to be but I am sure there is a better way!.. Thanks in advance for any assistance!