+ Reply to Thread
Results 1 to 5 of 5

Using a LEFT Function inside of an IF Statement

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Angry Using a LEFT Function inside of an IF Statement

    Use the Left and If Functions to display the word DISCARD if the address is a PO Box, otherwise leave the cell blank.

    I am referencing column D and this is what I got but I only get a blank cell no DISCARDS

    =IF(LEFT(D2="PO Box",6),"discard","")

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Using a LEFT Function inside of an IF Statement

    Hi Squirt03,

    Try below one:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Using a LEFT Function inside of an IF Statement

    =IF(LEFT(D2,6)="PO Box","discard","")
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using a LEFT Function inside of an IF Statement

    Hi Squirt03,

    Welcome to the forum

    Try this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    02-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Using a LEFT Function inside of an IF Statement

    Thanks Everyone!!! I will try to help when I can.

+ 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