EXCEL DATA ANALYSIS
4 TopicsExtracting substrings from brackets
Hi, I'm working with a large dataset based on journal entry character strings. I have standardized names coded into the strings to allow easier reference for an analysis. An example below (not real entries): Column A I went to the store with Joe [Joe Green] today. I played cards with Abby [Abby Miller] and the Joe-man [Joe Green]. etc... I would like to extract each substring between brackets and concatenate those substrings (separated by commas) in the next column. Ideally, I could do this task in a single formula. Hence, the output would appear: Column B (desired) Joe Green Abby Miller, Joe Green etc... I have tried several other approaches and none produced the intended output. I formulated my best attempt as follows (the roster has a list of standardized, bracketed names; the raw_notebook_data has the journal entries with standardized, bracketed names embedded in the strings): =IF(SUMPRODUCT(--ISNUMBER(( SEARCH(roster!$B$2:$B$178, INDEX(raw_notebook_data!$A$1:$M$100000, MATCH($A2,raw_notebook_data!$A$1:$A$100000,0), MATCH(K$1,raw_notebook_data!$A$1:$M$1,0))))))>0, MID(INDEX(raw_notebook_data!$A$1:$M$100000, MATCH($A2,raw_notebook_data!$A$1:$A$100000,0), MATCH(K$1,raw_notebook_data!$A$1:$M$1,0)), SEARCH([",INDEX(raw_notebook_data!$A$1:$M$100000, MATCH($A2,raw_notebook_data!$A$1:$A$100000,0), MATCH(K$1,raw_notebook_data!$A$1:$M$1,0)))+1, SEARCH("]",INDEX(raw_notebook_data!$A$1:$M$100000, MATCH($A2,raw_notebook_data!$A$1:$A$100000,0), MATCH(K$1,raw_notebook_data!$A$1:$M$1,0)))- SEARCH("[",INDEX(raw_notebook_data!$A$1:$M$100000, MATCH($A2,raw_notebook_data!$A$1:$A$100000,0), MATCH(K$1,raw_notebook_data!$A$1:$M$1,0)))-1), "NA") The formula above produces output as follows (only the first bracketed substring appears): Column B (current) [Joe Green] [Abby Miller] etc... This post is my first post on this forum, so I hope I provided the necessary information to receive some help. Please let me know if you need additional information.Solved1.3KViews0likes3CommentsOverwhelmed trying to resolve this.
Hi, I have a list of counties and the assigned rep for that county. I then have a fill rate report by county. I am trying to get a formula that will compare the counties then pull the name of the assigned rep into a column on the fill rate report by county. Its late, I've overthought this. Now I am hoping someone sees a simple answer to this. Thanks!993Views0likes1CommentDATA ANALYSIS HISTOGRAM FUNCTION 'MACRO'
I am doing a repetitive task use of the Data Analysis Histogram function on #4 sheets within a workbook - I am seeking is it possible for an automating of the process - which produces a Histogram Result from a bin Range of a Colum of Data. In each case, I need to press the Data Analysis, select histogram, enter the Input Range, Bin Range and Output Range (selecting a cell) each data piece of which are the same for all #4 sheets. On each sheet I open the above enter the data and press 'OK'. I step through each sheet and this takes about 2-3 mins, but would be great if its possible to write a Macro or press one button. Any ideas would be amazing. Thank you.............836Views0likes0Comments