+ Reply to Thread
Results 1 to 2 of 2

Find and replace specific characters within data

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2007
    Posts
    1

    Find and replace specific characters within data

    Hello forum, first post so I hope what I am trying to accomplish makes sense once I explain it.

    In the attached file is a mass of lab data. What I am doing is taking the spreadsheet that the lab gave me and cleaning it up to run through the risk assessment program PRO UCL.

    To get it 'finished', all non-numerical characters must be removed from the sample results. The qualifier "<" is used for samples that were below the detection limit. I can count them as 'detects' at half of the detection limit, which is needed for determining cumlulative risk as often only one or two samples are above the detection limit (can't run statistics on one sample).

    Also, detects are bold, and shaded when above regulatory standard.

    So what I need to do is this-
    (create new sheet and copy over data)
    1)leave detects as is
    2)remove "<" from non-detects
    3)calculate half of the detection limit (for ND's) to make the result a 'detect'

    I have tried the find/replace method, however it gets cumbersome when trying to go back and calculate half the detection limit. I also attempted creating a macro for this, however that was beyond my skill level.

    Any and all help is apreciated, I'll try to answer questions if you have any.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-04-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Find and replace specific characters within data

    Create a new sheet. Insert this formula into A1 of the new sheet:

    =IF(ISERROR(FIND("<",'PRE REM SOIL - All'!A1))=TRUE,IF('PRE REM SOIL - All'!A1=0,"",'PRE REM SOIL - All'!A1),SUBSTITUTE('PRE REM SOIL - All'!A1,"<","")/2)

    Copy down/right to BR123.

+ Reply to Thread

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