Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Need formula to count blank cells

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Need formula to count blank cells

=(12-COUNTBLANK(B1:M1))/12
--
Gary''s Student - gsnu200904


"George" wrote:

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Need formula to count blank cells

Try the below and format the formula cell to %
=COUNTIF(B1:M1,"X")/12

OR

=COUNTA(B1:M1)/12

If this post helps click Yes
---------------
Jacob Skaria


"George" wrote:

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Need formula to count blank cells

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"George" wrote:

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Need formula to count blank cells

Sorry. please ignore the below post..
--
If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

If I understand you correctly;

Cells(1, ActiveCell.Column)

will give you the value of cell 1 or Row1 of the active cell/column

reportWS.Range("D" & reportCurrentRow) = Cells(1, ActiveCell.Column)


If this post helps click Yes
---------------
Jacob Skaria


"George" wrote:

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Need formula to count blank cells

They all work - Always more then one way to skin a cat !

Thanks - Greatly Appreciated


"George" wrote:

Need help to create a formula to show percentage of how many time
each person attended training each year - requirement is once a month.

Down column "A" are their names, columns "B1" thru "M1" are the 12 months.
If they show for their monthly class I place an X in the cell if not I leave
it blank. In Coulmn "N" for each person I am looking to enter a formula that
will basically count the blank cells - subtract that from 12 and then divide
that value by 12 which should give me the percentage of times that they
showed up for class that year.

If that makes sense !

Thanks - George

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
COUNTA ----- FORMULA WILL NOT COUNT NON BLANK CELLS mrp Excel Discussion (Misc queries) 2 July 25th 07 11:12 PM
Befuddled by Count blank cells Formula! [email protected] Excel Worksheet Functions 2 May 29th 07 09:01 PM
How to count blank cells that contain formula? IntricateFool Excel Discussion (Misc queries) 5 June 8th 06 02:45 PM
how can I count blank cells as a zero, when using formula please?? Ted Excel Worksheet Functions 5 November 22nd 05 06:14 PM
formula to count cells not blanK pmarques Excel Worksheet Functions 4 August 3rd 05 01:44 PM


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