LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
RLN RLN is offline
external usenet poster
 
Posts: 3
Default How do you count specific values in a row

Excel 2003
I have a row of data in Excel that is in Row 4 from Column B to Column AF.

In this row, some cells contain the value "X", some contain the value "O",
and yet other cells in this row will contain other text data.

I tried the COUNTA function but that counts every cell that has a non-null
value. I need more spoecific information than that. I also tried it with an
immediate if, but somehow got the syntax incorrect.

Per my example above, is there a way in VBA to count across row 4 (from cell
B4 to cell AF4 how many cells contain the value of "X" and place that in cell
A5 and count how many cells contain the value of "O" and place that value in
cell A6?


Thanks.
 
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 specific subtotal values only katagrga Excel Discussion (Misc queries) 8 May 1st 09 01:29 PM
Count zero values before specific date lesg46 Excel Worksheet Functions 6 January 24th 09 11:05 PM
Count the number of specific values in a cell Kevin Excel Worksheet Functions 4 June 3rd 05 04:20 AM
Trying to count specific values JanetP3810 Excel Worksheet Functions 1 April 27th 05 11:46 PM
How do I count my data that are between specific values? LDC Excel Worksheet Functions 3 November 16th 04 11:14 PM


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