Extracting a phrase from a dynamic column.

gsdanger

Board Regular
Joined
Jul 12, 2010
Messages
81
Office Version
  1. 2019
Platform
  1. Windows
Good Morning gurus of this forum.

I have used your expertise in the past with very pleasing results. You guys are the best!
Apologies for the inputted version of my spreadsheet. I am unable to follow the instructions for using the add-in option mentioned. Hope you don't mind.
I now have another scenario that I just cannot work out (I'm still a numpty!), and am hoping you can assist me with a solution.
In cell E10, I have the following formula: =INDEX($G$1:$H$16, MATCH(C2, $G$1:$G$16,0),LEFT($H$1:$H$16,FIND(".",$H$1:$H$16)-1)).

A B C D E F G H
1Nr.Nr.The Database Area…
2112/10
323/12
431/11
5In Equal Class. Ran very well last start and is a big chance in this race.
622/11
74/17
85/11
9The Results6/11
101#VALUE!4/9
112#VALUE!3/10
123#VALUE!In weaker class. Did well last start and a repeat of that effort will see him in the money.
1339/11
145/13
153/7
16In stronger class. Will need to improve on the current form to have any chance in this race.
I'm looking to extract the three below phrases from h1:h16, and place the matched phrase in cell references c10 to c12.
In Equal Class.
In weaker class.
In stronger class.
Do I use the INDEX, MATCH, LEN, FIND and LEFT functions to achieve this?

Naturally, it's not working. Please give me some direction in regards to the correct formulas to use to achieve the extraction of the phrases.
As you can see, the H column is dynamic. That is, the number of rows pertaining to each individual number (1,2,3 in this case) will be different depending
on the number of rows within each number's record.
Thank you, in anticipation of your assistance.

Kind Regards......gsdanger
 
Good day Stephen,
Thank you for your prompt reply.
I have input your code into my spreadsheet, however it does not extract anything into the cells I specified.
The code runs through and responds with the "" at the end. Can you please have a look at the code, to see if it works correctly.
Much appreciated Stephen...
Thank You....regards...gsdanger

Hi,

I don't have Office 365, and neither Excel 2019, I'm on Excel 2016, so I'm not sure.
Try the formula(s) @StephenCrump provided, and Array Enter, meaning CSE (control, shift, enter), and see if that works for you.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi to everyone who responded to my request.
As you know, I am a complete novice with regards to using complex excel formulas.
I appreciate the efforts of all of you to educate and assist me with this problem.
bebo02199 and Stephen's solution worked in the sample spreadsheet I imported into this forum.
I have tried to transfer the formula to my actual spreadsheet (substituting the relevant column and row addresses, where required - which is all of them).
Some of the formula terms are confusing (aggregate? and more) but I still get a blank response (the last quotation marks "" take effect).

Again, I thank you all for your efforts and inputs, however, I will close this request, as I do not know where to go to from here. If the formulas you guys have given me cannot assist me (this is my fault, as your solutions work within the sample spreadsheet I supplied), then I give up and look to do something else.

Once again, to all of you, thank you for your time, efforts, education, and above all, your patience.

Kind Regards....gsdanger
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,168
Members
449,296
Latest member
tinneytwin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top