+ Reply to Thread
Results 1 to 17 of 17

Formula does not return the correct in all conditions

  1. #1
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Formula does not return the correct in all conditions

    Column A Column B (return)
    WindowsDevice 5.1.478 Windows
    Symbole 5.2.0 Symbole
    Symbole Symbole
    BloomBerry 7.0.0 Bloom
    Banan 4.0.1 Banan


    =LEFT(A2,FIND(" ",A2))

    =LEFT(A2,FIND(" ",A2))&MID(A2,FIND(" ",A2)+1,0)

    I have tried both formulas, but do not work in all cells, specially on this line Symbole Symbole

    Could some one came up with a formula please?

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    could you upload a sample file, showing what your data looks like and what you expect as the result?
    keep any personal or confidential information out of your sample, but do have it use representative data (ie - if column A is numbers and formatted as numbers, please include in sample);
    it should also have any expected "problem" data (blank cells, mis-entered data, etc..) to make answering the problem easier..

    Add a File - click advanced (next to quick post), scroll down until you see "manage attachments", click that and select "add files" (top right corner). click "select files" find your file, select file, click "upload", click 'done" bottom right. click "submit reply"

    Hope that helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Formula does not return the correct in all conditions

    Please see attached
    Attached Files Attached Files

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    okay, part of the problem (at least, from what I see you want returned) is that you are trying to do different types of separation, one can be got by looking for a space, another you actually want to split a word-ie BloomBerry returns Bloom..I don't think you can do all that with just one formula...for MOST of the data you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    in A2, dragged down.
    Not sure about that Split though..

    Hope this helps
    Attached Files Attached Files
    Last edited by dredwolf; 11-23-2012 at 03:33 PM.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Formula does not return the correct in all conditions

    Dred! Thanks for your help!
    I think That was what I thought. I think you have the same formula as mine

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    You are welcome
    I''m still trying things to separate out Bloom from BloomBerry AND not affect the rest of the solution, but to be honest, I think you would need a completely different filter to do it

    Anyways, glad I could help a little bit
    Last edited by dredwolf; 11-22-2012 at 08:29 PM. Reason: spelling error in red..lol

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Formula does not return the correct in all conditions

    Please take your time and try.
    Basically for now I wish to return the first word only. For e.g WindowsDevice
    should return only "Windows"

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    Aaaah...Okay, your sample shows you want everything to the first space, or entire string if no space...that does change things a bit..

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula does not return the correct in all conditions

    you can lookup from a list and specify anything you want, see attached
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    Yes that works.
    Although, what if you don't actually know what you are looking for?
    I think this is a job for a Macro, or UDF, but it is beyond my abilities as yet..

    Working on it, and maybe I'll get lucky and not spend the rest of the night debugging a simple loop...

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula does not return the correct in all conditions

    of course you know what your looking for its easy enough to split with text to columns then extract an unique list. thn you can define anything you want
    Last edited by martindwilson; 11-22-2012 at 09:26 PM.

  12. #12
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Formula does not return the correct in all conditions

    from NBVC

    =LEFT(D2,SMALL(FIND(0,SUBSTITUTE(D2,CHAR(ROW(INDIRECT("65:90"))),0)&0),2)-1) -array


    problem.... don't recognize correctly
    BloomBerry 0.0.0
    BloomBerry 4.5.0

    receiving 11th character supposed 6, any thoughts....
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  13. #13
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    Okay, check the attachment and see if that does it
    Added a UDF (with many Thanks to Richard Buttrey and jindon,all Kudos and Rep to them please!)
    Please Login or Register  to view this content.
    to add the code, hit <alt>+<F11>,INSERT>Module, copy code to module, then use the Function as needed

    {I know this code will turn out very useful in my own project )

    Edit
    cols F & G were there for testing purpose on my own attempt...
    Attached Files Attached Files
    Last edited by dredwolf; 11-23-2012 at 12:11 AM.

  14. #14
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Formula does not return the correct in all conditions

    Dred and Vlady!
    Thank you very much for your help!

    I do not know how these functions are supposed to work.
    My understanding is, it should return the value of source data

    When I type the function name, it returns a no value. I then tried to enter the function name, followed by comma, and the then start of the integer. If I type any integer value(1-9), it returns the value of the integer. I am lost. My understanding is that this function has two arguments:
    source As String, Start As Integer.
    The source is my data in column A, but not sure where the source is coming from.
    Thanks for your help

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

    Re: Formula does not return the correct in all conditions

    Finally I ended with the below formula

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


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


    Refer the attached file for details!
    Attached Files Attached Files


    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

  16. #16
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula does not return the correct in all conditions

    You just use the Formula like any other Excel Formula,ColumnD shows the results
    The Parameters are Source( generally a string)and a start position within the source to start looking for AN UPPERCASE letter, it will return the position within the Source that it finds an uppercase letter, or 0 if no uppercase letter is found.

    =IFERROR(LEFT(A2,FindUpper(A2,2)-1),A2) will look for an upper case letter in A2, if it finds one, it will return everything before that letter, if it doesn't it will return the entire contents of A2

    Hope that helps

    -Edit-
    I guess i removed the F&G columns, which is good, they were just there for me to test the function

  17. #17
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Formula does not return the correct in all conditions

    Thanks every body for your contribution!

+ 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