currently I'm trying to import data from one excel sheet to another.
I'm going through the cells in 13 columns and if value in one of them exceeds X I need to copy this and 719 following rows into another excel sheet.
Does anyone have tips how to do so?
I'm not really into that but I'm trying to simplify work of my service engineers...
Thanks so much for your answers.
I found a solution:
Checking maximum value in a row
With function "delete row based on cell value" I'm deleting all rows where maximum value is smaller than desired
I'm transferring next 720 rows to another sheet with simple addressing
Not as perfect as I'd imagine but is working
Related
I am just a beginner in VBA. I am trying to copy some data from one workbook that is updated daily to a master woorkbook and generate a report. I want it to first filter one of the columns for nonzero values and copy it with three selected columns for example columns T,C,N. I have looked everywhere for an answer but I haven't succeeded yet. Please help.
You can check if a given cell has value 0 by something like this If Sheets(sheetname).Cells(rownumber,columnnumber)=0 Then
You haven't specified what do you want to do on the other workbooks with the cells that were empty.
I have gone through V-look-up guides online but I can not find one that explains what I am looking for. I am trying to avoid manual checking.
What I have:
Two sheets, Sheet 1 and Sheet 2. Both sheets have the same column names (A1:G1) with multiple rows.
Sheet 1 contains my spreadsheet where I update daily. Sheet 2 is the same spreadsheet that is imported from a application (but has hourly updates). Data can change in each row (for some columns) along with additional added/deleted rows. The data is text, dates and numbers (mixture of both too).
I want to run a formula to highlight the changes on sheet 1 (grabbing the updates from sheet 2. Once I find out the formula works correctly, I would like to know how to replace the Sheet 2 updates onto my spreadsheet (Sheet 1).
I am looking for a formula outside of creating a macro (worst case scenario).
Currently I have the following vlook up formula:
=VLOOKUP(A1,sheet2!$A:$A,1,FALSE)
When I run this in another column (lets say in H1 in Sheet 1), it will display "N/A" if that column (A1) in Sheet 2 is not the same. If it is the same, it will write out the column name.
When I use the following formula highlighting all the cells in Sheet 1, I get a values error:
=VLOOKUP(A1:G33,Sheet2!$A:$G,1,FALSE)
How could I apply that formula to the whole spreadsheet (I guess it would apply to both sheets) and have it highlight records in my spreadsheet (Sheet1). Could it also highlight rows that are missing or added?
The data in Column 1 and 2 would never change (they are ticket numbers). Only change that can apply is if ticket is closed, so when I import the updated spreadsheet that row isn't there anymore. If you think there might be a better way to tackle this down, I would like to hear.
Please let me know if I am not clear.
Here are some example screenshots:
Just in case, the formula for the totals are (adjusting the columns for each):
=SUBTOTAL(3,INDEX(C:C,2):INDEX(C:C,ROW()-1))
Sheet 2 is setup very similar. When I import it into excel, the columns are the exact same as Sheet 1, the only difference can be more/less rows (along with the updates for each row).
You can use conditional formatting.
=INDEX(Analysis!F2:F99999, SMALL(IF($B$1=Analysis!$A$2:$A$99999,ROW(Analysis!A2:$A$99999)-ROW(Analysis!A2)+1),ROW(1:1)))
I am trying to use the formula above to find all rows with a specific phone number. The formula then returns the record specified to he sheet. This formula will not work with sheets that contain a lot of data does anyone know why and how can I fix the issue?
I have a contact list from hell that needs cleaning up. The basic problem is this: the company name is merged vertically and there multiple rows of information for each company (with blank cells everywhere).
Screenshot of Excel Issue
I have created a second sheet and was successful in using a formula I found on stack overflow for getting the data from the 2nd column (where the data was on the top of 3 rows):
=INDEX('Sheet1'!D:D,MATCH(A4,'Sheet1'!A:A,0))
However, the same formula doesn't work when the needed data is on the second row.
I have thought about trying to unmerge column A, then duplicating the data from the merged cell to each unmerged cell. But I'm afraid that having 3 matching cells will return blanks with the formula above.
*I am not a programmer in the least, but I've found stack overflow very helpful for working with Excel. Thanks for your patience with me and I very much appreciate any help you could give.
A single sample is not really enough to explain the issue, but the following might help, where the single example is highlighted:
ColumnA is after unmerging. The formula in D1 (copied across to E1 and D1:E1 then copied down to suit) is:
=TRIM(IF($A1<>"",B1&" "&B2&" "&B3,""))
I have a excel sheet which we may keep adding rows/ deleting them.
And I have an average value present in some cell.I would want the excel formula to identify if there is text in another column to average the columns
So now if I insert another row, I have to manually update the average formula.
Is there a way to have a formula which check if column A is not empty, it should consider the data in column G for the average
There's a lot of approaches to this. My current favourite is a CELL:INDEX(...) expression. For instance, to find the last populated cell in the first continuously populated range between B1 and B5000, I would use (probably as a named range) $B$1:INDEX($B$1:$B$500,MATCH(TRUE, $B$1:$B$500="", 0)-1).
This approach is great because it's non volatile, so it shouldn't bog your worksheet down. It might be vulnerable to $B$500 gradually shrinking if you're only ever deleting rows, though. Alternatives are referencing the whole column ($C:$C), but that's usually dog slow in modern excel, or using OFFSET which never shrinks, but is volatile.