#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mehta Mehta
 
Posts: n/a
Default Count formula

Hi,

I need someone to pull a count formula together for me.

I have the following string of dats

Col
A B C

R 1
R
R 50 5
N 6 12
N 2
N 9 4


I need to count how many values are in column B for R and N. So Column B
will return 2 for R and 3 for N and in Column C 1 for R and 2 for N's.

Can you please provide an answer.

Thanks

--
hm
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default Count formula

Assuming column a contains only R's and N's (and nothing else),
you can use the following formula in column D2, and copy down:
=B2*(IF(A2="R";2;3))+C2*(IF(A2="R";1;2))

HTH
--
AP

"Mehta Mehta" a écrit dans le message
de ...
Hi,

I need someone to pull a count formula together for me.

I have the following string of dats

Col
A B C

R 1
R
R 50 5
N 6 12
N 2
N 9 4


I need to count how many values are in column B for R and N. So Column B
will return 2 for R and 3 for N and in Column C 1 for R and 2 for N's.

Can you please provide an answer.

Thanks

--
hm



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count formula

=SUMPRODUCT(--(A1:A100="R"),--(B1:B100<""))

=SUMPRODUCT(--(A1:A100="R"),--(C1:C100<""))

etc.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Mehta Mehta" wrote in message
...
Hi,

I need someone to pull a count formula together for me.

I have the following string of dats

Col
A B C

R 1
R
R 50 5
N 6 12
N 2
N 9 4


I need to count how many values are in column B for R and N. So Column B
will return 2 for R and 3 for N and in Column C 1 for R and 2 for N's.

Can you please provide an answer.

Thanks

--
hm



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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula for If Term is on Certain Date then Count Krisjhn Excel Worksheet Functions 3 August 30th 05 07:57 PM
More Help Needed with Count formula Greegan Excel Worksheet Functions 4 July 31st 05 06:31 PM
Count If formula Jo Davis Excel Discussion (Misc queries) 6 May 19th 05 01:59 PM
Count numbers formed from another formula Stephen Excel Discussion (Misc queries) 4 April 5th 05 02:30 AM


All times are GMT +1. The time now is 02:25 AM.

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"