Formula to extract text from cell and populate in relevant place

PSI94

New Member
Joined
Mar 11, 2022
Messages
27
Office Version
  1. 2021
Platform
  1. Windows
Good morning,

I've a text description of my data in one cell, with other data on the same line that I've managed to merry together by building a formula relating to it's values. I need however the text description to build out into just values.

This is an example of how the data currently looks -

I've the data that is being pulled in, in column A. It shows the written description. Then in data 2, it has pulled in the same relevant data from another worksheet which is already broken down.

1647777029794.png


I know the names that could appear in data 1 (apples, pears, etc - for this example).

I need it to look like this -

1647777015479.png


So I need to build a formula that will look for key words in the text of data 1 and take the value and put it into the relevant row (I've typed it in this example). This will obviously change row to row, eg below -

1647777059002.png


As ever, thank you so much :)
 

Attachments

  • 1647776502460.png
    1647776502460.png
    3.6 KB · Views: 8
  • 1647776665619.png
    1647776665619.png
    5.5 KB · Views: 7
  • 1647776689570.png
    1647776689570.png
    5.2 KB · Views: 7
  • 1647776892341.png
    1647776892341.png
    3.9 KB · Views: 8
  • 1647776958850.png
    1647776958850.png
    5 KB · Views: 9

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

See if this does what you want:

Book3.xlsx
ABCDE
1Data 1
2TextAppleBananaPearPineapple
3There is 1 Apple1   
4There is 2 Pears  2 
5There are 66 Bananas 66  
6There is 999 pineapples   999
Sheet22
Cell Formulas
RangeFormula
B3:E6B3=IF(ISNUMBER(SEARCH(" "&B$2," "&$A3)),LEFT(SUBSTITUTE(MID($A3,MIN(FIND({0,1,2,3,4}+{0;5},$A3&1/17)),99)," ",REPT(" ",99),1),99)+0,"")
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,664
Members
449,045
Latest member
Marcus05

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