Hi!
Not sure if this is possible, but I'm hoping to get some direction to get started if it is!
I have to review several Excel spreadsheets that have different contract language. I'm looking for a specific "blurb" in the spreadsheets, and there is a finite number of "blurbs", ranging from 8 to 17 rows. I currently have all of the existing "blurbs" on a sheet I'm calling "Lookup." These are just in row 1 and down, and each one is in a separate column.
The workbook also has a sheet called "Output" where I'd like the magic to happen.
What I'm looking for the macro to do is this:
1. Place the file name in Column A
2. Put a number in Column B based on what language is in the worksheet
On the Lookup sheet, I have converted each "blurb" to a named range, thinking that might make this easier. They're named Range1 - Range7. I'm hoping there's a way to say like if Range1 is found, that row in Col B (next to the file name in Col A) would be 1, if Range2 is found that row in Col B would be 2 etc. If there isn't a match, I'd want that cell in B2 to be blank. I'd also want a way to be able to add more ranges if needed, which I'm sure would be easy enough.
Hope this all makes sense.
TIA!
Rachel
Not sure if this is possible, but I'm hoping to get some direction to get started if it is!
I have to review several Excel spreadsheets that have different contract language. I'm looking for a specific "blurb" in the spreadsheets, and there is a finite number of "blurbs", ranging from 8 to 17 rows. I currently have all of the existing "blurbs" on a sheet I'm calling "Lookup." These are just in row 1 and down, and each one is in a separate column.
The workbook also has a sheet called "Output" where I'd like the magic to happen.
What I'm looking for the macro to do is this:
1. Place the file name in Column A
2. Put a number in Column B based on what language is in the worksheet
On the Lookup sheet, I have converted each "blurb" to a named range, thinking that might make this easier. They're named Range1 - Range7. I'm hoping there's a way to say like if Range1 is found, that row in Col B (next to the file name in Col A) would be 1, if Range2 is found that row in Col B would be 2 etc. If there isn't a match, I'd want that cell in B2 to be blank. I'd also want a way to be able to add more ranges if needed, which I'm sure would be easy enough.
Hope this all makes sense.
TIA!
Rachel