Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() yes, chip, i thought of that a little bit ago. thanks for pointing that out, too. -- Gary "Chip Pearson" wrote in message ... Gary, Maybe I'm missing something, but if you already have the column numbers, why can't you just subtract one from the other to get number of columns? E.g., Function NumCols(Col1 As Long, Col2 As Long) NumCols = Abs(Col1 - Col2) + 1 End Function -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... just curious: is there a way to get the number of columns using column numbers instead of letters? columns("K:BR").count returns 60 but i'd like to use the column numbers instead. -- Gary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to count#cells w/= value in other column and not count blank c | Excel Worksheet Functions | |||
Count Unique Values in 1 Column based on Date Range in another Column | Excel Worksheet Functions | |||
Count Intervals of 1 Numeric value in a Row and Return Count down Column | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions | |||
COUNT INFORMATION IN COLUMN B ONLY IF A1 MATCHES K1 COUNT THAT CE. | Excel Worksheet Functions |