+ Reply to Thread
Results 1 to 3 of 3

Applying a specific functions over a range of cells

  1. #1
    Registered User
    Join Date
    11-27-2010
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Thumbs down Applying a specific functions over a range of cells

    Howdy,

    I'm trying to extract specific numbers from a string of letters and numbers, using this formula:

    '=VALUE(MID($B3,FIND("a",$B3,1)+1,(FIND("b",$B3,1)-1)-FIND("a",$B3,1)))'

    which is basically trying to extract a number between an 'a' and a 'b' in the string of characters. However there are is a long list of these said character strings (from B3 to B54) and I was wondering if there was a way to edit my formula so that I am able to get the sum of the specific numbers from each of the cells.

    I have already tried

    '=SUM(VALUE(MID($B3:B54,FIND("a",$B3:B54,1)+1,(FIND("b",$B3:B54,1)-1)-FIND("a",$B3:B54,1)))'

    and things like that, but I always get a '#VALUE!' error.

    Please Help
    Rikolos

  2. #2
    Registered User
    Join Date
    11-26-2010
    Location
    Seattle Wa
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Applying a specific functions over a range of cells

    =SUMPRODUCT(VALUE(MID($B3:B18,FIND("a",$B3:B18,1)+1,(FIND("b",$B3:B18,1)-1)-FIND("a",$B3:B18,1))))

    for range b3- b18

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,618

    Re: Applying a specific functions over a range of cells

    Why not use a helper column (which can be hidden) to extract the digits using:
    Please Login or Register  to view this content.
    Then just Sum on the helper column?
    Ben Van Johnson

+ 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