+ Reply to Thread
Results 1 to 4 of 4

can understand the result of a MID&FIND

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    can understand the result of a MID&FIND

    Formula is:
    =BY$6&BY8&IF(H8<=25,25,(IF(H8<=38.1,150,300)))

    Result is BEND2300 should be BEND2150

    Cell H8 = 34 but this is a result of the formula =MID(L8,1,(FIND("X",L8)-1))
    consequently, it does not recognize 34 as a number
    (even if I format column H to number)
    so it defaults to 300

    if I add a column =H8 formatted as a number, and use that cell in the IF statement, it works, I'd rather not add another column,

    is there a way to modify the formula to make the result of =MID(L8,1,(FIND("X",L8)-1)) be understood as a number?

    BTW, L8 is 34X4 (I'm extracting the diameter from the ODxWall entry)
    Since the OD is 34 it goes on machine 150

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Try using

    VALUE(H8)

    =BY$6&BY8&IF(VALUE(H8)<=25,25,(IF(H8<=38.1,150,300)))

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    like a charm - THANKS

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can produce a numeric result from this formula

    =MID(L8,1,(FIND("X",L8)-1))

    by changing to

    =MID(L8,1,(FIND("X",L8)-1))+0

+ 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