+ Reply to Thread
Results 1 to 2 of 2

HALP! Count and Insert Rows and Specific Data on Another Sheet.

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    12

    Angry HALP! Count and Insert Rows and Specific Data on Another Sheet.

    Example.xlsx
    I wanted to count how many rows of data there are in a sheet. Insert the counted rows in another sheet but with specific data.

    Well, I got the CountA Function to work to count how many rows, I just don't how to go from here if it is even what I need...

    Dim NumRows As Integer
    NumRows = WorksheetFunction.CountA(Range("A2:A50"))


    See attached for example:
    Sheet1: Dynamic Data.
    The list will be dynamic so I have to... I guess count how many rows there are with data and then insert it into sheet2.

    Sheet2: So depending how many rows there are in sheet1 with data(names), they will be named by the Department they are in(Accounting). I also would like to have the Date and Time put together from the Date/Time from Sheet1 into Sheet2. I suppose you could use int and mod together but again I am stuck in how to put things together or even where to begin....

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: HALP! Count and Insert Rows and Specific Data on Another Sheet.

    to count the rows number
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    If solved remember to mark Thread as solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1