VBA-Summing Data in Table in Ms word Contains Text. etc..

Susanto3311
3StarLounger
Posts: 240
Joined: 17 Feb 2022, 05:16

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by Susanto3311 »

hi paul, thank you very much!!

Susanto3311
3StarLounger
Posts: 240
Joined: 17 Feb 2022, 05:16

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by Susanto3311 »

hi paul, how average for adjacent column?
with your formula the all result are same. should not like that.
You do not have the required permissions to view the files attached to this post.

User avatar
macropod
4StarLounger
Posts: 508
Joined: 17 Dec 2010, 03:14

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by macropod »

Clearly, you have to adjust the column references...
Paul Edstein
[Fmr MS MVP - Word]

Susanto3311
3StarLounger
Posts: 240
Joined: 17 Feb 2022, 05:16

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by Susanto3311 »

hi paul,..i am sill confuse how to set for another column cause the same lines (lines 40 & 47) but different column as target.

User avatar
macropod
4StarLounger
Posts: 508
Joined: 17 Dec 2010, 03:14

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by macropod »

For example:
{=AVERAGE(C40,D47)}
...
{=AVERAGE(E40,F47)}
...
{=AVERAGE(G40,H47)}
...
{=AVERAGE(I40,J47)}

Word is not like Excel - you can't simply copy the formula from one column to the next and have the cell references update - the cell references all have to be individually typed.
Paul Edstein
[Fmr MS MVP - Word]

Susanto3311
3StarLounger
Posts: 240
Joined: 17 Feb 2022, 05:16

Re: VBA-Summing Data in Table in Ms word Contains Text. etc..

Post by Susanto3311 »

hi paul, thank you