Results 1 to 10 of 10

How to Extract A Number from String if Text within the String Equals XYZ

Threaded View

  1. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How to Extract A Number from String if Text within the String Equals XYZ

    tyrsfury,

    Attached is a modified version of your most recently posted workbook.
    In cell O9 and copied over and down to cell W41 is this regular formula:
    =IF(ISNUMBER(SEARCH(" "&TRIM(O$5&" "&O$6&" "&O$7)&" "," "&$Z9&" ")),--TRIM(LEFT(SUBSTITUTE(MID($Z9,SEARCH(O$7,$Z9)+LEN(O$7),99),";",REPT(" ",99)),99)),"")

    Those cells are formatted as Number with 2 decimal places.
    Column X is a Sum formula, and colymn Y is =N+X

    Does that work for you?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

Thread Information

Users Browsing this Thread

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

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