Hi
Looking for a formula to split data drinks to their respective header columns
See attached of respected results
Thanks if any can assist
Hi
Looking for a formula to split data drinks to their respective header columns
See attached of respected results
Thanks if any can assist
Try this in B2:
=SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$A2,"*",REPT(" ",250)),COLUMNS($A$2:A2)*250,250)),"ML",""),"L","")
Copy cross (C2, D2)
In E2:
=IF(RIGHT(A2,2)="ML","ML",IF(RIGHT(A2)="L","L",""))
something like this?
Try
C to D
=TRIM(MID(SUBSTITUTE(SUBSTITUTE($A2,"ML"," *ML"),"*",REPT(" ",99)),(COLUMNS($A:A)-1)*99+1,99))
in E
=IF(ISNUMBER(SEARCH("ML",A2)),"ML","L")
Or with one formula
Enter in B2 and copy across to E2 and then down
Formula:
Please Login or Register to view this content.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Phuocam,azumi,JohnTopleyAlKey thank you all for different approach.![]()
https://www.excelforum.com/showthread.php?t=1040120
--------------------
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks