Hello, I have a large group of cells that I need to change. The first cell of each row for table a needs to be changed to match with the first cell from table b. Unfortunately for each single row in table b, there is a variable number of rows in table a that need to be changed to match, so I can't just do a simple copy/paste. What I'm looking for is some way to automatically go through and change all of them, since there are far too many to do by hand.
I don't know anything about Access scripts/macros, but what I am thinking it needs to do is start with a pair of values, one that needs to be changed and one that it needs to change to, and then loop, increasing these numbers by 1 each time until it gets to a defined number.
Any chance you can post the spreadsheet/dummy spreadsheet so I can see what you are trying to do. I am sure there is a way in Access.
Dan
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!
Here is a quick example. The numbers in column a of sheet 2 need to be changed to match the numbers in column a of sheet 1. All instances of the same number in sheet 2 need to be changed to the name number from sheet 1. For example, in the attached spreadsheet, all 9 cells that are 181939 in sheet 2 need to change to 192956 to match sheet 1, then all the cells that are 181940 need to change to 192957 etc.
To do this by hand would mean changing several thousand cells, which is why I came here hoping for help. The original information is in access, but I can copy/paste into and out of excel if that is easier or needed.
I appreciate you taking the time to look at this for me.
dougsc,
I almost have this completely solved, however am out of time today. I got the replace part done.
I have 2 questions for you:
1. Every single Number in Column A on Sheet 1 will have at least 1 number in Table 2 Correct?
2. They are in sequential order correct?
Ie. 19256 - 181939 the next 2 numbers in the list will always match? (Hope that makes sense)
Dan
P.S. I could prolly have done it easier in Access, I just wrote a simple macro in excel atm.
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!
Yes to both questions. Thanks again!
I think this will work for you after only slight modifications.
Hope this helps,
Dan
"I am not a rocket scientist, I am a nuclear engineer." - Split_atom18
If my advice has been helpful to you, then please help me by clicking on the "Star" and adding to my reputation, Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks