Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tetsuya Oguma
 
Posts: n/a
Default How to express $A:$A with formula

Hi all,

A simple question. COUNTA($A:$A) gives me the right number of non-blank
cells in Column A. But, COUNTA(COLUMN(A1)) always seems to give me 1...

I don't want to hard-code "$A:$A", so want to replace it with something more
flexible. What formula should I use to achieve "$A:$A"?

Cheers, thanks for your time.
---
Tetsuya Oguma, Singapore
  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

Disregard the previous message. I was thinking of the VBA Columns method.

As for worksheet functions, there ARE two, COLUMN and COLUMNS, but the latter
won't solve your problem. COLUMNS(A1) also returns 1, but COLUMN(B1) returns 2
while COLUMNS(B1) returns 1.

Why don't you want to hard-code the reference? AFAIK, the only other formulas
would just be longer versions of the same thing, i.e.

=COUNTA(OFFSET($A$1,0,0,65536,1))
=COUNTA(INDIRECT(B1)) where B1 contains $A:$A


On Wed, 15 Dec 2004 20:30:16 -0600, Myrna Larson
wrote:

It's COLUMNS (plural), not COLUMN. Look up the difference in Help.

On Wed, 15 Dec 2004 17:53:02 -0800, "Tetsuya Oguma" <Tetsuya
wrote:

Hi all,

A simple question. COUNTA($A:$A) gives me the right number of non-blank
cells in Column A. But, COUNTA(COLUMN(A1)) always seems to give me 1...

I don't want to hard-code "$A:$A", so want to replace it with something more
flexible. What formula should I use to achieve "$A:$A"?

Cheers, thanks for your time.
---
Tetsuya Oguma, Singapore


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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 03:17 AM.

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"