+ Reply to Thread
Results 1 to 7 of 7

Counting of rows that has data

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Counting of rows that has data

    Hello,
    I would like to do the following things by a vba macro mentioned below
    the first row is a headers so, ignore the same
    now we have to count the rows that has data
    in the following sample file 3 rows has data so we have to put the result to B1
    B1 may have data so we will clear all the data in cell B1 and we will paste the result to B1
    in B1 cell instead of this Data2 it will be 3
    Could you please help me ?

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,517

    Re: Counting of rows that has data

    Why vba...Formula in B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Counting of rows that has data

    Hi, why the need of VBA, if you can do this by a build-in function?
    in B1:
    Please Login or Register  to view this content.
    Cheers
    Erwin
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,339

    Re: Counting of rows that has data

    Please Login or Register  to view this content.
    You could have made the effort and searched the web for your answer in 10 seconds

  5. #5
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Counting of rows that has data

    Yes but what if macro will be placed in a seperate file

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,517

    Re: Counting of rows that has data

    Well...You will have to explain the setup and expected result...

  7. #7
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Counting of rows that has data

    Please Login or Register  to view this content.


    Works perfectly, thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Issue with counting data rows
    By chrisellis250 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2016, 06:41 AM
  2. counting zeros in rows of data
    By runner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2015, 06:18 PM
  3. [SOLVED] Counting though Rows and taking appropriate data out..
    By Irish RayRay in forum Excel General
    Replies: 1
    Last Post: 09-21-2012, 06:42 AM
  4. Counting rows with data
    By Leal72 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2008, 12:28 PM
  5. Counting the number of rows with data
    By tek in forum Excel General
    Replies: 4
    Last Post: 05-22-2007, 12:16 PM
  6. Counting data in rows.
    By paulrm906 in forum Excel General
    Replies: 6
    Last Post: 01-15-2006, 10:35 PM
  7. Counting rows containing data (both numbers and text)
    By mconnolly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM

Tags for this Thread

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