+ Reply to Thread
Results 1 to 5 of 5

check if cell is blank or start with**

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    check if cell is blank or start with**

    Dear all,

    i search the forum for my question but can't find an answer.
    What is the formula for checking a cell if its blank or start with the tect "SM"
    In case of blank or start with "SM" the rewsult should be blank otherwise the result should be the text "project"

    Thank you very much in advance for your feedback

    BR Suske

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

    Re: check if cell is blank or start with**

    Try this:

    =IF(OR(A1="";LEFT(A1;2)="SM");"";"project")

    I've put semicolons in the formula as I expect that you use them - if not, replace them with commas.

    Hope this helps.

    Pete

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

    Re: check if cell is blank or start with**

    Try this:

    =IF(OR(A1="";LEFT(A1;2)="SM");"";"project")

    I've put semicolons in the formula as I expect that you use them - if not, replace them with commas.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-21-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Red face Re: check if cell is blank or start with**

    Yes Thank you Pete it works, Super

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

    Re: check if cell is blank or start with**

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Find last non-blank cell in a column then used it as Start of a range
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2015, 06:27 PM
  2. Insert Numbers Counting From 1 upwards Until It Reaches A Blank Cell Then Start Again
    By TkdKidSnake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2013, 02:26 PM
  3. Code to check if cell value start with int.
    By Rob* in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2012, 07:56 AM
  4. Check if Blank, If so, Check the Next Cell
    By Watterboy in forum Excel General
    Replies: 5
    Last Post: 12-08-2011, 01:39 PM
  5. Start list after every blank cell
    By ruttian in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-20-2010, 03:54 PM
  6. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  7. Start count over after blank cell
    By RPS4444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2008, 11:27 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