PC Review


Reply
 
 
juanpablo
Guest
Posts: n/a
 
      7th Apr 2008
Is it possible to have the AVG and also at the same time the SUM on the
status bar of Excel.

JP
 
Reply With Quote
 
 
 
 
Alan
Guest
Posts: n/a
 
      7th Apr 2008
No, I don't think so.
Regards,
Alan.
"juanpablo" <(E-Mail Removed)> wrote in message
news:B6504489-EE64-4E24-BE6C-(E-Mail Removed)...
> Is it possible to have the AVG and also at the same time the SUM on the
> status bar of Excel.
>
> JP


 
Reply With Quote
 
Lars-Åke Aspelin
Guest
Posts: n/a
 
      7th Apr 2008
On Mon, 7 Apr 2008 13:32:01 -0700, juanpablo
<(E-Mail Removed)> wrote:

>Is it possible to have the AVG and also at the same time the SUM on the
>status bar of Excel.
>
>JP



If you have Excel2007 you may customize the status bar to do this and
more.

/ Lars-Åke
 
Reply With Quote
 
Jack Sons
Guest
Posts: n/a
 
      8th Apr 2008
Juanpablo,

Yes, it is.
I got the wonderful code you see below, I think from a MVP.
Put it in the This Workbook module of your personal.xls.
Beside AVG and SUM, you also get count, count nums, max and min.

Jack.
------------------------------------------------------------------------------------------------------
Option Explicit
Public WithEvents xlApp As Application
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Set xlApp = Nothing
Application.DisplayStatusBar = True
End Sub
Private Sub Workbook_Open()
Set xlApp = Application

End Sub

Private Sub xlApp_SheetSelectionChange(ByVal Sh As Object, ByVal Target As
Range)

On Error Resume Next
If Target.Count < 2 Then
Application.StatusBar = False
Else
Application.StatusBar = _
"Average=" & Round(Application.Average(Target), 2) & _
"; " & _
"Count=" & Application.CountA(Target) & "; " & _
"Count nums=" & Application.Count(Target) & _
"; " & _
"Sum=" & Format(Round(Application.sum(Target), 2),
"#,##0.00") & "; " & _
"Max=" & Application.Max(Target) & "; " & _
"Min=" & Application.Min(Target)
End If
End Sub
---------------------------------------------------------------------------


"juanpablo" <(E-Mail Removed)> schreef in bericht
news:B6504489-EE64-4E24-BE6C-(E-Mail Removed)...
> Is it possible to have the AVG and also at the same time the SUM on the
> status bar of Excel.
>
> JP



 
Reply With Quote
 
Alan
Guest
Posts: n/a
 
      8th Apr 2008
Excellent! Thank you,
Alan.
"Jack Sons" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Juanpablo,
>
> Yes, it is.
> I got the wonderful code you see below, I think from a MVP.
> Put it in the This Workbook module of your personal.xls.
> Beside AVG and SUM, you also get count, count nums, max and min.
>
> Jack.
> ------------------------------------------------------------------------------------------------------
> Option Explicit
> Public WithEvents xlApp As Application
> Private Sub Workbook_BeforeClose(Cancel As Boolean)
> Set xlApp = Nothing
> Application.DisplayStatusBar = True
> End Sub
> Private Sub Workbook_Open()
> Set xlApp = Application
>
> End Sub
>
> Private Sub xlApp_SheetSelectionChange(ByVal Sh As Object, ByVal Target As
> Range)
>
> On Error Resume Next
> If Target.Count < 2 Then
> Application.StatusBar = False
> Else
> Application.StatusBar = _
> "Average=" & Round(Application.Average(Target), 2) & _
> "; " & _
> "Count=" & Application.CountA(Target) & "; " & _
> "Count nums=" & Application.Count(Target) & _
> "; " & _
> "Sum=" & Format(Round(Application.sum(Target), 2),
> "#,##0.00") & "; " & _
> "Max=" & Application.Max(Target) & "; " & _
> "Min=" & Application.Min(Target)
> End If
> End Sub
> ---------------------------------------------------------------------------
>
>
> "juanpablo" <(E-Mail Removed)> schreef in bericht
> news:B6504489-EE64-4E24-BE6C-(E-Mail Removed)...
>> Is it possible to have the AVG and also at the same time the SUM on the
>> status bar of Excel.
>>
>> JP

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:36 AM.