View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
AltaEgo AltaEgo is offline
external usenet poster
 
Posts: 245
Default counting columns

=COLUMN()-COLUMN($G$5)+1 {for inclusive column count}
=COLUMN()-COLUMN($G$5) {excludes the column with the formula}

--
Steve

"NDBC" wrote in message
...
I have a row of data that may have some blank cells in it. Is there a way
to
count the number of cells (including blanks) between say G5 and the
rightmost
cell with data in it using spreadsheet formulas, not vba code.

Thanks