Forum Discussion
FIND AND COPY
- Dec 17, 2019Just tested your formula on the entire spreadsheet.
AMAZING! It works a treat.
Does exactly what I wanted.
Thank you so much for your help.
- Kelly290Dec 17, 2019Copper ContributorJust tested your formula on the entire spreadsheet.
AMAZING! It works a treat.
Does exactly what I wanted.
Thank you so much for your help. - mathetesDec 17, 2019Silver Contributor
Overnight it occurred to me that this use of UPPER would resolve the issue of upper or lower case references to "pack of"...it will even work with "pAcK oF"
=IFERROR(VALUE(RIGHT(B4,LEN(B4)-FIND("PACK OF",UPPER(B4))-7)),1)
By the way, I hope you are changing the procedure by which this information is collected (assuming it's an ongoing process) so that you head off these semi-useless entries before they occur.
- mathetesDec 17, 2019Silver Contributor
Here's a formula that works. Assume your text is in Cell B4, then this in C4 will get the number as a value:
=IFERROR(VALUE(RIGHT(B4,LEN(B4)-FIND("PACK OF",B4)-7)),1)
Now, it only works if "PACK OF" is always there and in caps. We could add an "OR" clause if it sometimes is in lower case.
And if there is no reference to "PACK OF" this returns the value 1.
See attached.