"Counting filtered data." <Counting filtered
data.@discussions.microsoft.com> wrote in message
news:E31F9B08-CDC1-4BF4...@microsoft.com...
the function subtotal does not allow conditions (e.g. "name")
the function countif does it, but it count hidden cells, too
thank you for your ideas
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B100="A"))
--
Biff
Microsoft Excel MVP
"tommy" <to...@discussions.microsoft.com> wrote in message
news:D75D8700-C5D1-4ACD...@microsoft.com...
--
Biff
Microsoft Excel MVP
"tommy" <to...@discussions.microsoft.com> wrote in message
news:3689E1F1-14CA-4D51...@microsoft.com...
I’m hoping that someone can help me..
I am trying to count how many export has been done for each Region for July,
how many for August and so on.
I’ll try to make myself a bit clear. For example:
My first column (A1:A100) contains 10 different Regions (Netherlands, Italy,
Spain etc). The second column (B1:B100) contains months ( July, August,
September, October etc). I would like to know if there is formula to count
how many times Netherlands July appears in those 2 columns.
In both columns data must be chosen from a drop down menu..
Hope I made myself clear.. Can this be done ?
Thanks
Antonella
Is that a data validation drop down list (or maybe a combo box) or is it an
Auto Filter drop down?
--
Biff
Microsoft Excel MVP
"Antonella" <Anto...@discussions.microsoft.com> wrote in message
news:E524FB16-EC23-40E2...@microsoft.com...
Try this:
=SUMPRODUCT(--(A1:A100="Netherlands"),--(B1:B10="July"))
Better to use cells to hold the criteria.
D1 = Netherlands
E1 = July
=SUMPRODUCT(--(A1:A100=D1),--(B1:B100=E1))
--
Biff
Microsoft Excel MVP
"Antonella" <Anto...@discussions.microsoft.com> wrote in message
news:C4A6024B-5EFC-4099...@microsoft.com...
--
Biff
Microsoft Excel MVP
"Antonella" <Anto...@discussions.microsoft.com> wrote in message
news:CAF11EE1-94F3-46DA...@microsoft.com...
Need to add the number of unique numbers in a column.. for instance i might
have unit number PU114 listed 10 times in a spreadsheet but its only 1
unit..how can i create a formula to do this for me? also, anyway to do this
in a pivot table rather than a traditional count of lines?
See this:
http://contextures.com/xlPivot07.html#Unique
--
Biff
Microsoft Excel MVP
"Golfer2100" <Golfe...@discussions.microsoft.com> wrote in message
news:D4131D0E-FD84-42D3...@microsoft.com...
Steven
You can't use wildcards in this function.
Try this:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(LEFT(B2:B100,2="CL"))
--
Biff
Microsoft Excel MVP
"Steven j P" <Steven j P...@discussions.microsoft.com> wrote in message
news:6B857EC3-65B9-479A...@microsoft.com...
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(LEFT(B2:B100,2="CL"))
Needed to add 1 ")" to make it work, see below, Thanks again
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(LEFT(B2:B100,2)="CL"))
Steve
Yeah, that was my fault. <argh>
Thanks for the feedback!
--
Biff
Microsoft Excel MVP
"Steven j P" <Stev...@discussions.microsoft.com> wrote in message
news:1A7FD00A-4D15-4478...@microsoft.com...
You cannot have Total.xls and Monthly.xls in one workbook.
An *.xls is a single workbook.
Do you mean you have two worksheets named Total and Monthly in a workbook
named PM.xls
Is this latest problem you are posting in any way related to the original
posting about counting filtered items you and Biff have been working on?
Gord Dibben MS Excel MVP
I have not follwed the thread so not sure what you're asking for.
But you can calculate using linked cells.
Say sheet1 has these linked cells in A1:A3
=Sheet2!G1
=Sheet2!H2
=Sheet2!D1
Enter =SUM(A1:A3) in any cell on sheet1
If not clear to you, post some examples of linked cells and what type of
calculating you need done.
Gord
I wonder if someone can help me,
I am trying to count the number of individuals in two seperate columns on
the same spreadsheet based on values that are text and numbers, i.e. "in
column B1:B391 which are 'Con'" and "in column K1:K391 which have a value of
'1'".
i have tried the formula suggested below:
=SUMPRODUCT(--(A1:A100="Netherlands"),--(B1:B10="July"))
adapting this to:
=SUMPRODUCT(--(B1:B391="Con"),--(K1:K391="1"))
however this does not work.
Any help would be amazing
Many Thanks
Dominic
=SUMPRODUCT(--(B1:B391="Con"),--(K1:K391=1))
--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions
In article <9B72BF71-A97D-4B8F...@microsoft.com>,
Many Thanks
Dominic
"T. Valko" wrote:
> The use of the "sumproduct" formula confuses me and how it's applied.
I have a report at work that lists a number of categories for multiple
people. With the use of the "countif" formula I'm able to identify the
quantity associated with each category for the entire group. However, I want
to filter down to a particular individual and have the quantities now only
apply to that individual. Is there a way to combine the "countif" and
"subtotal" formulas to make this happen?
>
>
Thanks very much
--
Biff
Microsoft Excel MVP
"A Shuttle" <A Shu...@discussions.microsoft.com> wrote in message
news:AFA17DC1-63C0-4D16...@microsoft.com...
Also one quick note for other people trying to count TRUE or FALSE values, I
had to remove the double quotes - apparently Excel see's them as special
values, even though it doesn't seem to convert them to numbers (the way a
database does).
This worked for counting the number of TRUE's in a filtered list:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B100=TRUE))
TRUE and FALSE are special values in Excel. They're called Boolean values.
In Excel a Boolean TRUE and FALSE is different from a *text* entry of true
or false. If no special formatting has been applies a Boolean will appear in
the cell as all uppercase characters and centered in the cell.
--
Biff
Microsoft Excel MVP
"Dan W" <Dan W...@discussions.microsoft.com> wrote in message
news:A1B1C5E2-178C-44E2...@microsoft.com...
This expression will return an array of either TRUE or FALSE:
(B2:B100="A")
B2: X
B3: A
B4: A
B5: C
B2="A" = FALSE
B3="A" = TRUE
B4="A" = TRUE
B5="A" = FALSE
SUMPRODUCT calculates numbers so we have to convert those logical TRUE and
FALSE to numbers. The TWO adjacent minus signs, known as double unary, is
one way to do that.
--TRUE = 1
--FALSE = 0
--(B2="A") = 0
--(B3="A") = 1
--(B4="A") = 1
--(B5="A") = 0
So we end up with an array of 1s and 0s:
{0;1;1;0}
The result of the SUBTOTAL function is also an array of 1s and 0s. For
example: {0;1;1;1}.
These 2 arrays are then multiplied together to arrive at the final result of
the formula:
Subtotal......B2:B5="A"
{0;1;1;1}*{0;1;1;0}
0*0 = 0
1*1 = 1
1*1 = 1
1*0 = 0
SUMPRODUCT({0;1;1;0}) = 2
See this for more info:
http://xldynamic.com/source/xld.SUMPRODUCT.html
--
Biff
Microsoft Excel MVP
"David" <Da...@discussions.microsoft.com> wrote in message
news:9315649E-E731-4380...@microsoft.com...
Just a couple of minor changes should do the trick:
=SUMPRODUCT(SUBTOTAL(2,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B100=n))
Where n = the number to count. For example, to count the number of times 5
appears in the filtered (or unfiltered) range:
=SUMPRODUCT(SUBTOTAL(2,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B100=5))
--
Biff
Microsoft Excel MVP
"C Smith" <C Sm...@discussions.microsoft.com> wrote in message
news:C8D5A4F3-D080-499B...@microsoft.com...
I would like to know how or what function do I need to use on this kind of
problem. I am creating a template where the 2nd column B3:B50 has a drop down
option, so I'd like that Column to be counted examples on the drop down are .
NET - TNBA Callbacks and NRA - Montreal EMT.
Ex. if B2:B50 have (10) . NET - TNBA Callbacks it will appear (10) on J15
and if NRA - Montreal EMT have (3) it must appear (3) on J16.
hope that helps in explaining...its too hard to explain, I am wishing if I
could attach the file for better view..
thanks again.. waiting for your response
Assuming that means you have AutoFilter applied...
Try these:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B50,ROW(B3:B50)-ROW(B3),0,1)),--(B3:B50="NET
- TNBA Callbacks"))
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B50,ROW(B3:B50)-ROW(B3),0,1)),--(B3:B50="NRA
- Montreal EMT"))
--
Biff
Microsoft Excel MVP
"kosageinusha18" <kosagei...@discussions.microsoft.com> wrote in message
news:4767731A-8C3D-42EF...@microsoft.com...