Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dinesh
 
Posts: n/a
Default please help how to combine IF function with Countif function

Hi,

When I enter the formula which is at the end, I get the result of 3 in Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default please help how to combine IF function with Countif function

Hi!

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"))

Biff

"Dinesh" wrote in message
...
Hi,

When I enter the formula which is at the end, I get the result of 3 in Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dinesh
 
Posts: n/a
Default please help how to combine IF function with Countif function

What if I want to add the values which is on Col E,rows 13 to 24. I tried
putting =sum(e13:e24),if(sumproduct(--($C$13:$C$24="new"),--($D$13:$D$24="A"))
It didn't work.

Thanks in advance.


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"))

Biff

"Dinesh" wrote in message
...
Hi,

When I enter the formula which is at the end, I get the result of 3 in Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default please help how to combine IF function with Countif function

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"),$E$13:$E$24)

Biff

"Dinesh" wrote in message
...
What if I want to add the values which is on Col E,rows 13 to 24. I tried
putting
=sum(e13:e24),if(sumproduct(--($C$13:$C$24="new"),--($D$13:$D$24="A"))
It didn't work.

Thanks in advance.


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"))

Biff

"Dinesh" wrote in message
...
Hi,

When I enter the formula which is at the end, I get the result of 3 in
Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh









  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dinesh
 
Posts: n/a
Default please help how to combine IF function with Countif function

Thanks Biff.

"Biff" wrote:

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"),$E$13:$E$24)

Biff

"Dinesh" wrote in message
...
What if I want to add the values which is on Col E,rows 13 to 24. I tried
putting
=sum(e13:e24),if(sumproduct(--($C$13:$C$24="new"),--($D$13:$D$24="A"))
It didn't work.

Thanks in advance.


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"))

Biff

"Dinesh" wrote in message
...
Hi,

When I enter the formula which is at the end, I get the result of 3 in
Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh












  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default please help how to combine IF function with Countif function

You're welcome!

Biff

"Dinesh" wrote in message
...
Thanks Biff.

"Biff" wrote:

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"),$E$13:$E$24)

Biff

"Dinesh" wrote in message
...
What if I want to add the values which is on Col E,rows 13 to 24. I
tried
putting
=sum(e13:e24),if(sumproduct(--($C$13:$C$24="new"),--($D$13:$D$24="A"))
It didn't work.

Thanks in advance.


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--($C$13:$C$24="new"),--($D$13:$D$24="A"))

Biff

"Dinesh" wrote in message
...
Hi,

When I enter the formula which is at the end, I get the result of 3
in
Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh












  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dinesh
 
Posts: n/a
Default please help how to combine IF function with Countif function

thanks. it works.


"Dinesh" wrote:

Hi,

When I enter the formula which is at the end, I get the result of 3 in Col
B, row 2 instead of 2.


Category New Term
A 2
B
C
D
E
F



New A
New A
New B
Term B
Term E
New F
Term D
Term C
Term C
New F
New B
Term A

{=IF($C$13:$C$24="new",COUNTIF($D$13:$D$24,"A"))}

Thank you for taking time to solve the formula.

Dinesh




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
can you use countif function for noncontiguous cells rutledbr Excel Worksheet Functions 2 November 13th 05 09:15 PM
Combine two or more columns by using a function Bagia Excel Discussion (Misc queries) 2 November 11th 05 07:21 PM
IF Function or Countif Sue Excel Worksheet Functions 3 August 26th 05 01:42 AM
COUNTIF FUNCTION David Harrison Excel Worksheet Functions 4 June 15th 05 01:43 PM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


All times are GMT +1. The time now is 04:33 PM.

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"