Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Crios Crios is offline
external usenet poster
 
Posts: 25
Default count table non empty cells

Hi
Layout: WXP SP3, Office 2003.

I have a table that has checkmarks in some of it's cells (one character per
cell) . I want to use a formula field in the last cell of each column that
counts the non empty cells (the ones with checkmarks) from that column.

Thanx

Crios


  #2   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default count table non empty cells

Exactly what are the checkmarks? Are they FormFields as used in document
that is protected for filling in forms?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Crios" wrote in message
...
Hi
Layout: WXP SP3, Office 2003.

I have a table that has checkmarks in some of it's cells (one character
per cell) . I want to use a formula field in the last cell of each column
that counts the non empty cells (the ones with checkmarks) from that
column.

Thanx

Crios

  #3   Report Post  
Posted to microsoft.public.word.newusers
Crios Crios is offline
external usenet poster
 
Posts: 25
Default count table non empty cells

Plain characters (one char per cell - may be replaced with an "x"). Simple
table, no forms, no protection. The issue a field with a formula for
counting non empty cells from each column.

"Doug Robbins - Word MVP" wrote in message
...
Exactly what are the checkmarks? Are they FormFields as used in document
that is protected for filling in forms?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Crios" wrote in message
...
Hi
Layout: WXP SP3, Office 2003.

I have a table that has checkmarks in some of it's cells (one character
per cell) . I want to use a formula field in the last cell of each column
that counts the non empty cells (the ones with checkmarks) from that
column.

Thanx

Crios



  #4   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default count table non empty cells

With the selection in the table, run a macro that contains the following
code:

Dim i As Long, j As Long, k As Long
With Selection.Tables(1)
'Assumes there is a header row
'Replace 2 with 1 in next line if not.
For i = 2 To .Rows.Count
With .Rows(i)
k = 0
For j = 1 To .Cells.Count - 1
If Len(.Cells(j).Range.Text) 2 Then
k = k + 1
End If
Next j
.Cells(.Cells.Count).Range.Text = k
End With
Next i
End With

If you do not know what to do with the above, See
http://www.gmayor.com/installing_macro.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Crios" wrote in message
...
Plain characters (one char per cell - may be replaced with an "x"). Simple
table, no forms, no protection. The issue a field with a formula for
counting non empty cells from each column.

"Doug Robbins - Word MVP" wrote in message
...
Exactly what are the checkmarks? Are they FormFields as used in document
that is protected for filling in forms?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Crios" wrote in message
...
Hi
Layout: WXP SP3, Office 2003.

I have a table that has checkmarks in some of it's cells (one character
per cell) . I want to use a formula field in the last cell of each
column that counts the non empty cells (the ones with checkmarks) from
that column.

Thanx

Crios



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Number of Selected Cells In A Table? Hapless Tables 2 September 23rd 08 12:25 PM
defining table cells using empty lines Jo McKenzie New Users 3 March 12th 08 04:48 PM
White Lines / Empty Spaces above/below cells next to cells with bo Gowgirl4 Tables 1 October 9th 07 06:38 PM
Empty cells in data source Shan Mailmerge 3 July 14th 05 10:04 PM
Count non-blank cells in a table column Bradley C. Hammerstrom New Users 4 December 14th 04 01:47 AM


All times are GMT +1. The time now is 12:35 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"