row count

  1. G

    VBA to count rows from one sheet and to multiple that row count to copy a larger range in another sheet.

    Hi Guys, Hope you can help. I need to know some VBA code so that I can count the number of rows on one sheet (not including header row ) then apply that number to a formatted range Part 1 Extract count. Sheet 1 is an extract of data and has a row count of 4 but I only need a round count...
  2. W

    Vlookup

    Example I wish to find the best way to add the following data Lookup Pop abc Pop21 def Pop22 ghi Pop23 jkl Pop24 mno Pop25 pqr Pop26 stu Pop27 to the end of the correct row in the next available empty cell. The problem is each row is a different length Name Key field A1 A2...
  3. K

    Row copy from multiple sheets to one sheet

    Good evening, Can someone help me with the following please? I have a workbook with a number of worksheets that are filled from a userform. I'd like to be able to copy the filled cells from several worksheets into one (same workbook). Sheet1 is filled from columns B:O (from row 9 and down)...
  4. J

    Count the rows of Variable Tables Multiple times - Separated by a space

    Hello, I have a spreadsheet with multiple variable tables. I would like to get a count of rows for each table. The tables are separated by a blank row. Is there a way I can do this using VBA? The pattern could look something like this. 4 rows of data blank row 3 rows of data blank row 7 rows...
  5. J

    Row Counting specific data

    I would like to count specific rows in a spreadsheet. For example see below.. Failed XMLs tran_log_id origin_id reference_id result_code last_updated_dttm 11421022 OMS OMS_39794575 25 01:30.7 11421023 OMS OMS_39794575 25 01:47.2 I have repeated data with different...
  6. X

    VBA: Input new data to another datatable.

    Hi, All, I'm trying to edit a macro that allows me to copy data from "Input" sheet and send it to the "Data" sheet. As for now, the code copies A3:A5 in "Input", and pastes to the empty rows. Now, I'd like to change the row count to column count as copying A3:D3 in "Input", and carrying them...
  7. U

    Using rcount after connecting to a database.

    I have a routine that calls a function that opens an Access accdb file but I cannot get a row count from the database. Sub DBMgr() Const XMLSht As String = "Imported XML" 'XML Import Worksheet Const MDB As String = "DB.accdb" 'Primary Database...
  8. E

    CurrentRegion.Rows.Count to not look at specific column (row count VBA)

    Hi, I am using RowCount = Worksheets("Input").Range("A1").CurrentRegion.Rows.Count and entering data from form as follow; ith Worksheets("Input").Range("A1") .Offset(RowCount, 0).Value = Me.Supplier.Value .Offset(RowCount, 1).Value = Me.GLCode.Value .Offset(RowCount...
  9. J

    Summing for multiple row values with =CALCULATE

    Hello, Simple question: I have linked tables, one with my main data, and other look-up tables. I'm trying to do a compound count of the files we have at five stages of production (ex. Stage 1 = Stage 1 count + Stage 2 ... Stage 5). There are several file types I'm accounting for, and the file...
  10. T

    Issue Creating Database in Visual Basic

    I an new to Visual Basic but cannot seem to get this code to populate the form data onto the spreadsheet. First row is fine but then wont add further data. Think that issue is in the 'RowCount' function... any help appreciated! Private Sub cmdClose_Click() Unload Me End Sub Private Sub...
  11. J

    VBA - How to run code if only a certain number of rows are present

    I feel like this should be simple, but I don't know the language needed. In Excel 2010, I need VBA code to run according to the number of rows. Rows will always be grouped together at the top of the sheet, so there will be no blank rows in the middle of the data. Something like this: create R...
  12. B

    Find last used row problem

    I have the following section of code from a SUB that needs to know the last row with data in it. . Dim RwCount as long, RRng as range . . With Sheets("annualsummary") Set RRng = .Range("D:D") RwCount = RRng.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row . . When...
  13. D

    Help on basic macro code - inserting row

    I just started using Macros/VBA, so I am hoping someone could help me get over this first hurdle. Thanks a lot. The below formula copies row 33 and inserts it into row 36. Instead of row 36, i would like it to show up on the first empty row. For example, if there is information in rows 1 - 40...
  14. S

    Pivot table row and column count

    Hi, I am trying to write a macro to get the number of rows and columns in a pivot table and then transfer that macro into Delphi. I can interact with pivottables using say NoColsSFInPivot1 := Excel.ActiveSheet.PivotTablesPivotTableName).datafields.count; which counts the datafields in...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top