Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default Status bar showing sum and count

I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?

Regards,
Madiya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Status bar showing sum and count

On Thu, 25 Sep 2008 21:11:26 -0700 (PDT), Madiya wrote:

I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?

Regards,
Madiya


Madiya,

You can try something like this (put the procedure in your worksheet's
code):
---
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Application.StatusBar = "Sum=" & _
Str(Application.WorksheetFunction.Sum(Target)) & _
"; Count=" & _
Str(Application.WorksheetFunction.Count(Target))
End Sub
---

HTH

B.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Status bar showing sum and count

In the customize status bar prior to xl2007 is limited unless you run some
of your own code. Xl2007 offers a lot more options.

--

Regards,
Nigel




"Madiya" wrote in message
...
I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?

Regards,
Madiya


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default Status bar showing sum and count

On Sep 26, 11:44*am, "Nigel" wrote:
In the customize status bar prior to xl2007 is limited unless you run some
of your own code. *Xl2007 offers a lot more options.

--

Regards,
Nigel


"Madiya" wrote in message

...



I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?


Regards,
Madiya- Hide quoted text -


- Show quoted text -


Thanks to both of you for help.
Boris,
However, I have a small problem.
The sheet I am working on is a dump from the SAP.
Due to this most of the cells are formatted as text.
The code you posted workes fine in general but if I select those text
formatted
cells, it shows count also = 0 instead of showing the count of cells
having anything like text.

Any fix for that?

Thanks,
Madiya
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Status bar showing sum and count

what i do is copy a blank cell. then select the cells formatted as text, right
click, select pastespecial then add. it will change them to numbers.



--


Gary


"Madiya" wrote in message
...
On Sep 26, 11:44 am, "Nigel" wrote:
In the customize status bar prior to xl2007 is limited unless you run some
of your own code. Xl2007 offers a lot more options.

--

Regards,
Nigel


"Madiya" wrote in message

...



I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?


Regards,
Madiya- Hide quoted text -


- Show quoted text -


Thanks to both of you for help.
Boris,
However, I have a small problem.
The sheet I am working on is a dump from the SAP.
Due to this most of the cells are formatted as text.
The code you posted workes fine in general but if I select those text
formatted
cells, it shows count also = 0 instead of showing the count of cells
having anything like text.

Any fix for that?

Thanks,
Madiya




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Status bar showing sum and count


"Madiya" wrote in message
...
On Sep 26, 11:44 am, "Nigel" wrote:
In the customize status bar prior to xl2007 is limited unless you run some
of your own code. Xl2007 offers a lot more options.

--

Regards,
Nigel


"Madiya" wrote in message

...



I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?


Regards,
Madiya- Hide quoted text -


- Show quoted text -


Thanks to both of you for help.
Boris,
However, I have a small problem.
The sheet I am working on is a dump from the SAP.
Due to this most of the cells are formatted as text.
The code you posted workes fine in general but if I select those text
formatted
cells, it shows count also = 0 instead of showing the count of cells
having anything like text.

Any fix for that?

Thanks,
Madiya


----------------------

Change Count to CountA

Regards,
Peter T


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default Status bar showing sum and count

On Sep 26, 7:33*pm, "Peter T" <peter_t@discussions wrote:
"Madiya" wrote in message

...
On Sep 26, 11:44 am, "Nigel" wrote:





In the customize status bar prior to xl2007 is limited unless you run some
of your own code. Xl2007 offers a lot more options.


--


Regards,
Nigel


"Madiya" wrote in message


....


I have to do lot ofselection and check sum and count.
Status bar in excel shows sum and count one at a time.
Is there a way, status bar shows sum and count both?


Regards,
Madiya- Hide quoted text -


- Show quoted text -


Thanks to both of you for help.
Boris,
However, I have a small problem.
The sheet I am working on is a dump from the SAP.
Due to this most of the cells are formatted as text.
The code you posted workes fine in general but if I select those text
formatted
cells, it shows count also = 0 instead of showing the count of cells
having anything like text.

Any fix for that?

Thanks,
Madiya

----------------------

Change Count to CountA

Regards,
Peter T- Hide quoted text -

- Show quoted text -


Oh ..... so simple.
Thanks.
Madiya
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
Status Bar not showing statistics Victoria612 Excel Discussion (Misc queries) 2 January 6th 10 03:51 PM
How to keep Status count visible? TotallyConfused Excel Worksheet Functions 1 September 12th 08 06:55 PM
Status Bar : Display both Sum and Count S K Excel Programming 1 September 11th 05 09:12 AM
Why is calculate showing in status bar at bottom of spreadsheet? Sean Grier Excel Discussion (Misc queries) 3 May 5th 05 10:33 PM
Showing Loop Status Gil[_3_] Excel Programming 2 February 23rd 04 12:27 PM


All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"