Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Count non consecutive columns

Hello - hoping someone can help me out.

I have a worksheet with a number of columns and I am attempting to
count the occurances where the value is =100% in columns headed "% of
Target Achieved" on a row-by-row basis.

The value in these columns will either be a % (positive or negative) or
"-"
Values in other columns that I do not want included are numbers or
blank.

Thankyou

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Count non consecutive columns

Hi,

Assuming that the data that you would like to count is on the collumn C, so:

try countif(C2:c1000;"=100%")

hope it helps

Regards
Marcelo - Brazil

" escreveu:

Hello - hoping someone can help me out.

I have a worksheet with a number of columns and I am attempting to
count the occurances where the value is =100% in columns headed "% of
Target Achieved" on a row-by-row basis.

The value in these columns will either be a % (positive or negative) or
"-"
Values in other columns that I do not want included are numbers or
blank.

Thankyou


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Count non consecutive columns

Thanks Marcelo - but the data is across a number of columns:
eg:
A B C D E F G
Person A 52 126 42% 36 151 24%
Person B 0 100% 70 93 75%

If it makes it easier - it's every 3rd column that I need to get the
data to count (ie columns D G J M P etc).

So what I'm trying to end up with is row 1 (Person A) would have a
count of 0, row 2 would have a count of 1.

Megan

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count non consecutive columns

Forgot the second condition, so try

=SUMPRODUCT(--(B$1:M$1="% of Target achieved"),--(B2:M21))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

wrote in message
oups.com...
Hello - hoping someone can help me out.

I have a worksheet with a number of columns and I am attempting to
count the occurances where the value is =100% in columns headed "% of
Target Achieved" on a row-by-row basis.

The value in these columns will either be a % (positive or negative) or
"-"
Values in other columns that I do not want included are numbers or
blank.

Thankyou



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count non consecutive columns

=SUMIF(B$1:M$1,"% of Target Achieved",B2:M2)

and copy down

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

wrote in message
oups.com...
Hello - hoping someone can help me out.

I have a worksheet with a number of columns and I am attempting to
count the occurances where the value is =100% in columns headed "% of
Target Achieved" on a row-by-row basis.

The value in these columns will either be a % (positive or negative) or
"-"
Values in other columns that I do not want included are numbers or
blank.

Thankyou





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Count non consecutive columns

Bob - thankyou!! It seems to be counting the occurances of "-" though -
is there anyway I can have them count as 0?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count non consecutive columns

=SUMPRODUCT(--(B$1:M$1="% of Target
achieved"),--ISNUMBER(B2:M2),--(B2:M21))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

wrote in message
oups.com...
Bob - thankyou!! It seems to be counting the occurances of "-" though -
is there anyway I can have them count as 0?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Count non consecutive columns

Bob - you're a superstar. Thankyou very much.

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
How do I count values across multiple columns? [email protected] Excel Worksheet Functions 4 March 21st 06 11:13 PM
formula to count occurence of criteria in 2 columns needs help Excel Worksheet Functions 2 July 27th 05 09:17 PM
Function to Count Number of Consecutive Rows with a Specific Criteria? Templee1 Excel Worksheet Functions 2 July 10th 05 10:22 PM
Count Consecutive Cells Trapper via OfficeKB.com Excel Discussion (Misc queries) 6 May 24th 05 12:35 AM
How can i set consecutive columns in an excel worksheet to differ. Adam H Charts and Charting in Excel 2 February 25th 05 11:08 PM


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