last row in column

  1. R

    Ignoring the value of a formula in a cell.

    Another one I'm not sure how to explain. So basically, I'm trying to make a spreadsheet that determines the last cell in a column that has a calculated value from a formula. So, the value in G5 is based on subtracting the previous value in G4 from the Value in C5 using: =IF(C5=0,"...
  2. N

    Select range between last row in a-column and last column in b-column.

    Hello, I am fairly new to VBA. I have a long list filled with values where some are blanks. I want to select a range between the last value found in A-column, for example A300 and the last value found in B-column, for example B320. So far my code is: Dim IRow As Long Dim ICol As Long Dim rng...
  3. X

    VBA If range [J:K] not empty, then copy [H:I] to the end of [J:K]

    Hello! I have two ranges, [H23:I32] and [J23:K50]. I need to copy values from [H23:I32] to [J23:K50] if [J23:K50] is empty, and if [J23:K50] is not empty I need to find the last row and add [H23:I32] below. It's a growing list of values. The "copy if empty" works, but the "add to the end of...
  4. B

    VBScript to create pivot for entire data on a tab

    Hi All, I am trying to write a script to create a pivot table for the entire data set on a tab. When I record it and run the macro on a table with a larger number of rows, the macro set the range to only include the number of rows that existed in the dataset when the pivot was recorded. Can...
  5. S

    Find Last Row Save Row Number to use as a Constant

    I import a large csv file. I know the first column is reliable for counting used rows. Later as columns are added, column A will become column B, C, etc. I need to refer to the last row in probably 20 different modules. and after the first column is inserted, "LastRow" is now in column B, etc...
  6. E

    Find last row of data in column A on a specific sheet, and after that copy data down to that row on another sheet.

    I am almost there I think. But this seems to search for data in all columns on the first sheet. I only want to check column A on Sheet 1. Sub FindLastRow() Dim LastRow As Long With Sheets("Sheet 1") If WorksheetFunction.CountA(.Cells) > 0 Then 'Search for any entry, by searching backwards...
  7. K

    VBA -- Filtered Cells Value to a Listbox

    Good Afternoon, I try to optimize my master excel file by adding some macros. I looked over different forums, but I still don't understand why my code doesn't work. I click on the commandbutton: CommandButton_Stage1. First, it has to remove every filter. Then, I want to filter the data at the...
  8. J

    Copying multiple formulas until last row with VBA

    Hey guys! I'm working on a project where an Excel file is used to as a database. Raw data in worksheet1 is treated in worksheet2 with a bunch of formulas. These values are then copied and pasted into a CSV file to be uploaded into a website. Currently, the database has around 7000 entries...
  9. D

    Multiple list and combo boxes on userform send selection to bottom row of table - help required.

    So far I have learned how to populate the list boxes and combo boxes from the table and ranges. (userform) I have learned how to send the multi selected items of 1 list box to a selected cell on command button click. I have in the past sent values (textbox) to the bottom row of a table using row...
  10. berty2000

    Select Range in Last column and Last Row

    Hi Guys Is it possible to select the range in column B from the last row with data in to the last column with data in row 3. Thanks in advance
  11. E

    Can Excel dynamically plug into a formula the last row (rows are added every week)

    I have a spreadsheet where one or two new rows are added every week. When I summarize my report I pick from row 2 to row n (last row value). The report has about 30 cells and currently I have to retype the last row number 30 times) I wanted to see if I can code something so that my report is...
  12. R

    Finding Data under a header and Copying to another sheet (VBA)

    Hello everyone! I have been using Mr.Excel for a while and have always been able to find answers to my questions until now. Basically I have a sheet which could have upto 52 columns of data, that are not always in the same sequence. I need to be able to find specific column names and copy the...
  13. M

    VBA to use Vlookup on another spreadsheet.

    Hi All Looking for some help with a VBA code. Each day I get 2 reports generated from different systems. The first shows the current status of orders and the second shows whether money has been received. The first spreadsheets data looks like...
  14. J

    copying several specific rows from different sheets into a single column in another sheet.

    Hi all, I'm trying so detect the existence of a column of data by checking to see if the first cell in all possible columns contains data. If so, I want to copy the data from all ranges found this way into a single master column in a separate sheet. Currently the code appears to loop, detect...
  15. I

    Find Last row for Autofill macro

    I pull a report that grades answers for customers and the number of customers changes every day. I currently have the macro run to row 5000, but I want it to stop on the last row. It has been a long time since my excel class and i'm in over my head. Sorry if my code looks *** backwards...
  16. XfortunaX

    VBA Reference a Dynamic Range within R1C1

    Hello, I am using Excel 2010 and am stuck on inputting the last row within a RefersToR1C1 range. I am getting the Run-time error '1004': The formula you types contains an error. The code is to find the last used row in column A, take that number and input it into the R1C1 range listed below...
  17. C

    Using VBA to expand a formula each time it runs

    HI, I am trying to expand a formula each time this macro runs but i am having trouble extending the range of my function as more data is added, The formula is this Range ("E2').select ActiveCell.FormulaR1C1 = "=COUNTIF(R2C2:R3549C2,1)" But i want the formula to work using the last filled...
  18. C

    Do until Last row - skipping all the was to until withough running code in between

    Hi there, I have a loop which is skipping from the do until to the end without running through the code in between. Can someone see why it is not working? Dim LastRow As Long With ActiveSheet LastRow = .Cells(.Rows.Count, "a").End(xlUp).Row End With Do Until LastRow (LastRow=70)...
  19. J

    Macro Copy and paste 3 sheets with same layout in another sheet stacked

    Hi, I need to consolidate 3 sheets in a workbook into one sheet in same workbook. The data from the 3 sheets need to be stacked underneath each other. Extra rows may be added in the future, so the macro need to copy the entire range of data. The macro should Not loop through the whole...
  20. T

    Enter Date

    When I press a control button I want a macro to run a routine and enter todays date (and time) in column AI at the end of each row that doesn't already have the date in it. I am using the =Now() formula with the following routine. The date is static once it is entered at the end of the row...

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