Hey Guru's.
I hope you can assist.
I am trying to write a UDF and am going around in circles. there is one input which will be a text string ( a different textstring in different cells).
=MYUDF(textstring)
the textstring might look like any of the below (as examples)
bottle
bottle+blueCap
bottle+bluecap*caseQty
bottle+bluecap*3
I would like to have the UDF
1) split the text string by the + and * symbols
2) do a Xlookup of each delimited entry (if it is a number then it can leave the number) against SheetXlookup!A:A and return SheetXlookup!:B:B ( which will likely be a Decimal or Integer)
4) and then have the UDF then calculate the VALUE. (by running sets of brackeets from Left to Right)
e.g. ((bottle + bluecap) * caseQty)
I hope someone can assist to get me started.
thanks in advance
I hope you can assist.
I am trying to write a UDF and am going around in circles. there is one input which will be a text string ( a different textstring in different cells).
=MYUDF(textstring)
the textstring might look like any of the below (as examples)
bottle
bottle+blueCap
bottle+bluecap*caseQty
bottle+bluecap*3
I would like to have the UDF
1) split the text string by the + and * symbols
2) do a Xlookup of each delimited entry (if it is a number then it can leave the number) against SheetXlookup!A:A and return SheetXlookup!:B:B ( which will likely be a Decimal or Integer)
4) and then have the UDF then calculate the VALUE. (by running sets of brackeets from Left to Right)
e.g. ((bottle + bluecap) * caseQty)
I hope someone can assist to get me started.
thanks in advance