#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Count if

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,722
Default Count if

You might want to take a look at the OR/AND functions (XL help file). For
what you have so far:
=IF(OR(A1=A2,A2<A3),1,0)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ecf123" wrote:

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,560
Default Count if

Hi,

I am trying to count the cells in a column ending with a particular letter.
Cells contain alphanumeric values. For ex: =COUNTIF(W5:W7,"*P") This is
giving zero as the answer instead of 2. Please help..


"Luke M" wrote:

You might want to take a look at the OR/AND functions (XL help file). For
what you have so far:
=IF(OR(A1=A2,A2<A3),1,0)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ecf123" wrote:

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,572
Default Count if

You probably have invisible characters *after* the final "P".

Maybe <Space or the non-breaking, often used web space, Char(160).

Do a character count of one of the cells in question,
=Len(a1)
and compare the number to what you can see.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"David" wrote in message
...
Hi,

I am trying to count the cells in a column ending with a particular letter.
Cells contain alphanumeric values. For ex: =COUNTIF(W5:W7,"*P") This is
giving zero as the answer instead of 2. Please help..


"Luke M" wrote:

You might want to take a look at the OR/AND functions (XL help file). For
what you have so far:
=IF(OR(A1=A2,A2<A3),1,0)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ecf123" wrote:

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Count if


ecf123;423499 Wrote:
I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECFyou want to count entries where? in what range? where would you like the

formula to go?

2 ways of doing it in B1 (or wherever)
=IF(A1=A2,1,IF(A1<A2,0,IF(A2<A3,1,0))) or =IF(OR(A1=A2,A2<A3),1,0)


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=117750



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,276
Default Count if

Hi,
if(OR(a1=a2,a2<a3),1,0)

"ecf123" wrote:

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,572
Default Count if

=--OR(A1=A2,A2<A3)
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"ecf123" wrote in message
...
I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF


  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,346
Default Count if

Hi,

Let me be a stickler - if A2=A3 what happens?

As asked you might write

=--AND(A1=A2,A2<A3)

or


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"ecf123" wrote:

I trying to count enties with different conditions
example
if this A1=A2,1, if A1<A2,0, if A2<A3,1
can somebody help me setting up this formula
--
Thanks ECF

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 Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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