+ Reply to Thread
Results 1 to 12 of 12

Ignore letters and characters

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    alberta, canada
    MS-Off Ver
    2007
    Posts
    5

    Ignore letters and characters

    How to ignore a character in a formula?

    For example:
    B7 = FLS-105
    C7 = SUM (B7/2)
    C7 = #Value!

    But if when I do this

    B7 = 105
    C7 = SUM (B7/2)
    C7 = 52.5

    I wanted to be able to enter the FLS- in front of the number in B7

    Help.

    Thank you.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Ignore letters and characters

    One way might be something like this:

    =sum(MID(B7,FIND("-",B7)+1,LEN(B7)))/2

    Why use sum when there's only one number??

    =MID(B7,FIND("-",B7)+1,LEN(B7))/2

    makes more sense.

    I should add that my offering will only work if there's a hyphen between the text (which can be anything that's hyphen-free) and the number
    Last edited by Glenn Kennedy; 12-08-2014 at 01:17 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Ignore letters and characters

    maybe this

    ="FLS-"&SUBSTITUTE(B7,"FLS-","")/2
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Ignore letters and characters

    what about attachment?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-08-2014
    Location
    alberta, canada
    MS-Off Ver
    2007
    Posts
    5

    Re: Ignore letters and characters

    Here's the attachment.
    Boss wants FLS- infront of the numbers in column B.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-08-2014
    Location
    alberta, canada
    MS-Off Ver
    2007
    Posts
    5

    Re: Ignore letters and characters

    Please refer to my attachment below.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Ignore letters and characters

    your attachment has numbers only. what happened to the letters?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Ignore letters and characters

    How about this...

  9. #9
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Ignore letters and characters

    i meant my attachment

  10. #10
    Registered User
    Join Date
    12-08-2014
    Location
    alberta, canada
    MS-Off Ver
    2007
    Posts
    5

    Re: Ignore letters and characters

    OMG!!!!! It worked! Thank you so much!!!!!

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Ignore letters and characters

    as a matter of interest, which one(s) worked for you??

  12. #12
    Registered User
    Join Date
    12-08-2014
    Location
    alberta, canada
    MS-Off Ver
    2007
    Posts
    5

    Re: Ignore letters and characters

    Your attachment Glenn worked. You are an expert.


    Quote Originally Posted by Glenn Kennedy View Post
    as a matter of interest, which one(s) worked for you??

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Ignore or remove letters so orderable, also make # into ##
    By Jimmyjazz in forum Outlook Formatting & Functions
    Replies: 6
    Last Post: 10-09-2012, 02:04 AM
  2. [SOLVED] VLOOKUP the middle characters, and ignore the first 3 characters and the last 2
    By bradallen in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-18-2012, 04:55 PM
  3. [SOLVED] Excel 2007 : IF formula to ignore letters in cell's...
    By rungel in forum Excel General
    Replies: 11
    Last Post: 05-18-2012, 08:04 AM
  4. Ignore certain letters
    By dude2125 in forum Excel General
    Replies: 2
    Last Post: 12-17-2007, 11:41 PM
  5. [SOLVED] How do i ignore letters in a formula?
    By ineedhelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2006, 10:40 PM

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