+ Reply to Thread
Results 1 to 10 of 10

If statement for identifying a cell that starts with a letter or number

  1. #1
    Registered User
    Join Date
    04-07-2014
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    37

    If statement for identifying a cell that starts with a letter or number

    I need a formula in column J that will say "direct" if column K starts with a number or "indirect" if column K starts with a letter.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,465

    Re: If statement for identifying a cell that starts with a letter or number

    Do you mean the first cell in range in col K?

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

    Re: If statement for identifying a cell that starts with a letter or number

    Try this out

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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

  4. #4
    Registered User
    Join Date
    04-07-2014
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: If statement for identifying a cell that starts with a letter or number

    That is not working, they are all coming out saying "indirect"

  5. #5
    Registered User
    Join Date
    06-17-2014
    Location
    Uppsala, Sweden
    MS-Off Ver
    2010
    Posts
    43

    Re: If statement for identifying a cell that starts with a letter or number

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

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

    Re: If statement for identifying a cell that starts with a letter or number

    No they're not... Did you notice my amendment? The formula refers (now) to K1, they used to refer to A1. However, this is better, as it takes into account the possibility of a "%" or a "&", etc at the start of the cell.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-25-2014 at 09:37 AM.

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If statement for identifying a cell that starts with a letter or number

    Glenn's formula should work

    However you may try

    =IF(ISNUMBER(LEFT(K1,1)*1),"Direct","Indirect")
    Click just below left if it helps, Boo?ath?

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If statement for identifying a cell that starts with a letter or number

    Please Login or Register  to view this content.
    ...well, this will return "something else" if it's neither a number nor text.

  9. #9
    Registered User
    Join Date
    04-07-2014
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: If statement for identifying a cell that starts with a letter or number

    Okay, i got it to work, sorry about that Glenn. I must not have pasted it in correctly or something. Copying it from the spreadsheet worked! Thank you very much!

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

    Re: If statement for identifying a cell that starts with a letter or number

    Good !! If that's it, can you mark the thread as solved and (preferably) say thanks to those who helped by clicking the add reputation button at the foot of their post(s)?

+ 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. Replies: 1
    Last Post: 05-17-2013, 04:56 AM
  2. keep column if text starts with letter
    By dundo84 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 08:27 PM
  3. Change letter to number using if statement
    By pickledude in forum Excel General
    Replies: 14
    Last Post: 04-24-2012, 08:32 PM
  4. check if a Cell value starts with a Letter
    By vijay2482 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2009, 09:53 AM
  5. Replies: 2
    Last Post: 07-26-2005, 03:05 AM

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