Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default help with countif function

hi - I want to report a fixed value of '1' if the term 'defect raised'
appears in a range of cells, regardless of frequency.

the current formula I have is =COUNTIF(D49:M52,"defect raised")

but this reports the frequency instead of the value 1.

ie this should be a binary value - 1 if the term is present and 0 if
not.

no idea how to do this, any help appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default help with countif function

Try it with an IF, ie as:
=IF(COUNTIF(D49:M52,"defect raised"),1,0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Gareth Wretham" wrote in message
ups.com...
hi - I want to report a fixed value of '1' if the term 'defect raised'
appears in a range of cells, regardless of frequency.

the current formula I have is =COUNTIF(D49:M52,"defect raised")

but this reports the frequency instead of the value 1.

ie this should be a binary value - 1 if the term is present and 0 if
not.

no idea how to do this, any help appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default help with countif function

OP's reply:

--- Gareth wrote:

Thanks for this - it works.


--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
Function IF or COUNTIF JBee Excel Worksheet Functions 3 March 20th 07 02:43 PM
please help how to combine IF function with Countif function Dinesh Excel Worksheet Functions 6 March 30th 06 08:28 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
countif function lili Excel Worksheet Functions 1 July 29th 05 02:38 AM


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