+ Reply to Thread
Results 1 to 5 of 5

Using LEFT and RIGHT and IF formulas....

  1. #1
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Using LEFT and RIGHT and IF formulas....

    Hi guys,

    I've got a spreadsheet attached here. What I want to do is include a formula in column B that will take only the cells that end in DRW and then return the first 8 number characters of the cell itself. I've been using the IF formula but have been getting errors in it.
    This is probably very easy to do!
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using LEFT and RIGHT and IF formulas....

    Hi

    Do you mean something like this?

    =IF(RIGHT(A1,3)="DRW",LEFT(A1,8),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Using LEFT and RIGHT and IF formulas....

    Try this
    Please Login or Register  to view this content.
    Drag/Fill Down

    If you need a number returned and not a string ...
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: Using LEFT and RIGHT and IF formulas....

    Put this in B1:

    =IF(RIGHT(TRIM(A1),3)="DRW",LEFT(A1,8),"")

    and copy down.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: Using LEFT and RIGHT and IF formulas....

    Ye guys are great! Love ye!!

+ 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