Forum Discussion
Kelly290
Dec 16, 2019Copper Contributor
FIND AND COPY
I have a huge spreadsheet with lots of pack of qty entries in the description column. How do I set about copying the qty into a separate column on the spreadsheet?
- 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.
SergeiBaklan
Dec 16, 2019Diamond Contributor
As variant that could be
=--TEXTJOIN("",TRUE,IF(ISNUMBER(--MID(A1,ROW($A$1:INDEX($A:$A,LEN(A1))),1)),MID(A1,ROW($A$1:INDEX($A:$A,LEN(A1))),1),""))
(array formula, Ctrl+Shift+Enter, for pre-DA Excel)
- Kelly290Dec 16, 2019Copper ContributorDescription field might read
CUTTING DISC 115 x 1MM PACK OF 5
or
SINGLE EDGE BLADES PACK OF 100- SergeiBaklanDec 16, 2019Diamond Contributor
If the quantity is always after the last space in the description, you may extract it as
=--RIGHT(A1,LEN(A1)-LOOKUP(2^10,SEARCH(" ",A1,ROW(INDIRECT("1:"&LEN(A1))))))
- Kelly290Dec 16, 2019Copper ContributorSeems a bit complicated
Been trying data tab followed by advanced but can't get the criteria right.
Is this a possibility?