Hello,

I wonder if it is possible to make a sheet work in tally chart form?

I have satisfaction questionnaires that come to me periodically. I want to
know if it is possible that excel can, rather than use '1' as the answer, add
this to whatever was in there before?

For example:
Cell contains I type in Automatically it adds
together
3 2 =5

If not any suggestions on the easiest way I can record this information?

Re: Is it possible? by JE

JE
Thu May 08 06:02:30 CDT 2008

see

http://www.mcgimpsey.com/excel/accumulator.html





In article <890A0B65-17CD-47FD-8B5B-CA3F647D48BB@microsoft.com>,
forevertrying <forevertrying@discussions.microsoft.com> wrote:

> Hello,
>
> I wonder if it is possible to make a sheet work in tally chart form?
>
> I have satisfaction questionnaires that come to me periodically. I want to
> know if it is possible that excel can, rather than use '1' as the answer, add
> this to whatever was in there before?
>
> For example:
> Cell contains I type in Automatically it adds
> together
> 3 2 =5
>
> If not any suggestions on the easiest way I can record this information?

Re: Is it possible? by Niek

Niek
Thu May 08 06:04:25 CDT 2008

Look here:

http://www.mcgimpsey.com/excel/accumulator.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"forevertrying" <forevertrying@discussions.microsoft.com> wrote in message
news:890A0B65-17CD-47FD-8B5B-CA3F647D48BB@microsoft.com...
| Hello,
|
| I wonder if it is possible to make a sheet work in tally chart form?
|
| I have satisfaction questionnaires that come to me periodically. I want to
| know if it is possible that excel can, rather than use '1' as the answer, add
| this to whatever was in there before?
|
| For example:
| Cell contains I type in Automatically it adds
| together
| 3 2 =5
|
| If not any suggestions on the easiest way I can record this information?



Re: Is it possible? by forevertrying

forevertrying
Thu May 08 06:26:00 CDT 2008

Thank you both, it works a treat... only one thing.

I'm going to need it to work several times in different areas of a worksheet.

Do I need to rewrite the whole code for each bit, or can I just add in at
some point through the code?

"Niek Otten" wrote:

> Look here:
>
> http://www.mcgimpsey.com/excel/accumulator.html
>
> --
> Kind regards,
>
> Niek Otten
> Microsoft MVP - Excel
>
> "forevertrying" <forevertrying@discussions.microsoft.com> wrote in message
> news:890A0B65-17CD-47FD-8B5B-CA3F647D48BB@microsoft.com...
> | Hello,
> |
> | I wonder if it is possible to make a sheet work in tally chart form?
> |
> | I have satisfaction questionnaires that come to me periodically. I want to
> | know if it is possible that excel can, rather than use '1' as the answer, add
> | this to whatever was in there before?
> |
> | For example:
> | Cell contains I type in Automatically it adds
> | together
> | 3 2 =5
> |
> | If not any suggestions on the easiest way I can record this information?
>
>
>

Re: Is it possible? by JE

JE
Thu May 08 06:51:09 CDT 2008

You didn't say which "whole code" you'd chosen, but in either case,
you'd need to rewrite it a bit to test for the multiple ranges.

You can only have one Worksheet_Change() routine in any worksheet code
module.

In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
forevertrying <forevertrying@discussions.microsoft.com> wrote:

> I'm going to need it to work several times in different areas of a worksheet.
>
> Do I need to rewrite the whole code for each bit, or can I just add in at
> some point through the code?

Re: Is it possible? by forevertrying

forevertrying
Thu May 08 07:11:03 CDT 2008

I've used:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Address(False, False) = "B3" Then
If IsNumeric(.Value) Then
Application.EnableEvents = False
Range("C3").Value = Range("C3").Value + .Value
Application.EnableEvents = True
End If
End If
End With
End Sub

If I can only use 1 Worksheet_Change() do you mean I can only apply this to
one other pair of cells?

I have around 30 or so that I want it to "tally" up for me.

Can you think of any other way I can get this done?

"JE McGimpsey" wrote:

> You didn't say which "whole code" you'd chosen, but in either case,
> you'd need to rewrite it a bit to test for the multiple ranges.
>
> You can only have one Worksheet_Change() routine in any worksheet code
> module.
>
> In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
> forevertrying <forevertrying@discussions.microsoft.com> wrote:
>
> > I'm going to need it to work several times in different areas of a worksheet.
> >
> > Do I need to rewrite the whole code for each bit, or can I just add in at
> > some point through the code?
>

Re: Is it possible? by JE

JE
Thu May 08 07:22:19 CDT 2008

One way:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim vValue As Variant
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(.Cells, Range("A1,A4:A7,J10")) Is Nothing Then
vValue = .Value
If IsNumeric(vValue) Then
Application.EnableEvents = False
With .Offset(0, 1)
.Value = .Value + vValue
End With
Application.EnableEvents = True
End If
End If
End With
End Sub


In article <A809A9A3-8691-4537-B6DB-35DA1B69A6FE@microsoft.com>,
forevertrying <forevertrying@discussions.microsoft.com> wrote:

> I've used:
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> With Target
> If .Address(False, False) = "B3" Then
> If IsNumeric(.Value) Then
> Application.EnableEvents = False
> Range("C3").Value = Range("C3").Value + .Value
> Application.EnableEvents = True
> End If
> End If
> End With
> End Sub
>
> If I can only use 1 Worksheet_Change() do you mean I can only apply this to
> one other pair of cells?
>
> I have around 30 or so that I want it to "tally" up for me.
>
> Can you think of any other way I can get this done?
>
> "JE McGimpsey" wrote:
>
> > You didn't say which "whole code" you'd chosen, but in either case,
> > you'd need to rewrite it a bit to test for the multiple ranges.
> >
> > You can only have one Worksheet_Change() routine in any worksheet code
> > module.
> >
> > In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
> > forevertrying <forevertrying@discussions.microsoft.com> wrote:
> >
> > > I'm going to need it to work several times in different areas of a
> > > worksheet.
> > >
> > > Do I need to rewrite the whole code for each bit, or can I just add in at
> > > some point through the code?
> >

Re: Is it possible? by forevertrying

forevertrying
Thu May 08 07:54:02 CDT 2008

I'm really sorry to be a pain

The cell references you've used. What are they? I mean, if you can explain
to me why they are written like that I can sort them out for my worksheet

Thanks

"JE McGimpsey" wrote:

> One way:
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> Dim vValue As Variant
> With Target
> If .Count > 1 Then Exit Sub
> If Not Intersect(.Cells, Range("A1,A4:A7,J10")) Is Nothing Then
> vValue = .Value
> If IsNumeric(vValue) Then
> Application.EnableEvents = False
> With .Offset(0, 1)
> .Value = .Value + vValue
> End With
> Application.EnableEvents = True
> End If
> End If
> End With
> End Sub
>
>
> In article <A809A9A3-8691-4537-B6DB-35DA1B69A6FE@microsoft.com>,
> forevertrying <forevertrying@discussions.microsoft.com> wrote:
>
> > I've used:
> >
> > Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> > With Target
> > If .Address(False, False) = "B3" Then
> > If IsNumeric(.Value) Then
> > Application.EnableEvents = False
> > Range("C3").Value = Range("C3").Value + .Value
> > Application.EnableEvents = True
> > End If
> > End If
> > End With
> > End Sub
> >
> > If I can only use 1 Worksheet_Change() do you mean I can only apply this to
> > one other pair of cells?
> >
> > I have around 30 or so that I want it to "tally" up for me.
> >
> > Can you think of any other way I can get this done?
> >
> > "JE McGimpsey" wrote:
> >
> > > You didn't say which "whole code" you'd chosen, but in either case,
> > > you'd need to rewrite it a bit to test for the multiple ranges.
> > >
> > > You can only have one Worksheet_Change() routine in any worksheet code
> > > module.
> > >
> > > In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
> > > forevertrying <forevertrying@discussions.microsoft.com> wrote:
> > >
> > > > I'm going to need it to work several times in different areas of a
> > > > worksheet.
> > > >
> > > > Do I need to rewrite the whole code for each bit, or can I just add in at
> > > > some point through the code?
> > >
>

Re: Is it possible? by forevertrying

forevertrying
Thu May 08 08:18:01 CDT 2008

Actually, I figured it out!

Thank you so much for your help!

"JE McGimpsey" wrote:

> One way:
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> Dim vValue As Variant
> With Target
> If .Count > 1 Then Exit Sub
> If Not Intersect(.Cells, Range("A1,A4:A7,J10")) Is Nothing Then
> vValue = .Value
> If IsNumeric(vValue) Then
> Application.EnableEvents = False
> With .Offset(0, 1)
> .Value = .Value + vValue
> End With
> Application.EnableEvents = True
> End If
> End If
> End With
> End Sub
>
>
> In article <A809A9A3-8691-4537-B6DB-35DA1B69A6FE@microsoft.com>,
> forevertrying <forevertrying@discussions.microsoft.com> wrote:
>
> > I've used:
> >
> > Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> > With Target
> > If .Address(False, False) = "B3" Then
> > If IsNumeric(.Value) Then
> > Application.EnableEvents = False
> > Range("C3").Value = Range("C3").Value + .Value
> > Application.EnableEvents = True
> > End If
> > End If
> > End With
> > End Sub
> >
> > If I can only use 1 Worksheet_Change() do you mean I can only apply this to
> > one other pair of cells?
> >
> > I have around 30 or so that I want it to "tally" up for me.
> >
> > Can you think of any other way I can get this done?
> >
> > "JE McGimpsey" wrote:
> >
> > > You didn't say which "whole code" you'd chosen, but in either case,
> > > you'd need to rewrite it a bit to test for the multiple ranges.
> > >
> > > You can only have one Worksheet_Change() routine in any worksheet code
> > > module.
> > >
> > > In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
> > > forevertrying <forevertrying@discussions.microsoft.com> wrote:
> > >
> > > > I'm going to need it to work several times in different areas of a
> > > > worksheet.
> > > >
> > > > Do I need to rewrite the whole code for each bit, or can I just add in at
> > > > some point through the code?
> > >
>

Re: Is it possible? by forevertrying

forevertrying
Thu May 08 08:57:04 CDT 2008

AAAAGGGGGHHHHH!!! ;o)

It just suddenly stopped working. I was trying to protect some of the cells
and then when I went back afterwards, it wouldn't work! Any ideas?

Also, is it possible to protect the cells that are going to retain the
accumulative figure from being deleted? Whatever I did last time clearly
wasn't right.

"JE McGimpsey" wrote:

> One way:
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> Dim vValue As Variant
> With Target
> If .Count > 1 Then Exit Sub
> If Not Intersect(.Cells, Range("A1,A4:A7,J10")) Is Nothing Then
> vValue = .Value
> If IsNumeric(vValue) Then
> Application.EnableEvents = False
> With .Offset(0, 1)
> .Value = .Value + vValue
> End With
> Application.EnableEvents = True
> End If
> End If
> End With
> End Sub
>
>
> In article <A809A9A3-8691-4537-B6DB-35DA1B69A6FE@microsoft.com>,
> forevertrying <forevertrying@discussions.microsoft.com> wrote:
>
> > I've used:
> >
> > Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> > With Target
> > If .Address(False, False) = "B3" Then
> > If IsNumeric(.Value) Then
> > Application.EnableEvents = False
> > Range("C3").Value = Range("C3").Value + .Value
> > Application.EnableEvents = True
> > End If
> > End If
> > End With
> > End Sub
> >
> > If I can only use 1 Worksheet_Change() do you mean I can only apply this to
> > one other pair of cells?
> >
> > I have around 30 or so that I want it to "tally" up for me.
> >
> > Can you think of any other way I can get this done?
> >
> > "JE McGimpsey" wrote:
> >
> > > You didn't say which "whole code" you'd chosen, but in either case,
> > > you'd need to rewrite it a bit to test for the multiple ranges.
> > >
> > > You can only have one Worksheet_Change() routine in any worksheet code
> > > module.
> > >
> > > In article <F1F73F87-ECE2-436F-8134-E5D0B2B710E3@microsoft.com>,
> > > forevertrying <forevertrying@discussions.microsoft.com> wrote:
> > >
> > > > I'm going to need it to work several times in different areas of a
> > > > worksheet.
> > > >
> > > > Do I need to rewrite the whole code for each bit, or can I just add in at
> > > > some point through the code?
> > >
>

Re: Is it possible? by JE

JE
Thu May 08 16:11:01 CDT 2008

The

"A1,A4:A7,J10"

refers to cell A1, cells A4 through A7, and cell J10



I just randomly picked them.

In article <6E6C4D7C-9AAE-4E9B-952A-B105A3582C2D@microsoft.com>,
forevertrying <forevertrying@discussions.microsoft.com> wrote:

> I'm really sorry to be a pain
>
> The cell references you've used. What are they? I mean, if you can explain
> to me why they are written like that I can sort them out for my worksheet
>
> Thanks
>
> "JE McGimpsey" wrote:
>
> > One way:
> >
> > Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> > Dim vValue As Variant
> > With Target
> > If .Count > 1 Then Exit Sub
> > If Not Intersect(.Cells, Range("A1,A4:A7,J10")) Is Nothing Then
> > vValue = .Value
> > If IsNumeric(vValue) Then
> > Application.EnableEvents = False
> > With .Offset(0, 1)
> > .Value = .Value + vValue
> > End With
> > Application.EnableEvents = True
> > End If
> > End If
> > End With
> > End Sub