Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How can i countif in one cell for two different columns and two different
criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
the first part =SUMPRODUCT((A1:A5="x")*(B1:B5<0)) and also in case x and y is text in a specific cell I don't understand this bit. What answer do you expect to get from the posted data? Mike "Lala" wrote: How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0))
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
it isnt working :-(
I mean i have certain brand written in cells for example KFC, Pizza Hut, etc, Then i have the branch of these brand (i.e. KFC washington, KFC Chicago, Pizza Hut Los Angeles, etc.) lisetd all together in one column say A1:A500, then i have the corresponding returns of these branches listed in the column B1:B500 (i.e. 500, -300, 600, -200, etc.) How can i know how many KFC branches are losing and how much is the loss. I used sumif and countif and the wildcharacter * to determine the total returns of each brand and teh number of branches for each brand but cant go any further "Mike H" wrote: Hi, the first part =SUMPRODUCT((A1:A5="x")*(B1:B5<0)) and also in case x and y is text in a specific cell I don't understand this bit. What answer do you expect to get from the posted data? Mike "Lala" wrote: How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can anyone please help me with this, i really cant figure it out as i explained
"Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0)) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Don't despair, someone will help but I for one can't visualise you data layout. Upload copy of your worksheet to the site below and post the link. http://www.savefile.com/ Mike "Lala" wrote: Can anyone please help me with this, i really cant figure it out as i explained "Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0)) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I posted a sample file on this link. If u can help i shall be gratefull
http://www.savefile.com/files/1822437 "Mike H" wrote: Hi, Don't despair, someone will help but I for one can't visualise you data layout. Upload copy of your worksheet to the site below and post the link. http://www.savefile.com/ Mike "Lala" wrote: Can anyone please help me with this, i really cant figure it out as i explained "Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0)) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hI,
will this do? http://www.savefile.com/files/1822488 Mike "Lala" wrote: I posted a sample file on this link. If u can help i shall be gratefull http://www.savefile.com/files/1822437 "Mike H" wrote: Hi, Don't despair, someone will help but I for one can't visualise you data layout. Upload copy of your worksheet to the site below and post the link. http://www.savefile.com/ Mike "Lala" wrote: Can anyone please help me with this, i really cant figure it out as i explained "Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0)) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Actually it worked :-)
Thank u very much, i really needed it. Thanks again "Mike H" wrote: hI, will this do? http://www.savefile.com/files/1822488 Mike "Lala" wrote: I posted a sample file on this link. If u can help i shall be gratefull http://www.savefile.com/files/1822437 "Mike H" wrote: Hi, Don't despair, someone will help but I for one can't visualise you data layout. Upload copy of your worksheet to the site below and post the link. http://www.savefile.com/ Mike "Lala" wrote: Can anyone please help me with this, i really cant figure it out as i explained "Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=letter_cell),--(B2:B20<0)) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Lala" wrote in message ... How can i countif in one cell for two different columns and two different criteria i.e. A B 1 x 1 2 y -0 3 x 2 4 y 9 5 y -1 How can i know how many x are less than 0. and also in case x and y is text in a specific cell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using COUNTIF with Two or more Columns as Criteria | Excel Discussion (Misc queries) | |||
countif two columns two criteria | Excel Worksheet Functions | |||
COUNTIF with criteria in 2 columns | Excel Discussion (Misc queries) | |||
Countif using criteria in multiple columns | Excel Worksheet Functions | |||
Countif - Two Criteria in two columns are met. | Excel Discussion (Misc queries) |