How many inches of tubing?

jkharms

Board Regular
Joined
Apr 17, 2009
Messages
102
I need a formula that will calculate the total length of tubingl of different diameters, knowing the specific length of many different pieces and their different diameters.

Column A contains the length of varying numbers of pieces of tubing.
Columns B, C and D each contain a different number that identifies the diameter of the various pieces (i.e., 1, .75 and .625)

The formula for Column B needs to select all the pieces in Column A that have the diameter listed in Column B, ignoring those that don't, and add them together. A similar formula is needed to sum the lengths of pieces with diameters shown in columns C and D.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Jkharms,

For the column B formula, You could put this in cell E1, and copy down as far as you need.
Code:
=SUMIF(B:B,$B1,A:A)

Cheers
Caleeco
 
Upvote 0
Hello,

That's great, thanks for letting me know it worked! If you need help setting up the ones for column C and D let me know, but it should be fairly straightforward.

Cheers
Caleeco
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top