I need to move data from alternate rows (Right Eye): Approx. 11,000 more rows to go.
Step 1:
Starting with Row 1000
Move Data From COL A to COL E
Move Data From COL B to COL F
Move Data From COL C to COL G
Move Data From COL D to COL H
Step 2:
Move this Data in Row 1000 (up) to Row (1000-1)
Manually copying and pasting is taking me ages. Will be much obliged for your help. Please let me know if you will need additional information.
This is my first ever post on this board.
Related
good night!
I'm new in VBA and my english isn't that good so, please, be patient with me =D
Since I'm new, I always did simple loops, with one column. I never had to do a filter before. So I confess I have no idea where to begin. But I'll try my best to explain, so please, help me because it's really important to me.
I need to create a loop in the first 5 columns with this logic:
1 - Search all 5 columns and create a filter;
2 - Filter: Get all rows of column A where value == 1 And all rows of column B where value == 1 And all rows of Column C where variable == 'C' And all rows of column D where values == 1 And all rows of column E where value == 1 and create another sheet(1) with all rows of the filter;
3 - Do loop 2 again, but with "J" on column "C", and create another sheet (2);
The logic is: I need to create one sheet with all the rows that I set in the filter.
Example: Find all rows on the Columns where Column A = 1 & Column B = 1 & Column C = F & Column D = 1 & Column E = 1 -> Create one sheet with all rows with this values
Just like that:
Note this: because I have Column C with "F" in a row and "J" in another row, I need to create one sheet with all rows that contains each letter.
Could you help me, please?
Thanks and have a great night!
I have column A as city code, B as Origin City,St , C as city code, D as Destination city,St. I then similar date in I through L with Carriers that haul those lanes in N. If a row in the I through L match a row in A through D I need the value of F place in the O column in the corresponding row.
I am trying to paste an image of the Excel grid, but I need column O to pull the value from column F from the row that has the values from A to D that match the data in a row in I to L.
Expected Result in Grid
You can use a combination of index() with match()
So, to fill Column O, this should work:
=INDEX(F$40:F$60,MATCH(I40&K40,G$40:G$60,0))
I have assumed that you can add a helper column in G, which is =A40&C40 dragged down.
I have also assumed that the combination of the two numbers in cols A & C are unique when combined.
If that is not the case then you will need to add col B, so the helper column becomes =A4&B40&C40 and the match will be I40&J40&K40.
Tested this on 3 values, as you don't give data I can get to.
I have 2 excel files. 1 is a workfile in which I work, the other is the output of a database. See pic 1 for my database output (simplified).
What we see here:
The purchase order numer in column A
The row in the database in column B
The status of the row in the database in column C
The classification in column D, where W means a product we want to measure and P meaning delivery costs, administration costs etc (we don't want to measure this)
The number of items ordered and the number of items delivered in column E
The company name and product info in column F
Now, what I want, is something like this:
I want this table to be filled automatically based on the database output. It works for column B, but I'm stuck on column C, D and E.
What I want from you!
I need help with column C, D and E.
Number of rows: it needs to calculate the rows only with W in column D. So for item 4410027708 it has to be 2 (only 2 rows with W) and for item 4410027709 it should be 1.
Items ordered: it needs to add-up all the values that are directly to the right of the W in column D. So, for 4410027708, it needs to add up 3 and 5. It must ignore all the rows with P!
Items to be delivered: You may already guess this, but it needs to add up all the values in column E that are on the same row as column C with To be delivered, but only for the W rows (not the P versions). So, for item 4410027708 this should be
I suggest easy if ColumnA can be filled down first (including for the last entry) then assuming the database output sheet is called Sheet1, in:
C2: =COUNTIFS(Sheet1!A:A,A2,Sheet1!D:D,"W")
D2: =SUMIFS(Sheet1!E:E,Sheet1!A:A,A2,Sheet1!D:D,"W")
E2: =SUMIFS(Sheet1!E:E,Sheet1!A:A,A2,Sheet1!C:C,"To be delivered")
copied down to suit.
I am trying to populate a table with SKU codes from another sheet in my workbook. I need to use an if statement that cycles through a column and passes over a value if it evaluates false. Essentially, I want to populate a second table with SKUS but absolutely NO blank SKUS - this is where the cycling comes in.
In Table 1 (T1), col A contains the line number that the SKUs run on. Col B of T1 contains the SKU code. T1 is not sorted and never will be so there are many different arrangements of lines and SKUs. T2 is set up the exact same way: col A is the lines and col B is the SKUs; however T2 is only concerned with lines 51 and 56. So, I need to populate the SKUs into col B of T2 by checking to see if col A of T2 matches col A of T1, if they match then I want col B of T1 to populate col B of T2 (only one cell not whole column), but if they don't match I don't want to populate 0 or a false SKU, I want the formula to keep checking down col A of T1.
I cannot find a way to do this non-macro and I need to avoid macros because the workbook will be passed down to people without knowledge to preserve/modify macros.
Following is my thought process:
=IF(A1 of T2 is found in col A of T1, B1 of T2 = B(row# of matching col A cell), skip to next row and evaluate all records in col A T1)
I have two columns with different amount of values in them. Col A has 2789 values, col B has 201 values.
Using the function
=IF(ISERROR(MATCH(A2,$B$2:$B$2789,0)),"",A2)
in col C and dragging it down to C2789, I get the values that exist in both col A and col B. I select them, paste them into notepad or word (to get rid of the formulas), paste them back into Excel and remove all the blanks using Find & Select.
I repeat this for all the values that don't match in col B and col C using
=IF(ISERROR(MATCH(B2,$C$2:$C$140,0)),B2,"")
You would expect C and D together to have 201 data items, but I'm getting 207 in the status bar between those two.
Can anyone shed some light on this? All input is welcome.