Eric,
You are so on the money it's not even funny.
While it will make my lack of coding skills obvious (Visual C++ 1.0
many years ago), I can attest that trying to CONCATENATE an equal sign
before Apples(1) does not work.
Nor, as you mentioned, does attempting to convert the cell's
contents with the VALUE function.
Formatting the cell as a number is equally useless.
Hopefully, the Excel development team will extend the capabilities
of the VALUE function in a future version to support this type of
conversion.
I appreciate the time and effort you put into the macro above.
At this point, I just have to figure out how to get the macro
working in my workbook - since I don't have any experience with
macros.
Given the four steps I listed above, would this macro be able to
parse each unique item and its quantity ?
The standardized format for the Total_Inventory column is each
unique item's name is appended with its quantity in parentheses. For
example, Apples(1). Where there are multiple unique items, they are
separated by a comma. For example, Apples(1),Oranges(1).
For example, in the scenario above, the row containing
"1/2/2010 Oranges 1 Apples(1),Oranges(1)" has a
Total_Inventory value of "Apples(1),Oranges(1)".
Keep in mind the number of unique items in a Total_Inventory cell
will vary from no items to many. At this point, the maximum number of
items will probably be 10, but could be as high as 25.
Also, if a UDF is volatile, meaning that Excel will recalculate UDF
containing cells whether or not their dependencies have changed, how
might the use of this macro affect processing performance ? Would a
macro like this be equally volatile ?
Again, thank you for putting time in your post above.
Exceluser