I am looking to find a way where i can write some code that will find all values found in column J. If any values are found i would like to move all values from columns D to J for that particular row. Could somebody please help.
Thanks in advance.
I am looking to find a way where i can write some code that will find all values found in column J. If any values are found i would like to move all values from columns D to J for that particular row. Could somebody please help.
Thanks in advance.
Do you mean if any cell in column J as an entry then replace the entry in Column J by moving the value that is in Column D of the same row
Or do you mean find all instances in Column J of a specific entry/value and replace that entry with whatever entry is in column D of the same row
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
Thanks for your reply Mudraker. Currently i have 5000 rows of data come off from a database. For some reason the database seems to have added extra data that is not required in Column C (this data varies).
So the data that should be in column C now appears in D, and D in E etc. Hence the reason I have extra data in column J.
I would like for all entries found in J to cut that particular row from column D to J and paste it into column C to I, which would get rid of any values in J and realign everything together.
Hope that makes sense. Thanks once again.
It sounds a little more complicated than I was picturing.
To be 100% sure can you paste an workbook with samples of before & after examples.
As I have been having problems opening xls files from this site can you also zip the workbook before posting
Mudraker,
Thanks for your response. I have managed to solve this issue by writing the following:
Thanks for all your help.![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks