Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Count on conditions for two Columns

HI All,

Thanks in advance for any help that can be provided on the question
below:

I need a function that will produce the total number of of a specific
device in Column A that corresponds with a specific value in column
B.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Count on conditions for two Columns

Personally, thinking it may be nicer if you have the requirements in a
separate table. So, assuming your list is in columns a and B, let's say your
required HDD is in D2 and required Status is in E2. In F2:

=SUMPRODUCT(--($A$2:$A$1000=D2),--($B$2:$B$1000=E2))

"MammaFin" wrote:

HI All,

Thanks in advance for any help that can be provided on the question
below:

I need a function that will produce the total number of of a specific
device in Column A that corresponds with a specific value in column
B.

E.G below column A represents a Hard Disk device of 133GB and Column B
represents if it is being used (Enabled) or not used (Unbound) - I
need to get the total number of 133GB devices that are in the
"Unbound" state.


HDD Status
133.6796875 Enabled
133.6796875 Enabled
133.6796875 Enabled
458.5957031 Enabled
458.5957031 Enabled
133.6796875 Enabled
133.6796875 Unbound
133.6796875 Unbound
133.6796875 Enabled
458.5957031 Unbound

Kind Regards,
Fin

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Count on conditions for two Columns

Try this:

=SUMPRODUCT((A1:A20=133.6796875)*(B1:B20="Unbound" ))

I've assumed you have 20 rows of data, so adjust the ranges if you
have more.

If you are likely to want other summary stats, then you can put the
variables in two cells, eg:

C1=133.6796875
D1=Unbound

then the formula becomes:

=SUMPRODUCT((A1:A20=C1)*(B1:B20=D1))

Hope this helps.

Pete

On Sep 2, 5:35*pm, MammaFin wrote:
HI All,

Thanks in advance for any help that can be provided on the question
below:

I need a function that will produce the total number of of a specific
device *in Column A that corresponds with a specific value in column
B.

E.G below column A represents a Hard Disk device of 133GB and Column B
represents if it is being used (Enabled) or not used (Unbound) - I
need to get the total number of 133GB devices that are in the
"Unbound" state.

HDD * * * * * * * * * * Status
133.6796875 * * Enabled
133.6796875 * * Enabled
133.6796875 * * Enabled
458.5957031 * * Enabled
458.5957031 * * Enabled
133.6796875 * * Enabled
133.6796875 * * Unbound
133.6796875 * * Unbound
133.6796875 * * Enabled
458.5957031 * * Unbound

Kind Regards,
Fin


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Count on conditions for two Columns

=SUMPRODUCT((INT(A2:A11)=133)*(B2:B11="Unbound"))



"MammaFin" wrote:

HI All,

Thanks in advance for any help that can be provided on the question
below:

I need a function that will produce the total number of of a specific
device in Column A that corresponds with a specific value in column
B.

E.G below column A represents a Hard Disk device of 133GB and Column B
represents if it is being used (Enabled) or not used (Unbound) - I
need to get the total number of 133GB devices that are in the
"Unbound" state.


HDD Status
133.6796875 Enabled
133.6796875 Enabled
133.6796875 Enabled
458.5957031 Enabled
458.5957031 Enabled
133.6796875 Enabled
133.6796875 Unbound
133.6796875 Unbound
133.6796875 Enabled
458.5957031 Unbound

Kind Regards,
Fin

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Count on conditions for two Columns

If I understand correctly, you wanted to count the devices having number
€œ133.6796875€ with the status €œUnbound€. If this is correct then you need
SUMIFS formula. Plz beware, this would only work with Excel 2007.

=COUNTIFS(A1:A10,"133.6796875", B1:B10,"Unbound")

This will give you the Total Number of devices having number €œ133.6796875€
with the status €œUnbound€.

--
Sheikh Saadi


"MammaFin" wrote:

HI All,

Thanks in advance for any help that can be provided on the question
below:

I need a function that will produce the total number of of a specific
device in Column A that corresponds with a specific value in column
B.

E.G below column A represents a Hard Disk device of 133GB and Column B
represents if it is being used (Enabled) or not used (Unbound) - I
need to get the total number of 133GB devices that are in the
"Unbound" state.


HDD Status
133.6796875 Enabled
133.6796875 Enabled
133.6796875 Enabled
458.5957031 Enabled
458.5957031 Enabled
133.6796875 Enabled
133.6796875 Unbound
133.6796875 Unbound
133.6796875 Enabled
458.5957031 Unbound

Kind Regards,
Fin

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 based on conditions in 2 or more columns Annie1904 Excel Worksheet Functions 3 November 28th 07 04:28 PM
how to count 2 date columns conditions. Sumeth Excel Discussion (Misc queries) 5 September 28th 07 10:20 AM
count pieces of records meet conditions in different columns Amy Excel Worksheet Functions 1 July 19th 07 10:39 AM
count all the columns in a range with certain conditions hopeace Excel Discussion (Misc queries) 3 October 18th 05 08:38 PM
count number of cells based on TWO conditions (2 different columns Troi-Xanh Excel Worksheet Functions 2 February 12th 05 12:46 AM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"