Forum Discussion
GrandMoffReknaw
Jan 31, 2022Copper Contributor
Help splitting order numbers by character for reconciliation
Hi all, In all my years of Excel use, I've never come across such a stupid human-made issue. I currently need to get an orders report from a supplier and reconcile them, however, they have decid...
- Feb 02, 2022
Assuming data stored in tblOrders:
in F4
=IF(ISNUMBER(SEARCH(" & ",[@[Order Number]])), LET( Delim, "|", Value, SUBSTITUTE([@[Order Number]], " & ", Delim), seqLen, SEQUENCE( LEN(Value)+1 ), arrStart, LET( Dvalue, Delim & Value, split, MID(Dvalue, seqLen, 1), arr, (split = Delim) * seqLen, FILTER(arr, arr > 0) ), arrEnd, LET( valueD, Value & Delim, split, MID(valueD, seqLen, 1), arr, (split = Delim) * seqLen, FILTER(arr, arr > 0) ), arrValues, MID(Value, arrStart, arrEnd-arrStart), valueOccur, COUNTIF( OFFSET(tblOrders[[#Headers],[Order Number]],1,0,(ROW()-ROW(tblOrders[#Headers]))), [@[Order Number]] ), INDEX(arrValues, valueOccur) ), [@[Order Number]] )
Corresponding sample attached (tested in Excel Web)
Riny_van_Eekelen
Feb 01, 2022Platinum Contributor
GrandMoffReknaw If you insist on using Excel for the web I can't think of an easy way, but if you can get your hands on the desktop (PC, not Mac) version you can fairly easily transform the "stupid" list into something more useful with Power Query. See attached.