Mel Smith
Well-known Member
- Joined
- Dec 13, 2005
- Messages
- 1,041
- Office Version
- 365
- Platform
- Windows
I have two spreadsheets in different workbooks. On my Personnel sheet I have a long (1,000+) list of names in column B. In a different workbook, ='[Averages.xlsm]Seconds, I have a list of names in cells B4:B63.
What I want to do is loop through ='[Averages.xlsm]Seconds cells B4:B63 and if there is a name that is not listed on my Personnel sheet in column B, then loop through ='[Averages.xlsm]Seconds cells C4:C63 and if >0 then add the cell contents of the adjacent cell in column B to the next empty cell in column B on the Personnel sheet.
I.E. if, say B24 of my '[Averages.xlsm]Seconds is listed in Personnel column B then do nothing. If B24 of my '[Averages.xlsm]Seconds is not listed and C24 '[Averages.xlsm]Seconds >0 then add '[Averages.xlsm]Seconds B24 to the next empty cell in column B on the Personnel sheet.
As always, your help will be much appreciated.
Mel
What I want to do is loop through ='[Averages.xlsm]Seconds cells B4:B63 and if there is a name that is not listed on my Personnel sheet in column B, then loop through ='[Averages.xlsm]Seconds cells C4:C63 and if >0 then add the cell contents of the adjacent cell in column B to the next empty cell in column B on the Personnel sheet.
I.E. if, say B24 of my '[Averages.xlsm]Seconds is listed in Personnel column B then do nothing. If B24 of my '[Averages.xlsm]Seconds is not listed and C24 '[Averages.xlsm]Seconds >0 then add '[Averages.xlsm]Seconds B24 to the next empty cell in column B on the Personnel sheet.
As always, your help will be much appreciated.
Mel