Returning Values is phrase appears in call

tbauma

New Member
Joined
Sep 20, 2017
Messages
2
I’m not sure if it’s possible but I’m looking to do the following.

I’m looking for a formula that will return a number based on a phrase that is in a large text cell and then another number is none of the phrases exist. The only issue is that the phrases share the same words. Below are the phrases and values I’m looking to return.

Provisional Quantity – 1.2
Provisional Quantity as directed – 1.5
Provisional Quantity if ordered – 2

Below are examples of the text that will be in single cells

[TABLE="width: 0"]
<tbody>[TR]
[TD]Clearing and grubbing (MRS04 May 17)
[/TD]
[/TR]
[TR]
[TD]Clearing and grubbing (Provisional Quantity if ordered) (Removal of existing large trees 0.3m
diameter) (MRS04 May 17)
[/TD]
[/TR]
[TR]
[TD]Stripping of topsoil (Provisional Quantity as directed) (For a depth of 200mm) (MRS04 May 17)
[/TD]
[/TR]
[TR]
[TD]Ground surface treatment under embankment, standard (Provisional Quantity) (MRS04 May 17)
[/TD]
[/TR]
[TR]
[TD]Ground surface treatment, in situ treatment of acid sulphate soils with lime (Provisional Quantity if ordered) (For a depth of 100mm) (MRS04 May 17)
[/TD]
[/TR]
[TR]
[TD]Excavation and disposal of Unsuitable Material with individual excavation <= 10 m3 (Provisional Quantity as directed) (MRS04 May 17)
[/TD]
[/TR]
</tbody>[/TABLE]

Cells that will be searched will be in column C and the formula will be in column G
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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