+ Reply to Thread
Results 1 to 5 of 5

extracting min/max from spec range

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2004
    Posts
    64

    extracting min/max from spec range

    I inherited a database which lists our products in column a and their respective specification ranges in columns b thru g. The format that the specs were entered in was 45-60.

    What I want is a formula to pull out 45 as a number and separately 60 as a number.

    Thanks in advance.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    To extract 45: =LEFT(A1,FIND("-",A1)-1)+0 where A1 houses original code

    To extract 60: =SUBSTITUTE(A1,B1&"-","")+0 where B1 has above formula.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-30-2004
    Posts
    64
    cool,

    there is the rare occassion that the spec is >12 or perhaps < 20. would I use the same method?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Yup... just replace the "-" symbol in the formulas with the symbol that separates the numbers.

  5. #5
    Registered User
    Join Date
    09-30-2004
    Posts
    64
    Thank you very much

+ 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