Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Tricky question about rows of cells.

At the start of the day, our company has 0 transactions. Whenever
a transaction occurs, we will save that transaction data in a single
row of cells.

Therefore, once 5 transactions have been completed, my spreadsheet
will consists of 5 rows of distinct data.

At the end of any given day, we will have completed N transactions
which means that the spreadsheet will contain N rows of distinct
transaction data. My question is: What is a good way to calculate
or determine HOW MANY rows of data have been filled with
transaction data?? (In other words, I'm trying to calculate "N")

Got any ideas?

Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Tricky question about rows of cells.

Cells.SpecialCells(xlCellTypeLastCell).Row

Will give you the row number of the last used cell.

Sam

"Robert Crandal" wrote:

At the start of the day, our company has 0 transactions. Whenever
a transaction occurs, we will save that transaction data in a single
row of cells.

Therefore, once 5 transactions have been completed, my spreadsheet
will consists of 5 rows of distinct data.

At the end of any given day, we will have completed N transactions
which means that the spreadsheet will contain N rows of distinct
transaction data. My question is: What is a good way to calculate
or determine HOW MANY rows of data have been filled with
transaction data?? (In other words, I'm trying to calculate "N")

Got any ideas?

Thank you!


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Tricky question about rows of cells.

Can this formula be plugged into any of my cells?? Or MUST I
use this code only in a Visual Basic module??


"Sam Wilson" wrote in message
...

Cells.SpecialCells(xlCellTypeLastCell).Row

Will give you the row number of the last used cell.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Tricky question about rows of cells.

Look at the COUNTA() worksheet function.

Regards,
Peter T

"Robert Crandal" wrote in message
...
Can this formula be plugged into any of my cells?? Or MUST I
use this code only in a Visual Basic module??


"Sam Wilson" wrote in message
...

Cells.SpecialCells(xlCellTypeLastCell).Row

Will give you the row number of the last used cell.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Tricky question about rows of cells.

Hi,

This returns the last used row of column A so if you start in Row 1 it will
equal the amount of filled rows.

=SUMPRODUCT(MAX((ROW(A1:A1000))*(A1:A1000<"")))

If you start in another row (say) 5 then simply subtract 4

=SUMPRODUCT(MAX((ROW(A1:A1000))*(A1:A1000<"")))-4

Mike


"Robert Crandal

" wrote:

At the start of the day, our company has 0 transactions. Whenever
a transaction occurs, we will save that transaction data in a single
row of cells.

Therefore, once 5 transactions have been completed, my spreadsheet
will consists of 5 rows of distinct data.

At the end of any given day, we will have completed N transactions
which means that the spreadsheet will contain N rows of distinct
transaction data. My question is: What is a good way to calculate
or determine HOW MANY rows of data have been filled with
transaction data?? (In other words, I'm trying to calculate "N")

Got any ideas?

Thank you!


.



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
Question about a tricky Do...While loop IT_roofer Excel Programming 4 May 24th 07 09:05 AM
A tricky format question Digital2k Excel Programming 9 July 28th 06 08:04 AM
Tricky comparing question Corben Excel Worksheet Functions 3 April 21st 06 10:11 PM
New guy with a tricky question Arian Goodwin Excel Programming 3 November 10th 05 03:45 PM
Tricky Question The Boondock Saint Excel Worksheet Functions 7 December 8th 04 07:22 PM


All times are GMT +1. The time now is 09:25 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"