+ Reply to Thread
Results 1 to 11 of 11

Using Find or Search to extract data starting point from a formula

  1. #1
    Registered User
    Join Date
    02-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    66

    Using Find or Search to extract data starting point from a formula

    Morning all,

    Thought this would be relatively straight-forward, but cannot crack it?!

    I have the following formula all the way down a column:

    =(F9*0.7)-H9

    And the only thing that changes is the 0.7 to 0.55 or another such percentage, and this is what I want to pull out of the formula and show in another column.

    This seems like a simple MID/FIND/LEN moment, but I've tried using FIND and SEARCH to get a starting point but not getting any luck.

    I've looked online and there doesn't seem to be a way of extracting data from a formula without either VB or copying and pasting as text, does anyone have a quick and simple formula driven answer please??

    Many thanks in advance,
    Mike

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Find or Search to extract data starting point from a formula

    Hi,

    Is this just a one-off exercise? Or will the formulas in each of those cells potentially change at some future date so that you need a solution which can be re-calculated at any given moment?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    02-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Using Find or Search to extract data starting point from a formula

    Hi Xor,
    This will be a monthly task, performed by an external shared services function, so I'm trying to give them a dynamic formula that they can just drop into the spreadsheet without having to copy&paste special values or insert a ' before the formula.

    For illustration, if I just had text of
    '=(F9*0.7)-H9

    this is the formula I would use
    =MID(I9,FIND("*",I9)+1,FIND(")",I9)-1-FIND("*",I9))

    and the result would be 0.7 which is exactly what I want to extract

    Is there any way I can change to first formula to text or something that would allow this to work???

    Thanks,
    Mike

  4. #4
    Registered User
    Join Date
    04-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Using Find or Search to extract data starting point from a formula

    Mike, why don't you try a reverse calculation? I assume your formula =(F9*0.7)-H9 is in column A9, please try the below in a cell where you want the percentage.

    =+(A9+H9)/F9
    Click * Add Reputation if this response helps!

  5. #5
    Registered User
    Join Date
    02-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Using Find or Search to extract data starting point from a formula

    Thanks Dileep. Should have mentioned it but I've already cleared up the reverse calculation side of this.

    It's basically a two-part check; first is the reverse calculation to find out the percentage rate applied by the customer, second is to see what it should have been as on occasion they submit incorrect calculations and I'm trying to find a quick way to highlight these.

    It's a weird one but all I need is a way to extract the starting point and I'll be set, but beginning to think I may be out of luck here...

    Thanks,
    Mike

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Find or Search to extract data starting point from a formula

    And you don't want any solution which involves VBA?

    Regards

  7. #7
    Registered User
    Join Date
    02-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Using Find or Search to extract data starting point from a formula

    I'd be happy with VB, but unfortunately the shared service function not

  8. #8
    Registered User
    Join Date
    04-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Using Find or Search to extract data starting point from a formula

    Mike, do you mind posting what cells you have your data? I am trying to get a feel of what is available in the spreadsheet and what data is calculated by your client / shared services using formula.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Find or Search to extract data starting point from a formula

    If it's just a once-a-month exercise then would it be so much work to create a column of text strings equivalent to the formulas and then use your formula on those?

    I often use Find and Replace on formulas with e.g. replace "=" with "##" so that they are then interpreted as text strings and so can be manipulated as such (often then doing the reverse replace to convert them back to formulas).

    This copy/Find and Replace could quite simply be done once a month and then used together with your updated text formula to extract the required information.

    Regards

  10. #10
    Registered User
    Join Date
    02-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Using Find or Search to extract data starting point from a formula

    Thanks XOR LX & dileepc, appreciate your input but was really just looking for a function or formula to drop into the spreadsheet requiring minimal fuss, but think our discussions have confirmed that there's no function that can search within a formula to bring back the formula text rather than the result.

    Thanks again,
    Mike

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Find or Search to extract data starting point from a formula

    Shame you're not on 2013, as apparently there is just that feature in that version.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Extract Text Elements in a Cell providing stnd Starting/Stopping point.
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2014, 02:48 PM
  2. Index/Match to find Starting Point of Average, Ending Point of Average Variable
    By tgentry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 01:04 AM
  3. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  4. Replies: 2
    Last Post: 06-25-2010, 12:11 AM
  5. Help with Formula using a starting point
    By daz_uk in forum Excel General
    Replies: 2
    Last Post: 02-07-2007, 12:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1