Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default excel-count a value in 1 column if a value in a 2nd is true

I need to calculate the sum of a cable part number (included in column D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E) column
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default excel-count a value in 1 column if a value in a 2nd is true

Hi,

You haven't given us much detail, so why not try COUNTIF(Range,Condition)

Note your subject line says you want to COUNT, your message says you want to
SUM??

SUMIF(Range,Condition,SumRange)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Jim C." wrote:

I need to calculate the sum of a cable part number (included in column D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E) column

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default excel-count a value in 1 column if a value in a 2nd is true

Not real clear what you want.

Do you want the total length of cable for a specific part number?

Try something like this...

G3 = some part number

=SUMIF(D3:D42,G3,E3:E42)

--
Biff
Microsoft Excel MVP


"Jim C." wrote in message
...
I need to calculate the sum of a cable part number (included in column D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E) column



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default excel-count a value in 1 column if a value in a 2nd is true



"T. Valko" wrote:

Not real clear what you want.

Do you want the total length of cable for a specific part number?

Try something like this...

G3 = some part number

=SUMIF(D3:D42,G3,E3:E42)

--
Biff
Microsoft Excel MVP


"Jim C." wrote in message
...
I need to calculate the sum of a cable part number (included in column D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E) column



Sorry my question was not clear. I tried "countif" and "countifs" prior to my first post, but got error messages.


Let me try to be more clear.

In the first column I have three different cable part numbers (call them x,
y & Z), and adjacent to each number is the length of the cable (0.25m, 0.5m,
1m, 2m, etc).

Like this:

| D | E
2|Cable # | Length
3| x | 0.25m
4| z | 2m
5| x | 1m
6| x | 0.25m
7| y | 2m
8| x | 0.25m

I need to determine the quantity of part number/length for a bill of
material. I have several sheets in this document, so the quantities will
grow quite large, and I need to automate the process for speed and accuracy.

Does this help?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default excel-count a value in 1 column if a value in a 2nd is true

So for PN X you want to know there are three 0.25m cables?

I tried "countif" and "countifs"


So you're using Excel 2007?

G3 = some part number like x
H3 = some size like 0.25m

=COUNTIFS(D3:D42,G3,E3:E42,H3)

This one will work in any version of Excel:

=SUMPRODUCT(--(D3:D42=G3),--(E3:E42=H3))

--
Biff
Microsoft Excel MVP


"Jim C." wrote in message
...


"T. Valko" wrote:

Not real clear what you want.

Do you want the total length of cable for a specific part number?

Try something like this...

G3 = some part number

=SUMIF(D3:D42,G3,E3:E42)

--
Biff
Microsoft Excel MVP


"Jim C." wrote in message
...
I need to calculate the sum of a cable part number (included in column
D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E)
column



Sorry my question was not clear. I tried "countif" and "countifs" prior
to my first post, but got error messages.


Let me try to be more clear.

In the first column I have three different cable part numbers (call them
x,
y & Z), and adjacent to each number is the length of the cable (0.25m,
0.5m,
1m, 2m, etc).

Like this:

| D | E
2|Cable # | Length
3| x | 0.25m
4| z | 2m
5| x | 1m
6| x | 0.25m
7| y | 2m
8| x | 0.25m

I need to determine the quantity of part number/length for a bill of
material. I have several sheets in this document, so the quantities will
grow quite large, and I need to automate the process for speed and
accuracy.

Does this help?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default excel-count a value in 1 column if a value in a 2nd is true

Could you expand on this? Do you need the COUNT of the number of a
particular cable part num which also has a certain length? Will you
use a cell to hold the part number and another to hold the length? If
so which cells?

Pete

On Aug 28, 6:33*pm, Jim C. wrote:
I need to calculate the sum of a cable part number (included in column D3
thru D42) DEPENDENT ON the length of the cable in the adjacent (E) column


Reply
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
Count if ('true) does not work JMod Excel Worksheet Functions 4 January 18th 06 03:18 AM
How do I stop Excel from changing the word true to TRUE? Schmyerlou Excel Discussion (Misc queries) 1 November 23rd 05 08:54 PM
Count Occurances if two conditions true Ed Gregory Excel Worksheet Functions 5 September 8th 05 07:26 PM
How do I count something that has two fields that must be true Charles Excel Discussion (Misc queries) 1 August 25th 05 05:45 PM
Count if 2 conditions are true Thrava Excel Worksheet Functions 2 July 21st 05 01:56 AM


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