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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,216,022
Messages
6,128,324
Members
449,440
Latest member
Gillian McGovern

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