Ok, the solution is probably easier than I think, but I can't come up with a way to do this.
Basically, I have a table with over 20,000 rows of data, and one particular column has the comments left by users who input the journal entries. From what I've been told, these people had been clearly instructed to leave comments on every entry and to do so in a specific way. From looking at the comments, this looks to be the case. What I have to do is create a new column that lists the customer for each transaction. I have a list of most of our customers in a table on another worksheet. What I want to do is to write a formula that searches the adjacent cell for any value in that table, and if it contains any of those values, return that value from the table, and if not, "". The problem I'm encountering is #VALUE!. If I try and write an IF(SEARCH("CustNameHere",M2)>0,"CustNameHere",""), I receive the aforementioned error due to it not finding that string within the cell. Of course, doing it that way would require me nesting a bajillion If's, which wouldn't be fun. I'm thinking there's got to be some way to do this using Vlookup/Match/Index or some sort of table/lookup function, but I can't think of how I need to do this. Can anyone help unstick the gears in my brain?
Thanks,
Scott
Bookmarks