+ Reply to Thread
Results 1 to 3 of 3

if value begins with certain number

  1. #1
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    if value begins with certain number

    I need to write a formula in column c that says if the value in cell a1 begins with 55 then write "apple" in c1, otherwise if the value in cell b1 is higher than 100 write "banana1" and if it is less write "banana2"
    Thank you!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: if value begins with certain number

    You can use LEFT function to get the first 2 characters, i.e. with this formula in C1

    =IF(LEFT(A1,2)="55","apple",IF(B1>100,"banana1","banana2"))
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: if value begins with certain number

    Perfect, thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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