+ Reply to Thread
Results 1 to 8 of 8

IF with LEFT Function

  1. #1
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    IF with LEFT Function

    Hello,

    i cant seem to workaround this without making a new column..

    A
    1- 180522-10
    2- 180522-20
    3- 180523-10
    4- 180523-20
    5- 180523-30
    6- 180524-10


    =IF(LEFT(A1;6)=(LEFT(A2;6)*"DOUBLE";"OK")

    meaning A1 should compared with A2, A2 compared with A3 and so on..

    can you help me pls?

    thank you
    Last edited by Sultix; 01-25-2009 at 10:11 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106
    Quote Originally Posted by DonkeyOte View Post
    Please Login or Register  to view this content.
    thanks

    works now with these changes aswell =if(left(a1;6)=left(a2;6)

    i am really confused as commas are not accepted in excel 2007 and the * arent either..

    thanks for ur help

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Commas vs Semi-Colon -- will depend entirely upon your regional settings.

    As for asterisk, in your formula this is not a valid operator... in what context were you trying to use it ?

  5. #5
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106
    thanks for the clarifying..

    dunno where i got the asterix, i just thought i had to enter it.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you might want to consider

    =SUMPRODUCT(--(LEFT($A$1:$A$100,6)=LEFT(A1,6))) which would tell you how many of each in same column in case thet weren't next to each other

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    If you did want to do that you don't need to use an array approach, just use COUNTIF:

    =COUNTIF(A1:A100,LEFT(A1,6)&"*")

  8. #8
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106
    Not really, the last both formulas are only counting same cells within column.

    The first Formula is what i needed... which i corrected thanks to DonkeyOte..

+ 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