excel - Column values to be replaced with another column's values -


i have excel file '|' separated values in it:

20120615|user 1|mak||tobereplaced|20150114 20120615|user 1|mak||tobereplaced|20150115 20120615|user 1|mak||tobereplaced|20150116 20120615|user 2|mak||tobereplaced|20150114 20120615|user 2|mak||tobereplaced|20150115 20120615|user 2|mak||tobereplaced|20150116 20120615|user 3|mak||tobereplaced|20150114 20120615|user 3|mak||tobereplaced|20150115 20120615|user 3|mak||tobereplaced|20150116 

i have excel spreadsheet has names of managers. eg

manager1 manager2 manager3 manager4 

now want managers names replaced column values tobereplaced each user. i.e

20120615|user 1|mak||manager1|20150114 20120615|user 1|mak||manager1|20150115 20120615|user 1|mak||manager1|20150116 20120615|user 2|mak||manager2|20150114 20120615|user 2|mak||manager2|20150115 20120615|user 2|mak||manager2|20150116 20120615|user 3|mak||manager3|20150114 20120615|user 3|mak||manager3|20150115 20120615|user 3|mak||manager3|20150116 

that should go on replacing users, use case is

  1. if managers names replaced , still more users remaining, should start again manager1.

can me excel formula or desired result?

something this?
sample

column text strings.
b2 formula: user (with white space @ end)
c2 formula: =mid(a2,search(b2,a2)+len(b2),search("|mak|",a2)-search(b2,a2)-len(b2))
d2 formula: tobereplaced
e2 formula: =concatenate("manager",c2)
f2 formula: =replace(a2,search(d2,a2),len(d2),e2)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -