+ Reply to Thread
Results 1 to 9 of 9

=Right Search formula?

  1. #1
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    =Right Search formula?

    Hello can someone help me with a formula to extract the following data from a string similar to the below: 1.42900

    Crew[1.00]*W/C Labor Cost[150.99000]/(Std Prod Rate[1.42900])

    I started playing with =RIGHT(A1,LEN(A1) - SEARCH("]",A2) formula but wasn't able to extract the info I was after...

    Please let me know.

    Thank you,

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: =Right Search formula?

    with PowerQuery

    Power Query for
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: =Right Search formula?

    How about:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you have more than 3 instances of "[" prior to the number you want you may want to try this instead (provided the character "]" is always last and right before the number you're looking for):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by ron2k_1; 04-23-2018 at 07:29 PM.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: =Right Search formula?

    If you have more than 3 instances of "[" prior to the number you want you may want to try this instead (provided the character "]" is always last and right before the number you're looking for):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: =Right Search formula?

    Try this
    With this formula you don't have to worry how many characters in the last brackets. The formula will adjust automatically.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Crew[1.00]*W/C Labor Cost[150.99000]/(Std Prod Rate[1.42900]) 1.42900
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: =Right Search formula?

    we can simply use the mid and search by add in more text to become an unique text. (use "rate[" instead of "[")

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The 7 mean the len of the number. (=len("1.42900"))
    you need to change "rate[" (the +5 next to the search the len of "rate[", to exclude "rate[")
    and the "7" if required.

    or

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    use same way (use "])" instead of "])
    Last edited by BoredWorker; 04-24-2018 at 01:58 AM.
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: =Right Search formula?

    One way:

    =TRIM(LEFT(RIGHT(SUBSTITUTE(SUBSTITUTE(A1,"]","["),"[",REPT(" ",500)),1000),500))

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: =Right Search formula?

    or try

    =--(SUBSTITUTE(SUBSTITUTE(RIGHT(SUBSTITUTE(A1,"[",REPT(" ",99),LEN(A1)-LEN(SUBSTITUTE(A1,"[",""))),99),"]",""),")",""))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  9. #9
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    Re: =Right Search formula?

    Thank you all for the responses ill try these out!

+ 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] Search exact word within a string - SEARCH formula help
    By chullan88 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-23-2016, 06:11 PM
  2. [SOLVED] extend search formula to mutiple search for single a cell
    By lagiosman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2014, 01:16 PM
  3. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  4. [SOLVED] How to ask formula to search for multiple values within one search?
    By Buzz57 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2014, 11:14 PM
  5. Modify this Search Formula to search across a range of cells
    By zicitron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2013, 08:11 AM
  6. Formula to search, match value, search again, return SUM
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 11:01 PM
  7. Replies: 5
    Last Post: 03-29-2012, 04:12 AM

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