Programming Questions? Ask a Programmer for Answers ASAP
Would you be able to send me the file so I can take a look at the data. To do so go to http://www.wikisend.com/ and upload the file then copy the File ID that you will be given and paste it here in your reply.
If the file has sensitive information let me know before you upload it
THis is sensitive in that it contains customers names and phone numbers.
File ID: 623798
Got it, thanks
So you basically want to delete the rows where the Acct in A does not have a match in B. Correct?
Sorry meant C instead of B
Ok so in your list the first item in B that does not have a match would be Acct 41077 which is in row 427. In this case cells B427:F427 will be removed. Correct?
Ok please check this output list and let me know so I can prepare the file with the formulas that generated this list
Ok instead of moving rows up to match C and A we can simply plug in the values in C into A and delete the empty rows. Will yield the same result
Great. Thanks for the accept and bonus.
I am preparing now the steps and the formulas so you can apply it yourself. One moment please...
Ok here you go
I created five sheets to show each of the steps involved in the process. I believe the sheets are self explanatory but if you need any clarification please feel free to get back to me
The explanation is actually on the tabs names. When it says "Fixed" it means the the table with the formulas in the previous sheets are copied, then pasted on the new sheet using the Paste Special > Values which pastes the cells as fixed values, thus getting rid of the formulas
Remember cells with formulas are colored in yellow in all sheets
Ok Call me lame, but the formula in step 1 works, step 2 is a copy and paste, step 3 says "formula in A" ???? what to do there
step 4 is a copy and paste and step 5 is sort to remove blanks. Do I just type that in and press enter?
Ok in Step 3 I wrote formulas in column A. Please look in any cell in column A and you will see the formula!
In Step 4 for the values that were returned by the formulas in A from Step 3 have been fixed by using the same Paste Special > Values procedure that I explained earlier
No need to touch the formulas. Just paste your new data in columns A:F on the 'Step 1 - Formulas' sheet and the formulas will take care of that data
If you are not familiar with these operations I suggest that you consider having a macro that will do all these processes automatically
No. I was answering your specific question about step 1.
You will still need to do the Paste Special > Values manually.
I hope this helps
Ok I will try to explain it a step by step procedure
- Close all excel file
- Open the file that I sent you last
- Open your actual file that has the real data
- Make sure your new data are in columns A thru F exactly as the layout in the 'Original' sheet
- Select columns A:F
- Click on cell A1 on the sheet "Step 1 - Formulas"
- Close your actual file
- On sheet "Step 1 - Formulas" make sure the formulas in the yellow cells extend to the last row of your copied data
- Select all the yellow cells (in columns H thru N
- Go to the sheet "Step 2 - Fixed Values"
- Click on cell A1
- Right click on A1 and choose Paste Special
- Select Values
That should do it
Hope this is ok. Let me know if you have any questions, and thank you for clicking Accept if you are satisfied with the subsequent assistance
No problem send me your latest file and I'll write a macro that you will be able to use on other files as well, as long the data stricture of the files is the same