• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

I want to know if it is possible give number to column automatically?

it doesn't work. it gives numers, but I hide column, numbers become same, no change.Could you do in the file uploaded pls ?
 
Hi,

Asheesh's formula works in getting column number. I see you want to count only the visible columns. I am not sure if this is possible with formulaes. It can be done with VBA. The subtotal works in filtered mode for set of row data, not columns.

What is the need for the same? may be we can find alternate solutions without VBA.

Regards,
Prasad DN
 
Hi, prasaddn thnx for reply. I actually want you mention above. I need give the column number to only visible columns
 
Some level of good news to you.

You can do it with formulas, without VBA, but everytime you hide or unhide column you need to recalculate your formula by pressing Ctr+F9 keys.

I have used one row to check the width of column. if it is more than 0 that means not hidden, it will count that column. And if width is 0, that means hidden, it will skip to count it.

check the attached file table 2.

Regards,
Prasad DN
 

Attachments

See the revised file.

regarding =Cell("Width"), Cell formula will return various information about the reference address. The syntax is Cell(Infotype, reference). There are various info type like width, color, contents etc.

Regards,
Prasad DN
 

Attachments

Back
Top