Retrieving data by dynamic address

SeliM

Board Regular
Joined
Aug 10, 2023
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Thank you for taking time to read my enquiry.

I am working with a local government authority that has a third party system to assess submissions for works - such as roads maintenance or drainage systems etc.

(The third-party system does not provide any form of "report" but rather exports a complex workbook that can have hundreds of rows of information - so addresses are required to be by dynamic formula.)

I have been able to construct formulas that "find" specific assessment criteria texts and return a weighting applied to that criterion from a nearby cell. Criterion can be very lengthy say 100 characters or more.

I think it was one of your colleagues who provided the formula I have used:
="Data!"&ADDRESS(MATCH(LEFT(A15,25)&"*",Data!$B:$B,0),3,1) - where "Data" is the name of the WS holding information - A15 holds the criterion - in this case "Support for Local Content Is your organisation within the Shire?"

(BTW - I cannot read the formula provided as the &"*" is unknown to me)

All works well at this point because it can find and use the 25 characters that equates to "Support for Local Content" which is the first of 5 criterion in the section Support for Local Content.

The third party system looks like it uses an [Alt Enter] approach to insert a return within the cell to separate the criteria heading "Support for Local Content" from the criterion text e.g. Outline the economic contribution your organisation will make to the Shire and the wider South-West region.

(I have removed the hard return to collapse the text into one line and the formula works)

Finally my question - is there a formula that can ignore the hard return that seems to give the problem. Here's examples of the criteria:

SOCIAL SUSTAINABILITY:
What are the social sustainability benefits your submission will offer to the community?
(refer Council's Procurement Policy Clause 5.1.6.2)

SUPPORT FOR LOCAL CONTENT
Does your company employ apprentices or trainees from within Colac Otway Shire? If yes, please provide details?
(refer Council's Procurement Policy Clause 5.1.6.3)

(You'll note how the text can very, for example the social sustainability has a colon after while support for local content doesn't)

any advice most welcomed.

Mel
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Not sure that I understand your needs, but the CLEAN function will remove non printable characters. HTH. Dave

VBA Code:
="Data!"&ADDRESS(MATCH(LEFT([B]CLEAN([/B]A15[B])[/B],25)&"*",Data!$B:$B,0),3,1)
 
Upvote 0

Forum statistics

Threads
1,224,809
Messages
6,181,076
Members
453,020
Latest member
mattg2448

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