SOLVED
Home

Complex Text Formula?

%3CLINGO-SUB%20id%3D%22lingo-sub-918836%22%20slang%3D%22en-US%22%3EComplex%20Text%20Formula%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-918836%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20crunching%20some%20data%20to%20find%20patterns.%20Of%20course%20people%20stopped%20filling%20in%20data%20in%20a%20certain%20area%2C%20and%20I%20need%20that%20data%20to%20get%20a%20clear%20picture.%20Let's%20pretend%20Medical%20Specialty%20requested%20is%20column%20A%2C%20Modified%20is%20column%20B%2C%20etc.%3C%2FP%3E%3CP%3EBasically%20I%20need%20something%20like%2C%20%22If%20the%20word%20cardiology%20is%20in%20column%20C1%2C%20put%20the%20word%20cardiology%20in%20A1.%20If%20not%2C%20do%20nothing.%22%20How%20would%20you%20do%20this%3F%26nbsp%3B%20There's%20probably%2010%2C000%20lines%20and%20doing%20it%20manually%20isn't%20an%20option.%20Also%2C%20I'm%20in%20Excel%202013.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20721px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F138474i53F64DB8F2BA0C71%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-918836%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Work4Rose
Occasional Contributor

I am crunching some data to find patterns. Of course people stopped filling in data in a certain area, and I need that data to get a clear picture. Let's pretend Medical Specialty requested is column A, Modified is column B, etc.

Basically I need something like, "If the word cardiology is in column C1, put the word cardiology in A1. If not, do nothing." How would you do this?  There's probably 10,000 lines and doing it manually isn't an option. Also, I'm in Excel 2013.

 

Capture.PNG

6 Replies

@Work4Rose 

You cannot have both the formulas and manual entries in the same column.

If your column A is already populated with some Medical Specialty Requested and you want to populate the cells with Cardiology if the corresponding cell in column C has Cardiology in it, you may follow this approach...

 

  1. Insert a Column before Column A.
  2. In the newly inserted column (which should be the column A currently), place the formula =IF(ISNUMBER(SEARCH("Cardiology",D2)),"Cardiology",IF(B2="","",B2)) in the cell A2 and then copy it down.
  3. Now select the range A2:A10000 ( or whatever range with the formula in column A) and copy it by pressing Ctrl+C.
  4. Select the cell B2 (which should be your existing Medical Specialty Requested column) and paste the copied cells as VALUES only or press the shortcut key Alt,e,s,v and hit Enter.
  5. Remove the Column A.

Hope that helps.

Thank you very much!

 

Question: I want to get all the specialties into that column. So, first Cardiology, then oncology, then radiology, etc. Would you recommend that I make different columns for each of those, and then combine them after? Oh... I probably wouldn't be able to combine them because they would be formulas and not the actual text I need? How could I do all that?@Subodh_Tiwari_sktneer 

Also, can you help me figure out what I did wrong here? 

 

clipboard_image_0.png

@Subodh_Tiwari_sktneer 

@Work4Rose 

If you have to look for more than one specialties in column C, you may create a list of those specialties on another sheet which can be used to match with the procedures in column C and if any of the specialties is found in there, the formula would return the correct specialty from the list.

Form you sample data, it looks like it's a partial match.

 

Why not share a sample file (not an image) after removing any sensitive data from it, if any, along with a list of specialty to match on another sheet? It would be easy for us to suggest a working solution then.

@Subodh_Tiwari_sktneer

Thank you sir. I have scrubbed this one of sensitive data. There is another column next to F that also contains more data, but I cannot share that column for privacy issues.

 

If I am able to get this medical specialties column, I can then create a pivot table showing whether more patients are seeing doctors in certain specialties throughout a period of time.

Solution

@Work4Rose 

I tried the fuzzy matching through power query but I don't think that it is producing the desired output considering the data in your data table and the data in your Specialty list on sheet.

Look at the column D with a Vlookup formula which you can copy and paste as Values in column E if you are satisfied with the output returned by the formula and then delete the column D.

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies