May 31 2024 03:48 PM - edited May 31 2024 03:50 PM
So I have a formula like this. Basically it is in the worksheet or "tab" control and it looks up a cable tag on the M102 then the cable length is on the E4-105. Then it goes back to the M4-105 and looks for duplicate tags of the same and adds them together to get a total length for me. This is good but I also want a way to have that formula in another light to remove duplicate as well if possible. I tried the unique formula at the end but I believe it doesn't work in the same column I put the below formula in and also not 100% if it can see the output # as a duplicate because its a formula?
=IF(M87<>"",SUMIF(CONTROL!$M$4:$M$105,M87,CONTROL!$E$4:$E$105),"")
I tried this below but didn't work.
=IF(M4<>"", SUMIF(CONTROL!$M$4:$M$105, M4, CONTROL!$E$4:$E$105), UNIQUE($X$4:$X$105))
Jun 01 2024 01:35 AM
Enter a Array Formula.
=UNIQUE(FILTER(CONTROL!$M$4:$M$105, CONTROL!$M$4:$M$105 <> ""))
This formula extracts the unique cable tags from the specified range.
=SUMIF(CONTROL!$M$4:$M$105, H4, CONTROL!$E$4:$E$105)
Drag this formula down to match the number of unique tags generated in column H.
The formula provided upper needs to be entered as an array formula in older versions of Excel. For Excel 365 and Excel 2019, you can enter it normally.
Jun 03 2024 04:55 AM - edited Jun 03 2024 04:58 AM
So I have that first formula entered into a a different worksheet/tab in the back. But then not 100% on the second part of the formula what your saying to do?
This is what I'm dealing with see total Cable Length. This will be what I end up printing and handing to the contractor and then the worksheet where I put some formulas and will make the cell I guess look back and find your formula since not 100% sure how to make it work on the main sheet.
I guess what I'm really needing is it to look at the lengths and not repeat if it finds duplicate lengths. But the total length is calculated based off that original formula: =IF(M87<>"",SUMIF(CONTROL!$M$4:$M$105,M87,CONTROL!$E$4:$E$105),"")
But it duplicates every time my cable tag repeats which stinks. But my cable tag has to repeat due to conduit retagging per pull boxes and other situations wherever my cable goes.
Jun 03 2024 04:54 PM
SolutionYour requirement is to avoid duplicate lengths for the same cable tag in your summary worksheet, so far I understand it. Here is a more detailed step-by-step guide to achieve this in Excel, assuming you are using Excel 365 or Excel 2019.
Step-by-Step Solution
1. Identify Unique Cable Tags:
=UNIQUE(FILTER(CONTROL!$M$4:$M$105, CONTROL!$M$4:$M$105 <> ""))
This formula will list all unique cable tags from the range CONTROL!$M$4:$M$105.
2. Sum Lengths for Unique Tags:
=IF(H4<>"", SUMIF(CONTROL!$M$4:$M$105, H4, CONTROL!$E$4:$E$105), "")
Drag this formula down to match the number of unique tags generated in column H.
Full Example
Assume your summary worksheet is named "Summary":
=UNIQUE(FILTER(CONTROL!$M$4:$M$105, CONTROL!$M$4:$M$105 <> ""))
=IF(H4<>"", SUMIF(CONTROL!$M$4:$M$105, H4, CONTROL!$E$4:$E$105), "")
Visualizing the Summary Sheet
Your summary sheet should look something like this after entering the formulas:
H (Unique Tags) | I (Total Lengths) |
TAG1 | 50 |
TAG2 | 75 |
TAG3 | 100 |
... | ... |
Important Points
Handling Duplicates in Length Calculation
If you still face issues with duplicated lengths due to the presence of multiple entries of the same tag, consider the following approach:
If this doesn't fully address your needs or if there are any specific issues, please provide more details, and I can refine the solution accordingly. The text, steps and functions were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
Jun 04 2024 06:31 AM
@NikolinoDE Yeah I finally got it to work yesterday slowly understanding what you were putting out. I like that but unfortunately it not how we submit our stuff to the contractor as we submit it as shown in the image below, but I definitely do like it. I appreciate your help and will keep this post in mind 100% Thanks man.
Jun 03 2024 04:54 PM
SolutionYour requirement is to avoid duplicate lengths for the same cable tag in your summary worksheet, so far I understand it. Here is a more detailed step-by-step guide to achieve this in Excel, assuming you are using Excel 365 or Excel 2019.
Step-by-Step Solution
1. Identify Unique Cable Tags:
=UNIQUE(FILTER(CONTROL!$M$4:$M$105, CONTROL!$M$4:$M$105 <> ""))
This formula will list all unique cable tags from the range CONTROL!$M$4:$M$105.
2. Sum Lengths for Unique Tags:
=IF(H4<>"", SUMIF(CONTROL!$M$4:$M$105, H4, CONTROL!$E$4:$E$105), "")
Drag this formula down to match the number of unique tags generated in column H.
Full Example
Assume your summary worksheet is named "Summary":
=UNIQUE(FILTER(CONTROL!$M$4:$M$105, CONTROL!$M$4:$M$105 <> ""))
=IF(H4<>"", SUMIF(CONTROL!$M$4:$M$105, H4, CONTROL!$E$4:$E$105), "")
Visualizing the Summary Sheet
Your summary sheet should look something like this after entering the formulas:
H (Unique Tags) | I (Total Lengths) |
TAG1 | 50 |
TAG2 | 75 |
TAG3 | 100 |
... | ... |
Important Points
Handling Duplicates in Length Calculation
If you still face issues with duplicated lengths due to the presence of multiple entries of the same tag, consider the following approach:
If this doesn't fully address your needs or if there are any specific issues, please provide more details, and I can refine the solution accordingly. The text, steps and functions were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.