+ Reply to Thread
Results 1 to 10 of 10

Find position of next characters in a column

  1. #1
    Registered User
    Join Date
    04-27-2017
    Location
    -
    MS-Off Ver
    2013
    Posts
    4

    Find position of next characters in a column

    Hi everyone !

    I'm trying to find the position of the next characters in a column (thanks for the suggestion Richard !).
    Basically I have a column with the values A A A B A B A A B for example and want to return in another column the row of the next appearance of "B", which would be something like 4 4 4 4 6 6 9 9 9 in the example.

    I tried to use this formula to solve the problem : =SMALL(IF($E$1:$E$20000="Réalisé";ROW($E$1:$E$20000);"");3)
    I don't know if this is the easiest way to proceed but it seems to be buggy as well. If I use the "insert function" option, the formula seems to work (http://prntscr.com/f1jixd) but when I click "OK" it shows #Value! in the cell !

    If anyone has an idea on how to do this better or how to solve the #Value! problem I'd be very grateful !

    Thanks in advance, Doule.
    Last edited by doule; 04-27-2017 at 01:22 PM. Reason: Title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem with a function

    Hi,

    This seems a much simplified example and may therefore not represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    However that said and subject to that caveat with your As & Bs in A1:A9 in B1 copied down enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  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,720

    Re: Find position of next characters in a column

    Quote Originally Posted by doule View Post
    Changed to reflect inadequate title
    Yes, but now you have deleted the description of what you want to achieve.

    Pete

  4. #4
    Registered User
    Join Date
    04-27-2017
    Location
    -
    MS-Off Ver
    2013
    Posts
    4

    Re: Problem with a function

    Hi, since the text was deleted should I repost it and delete this thread or edit the first message ? I didn't mean to be to vague in my description sorry !

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find position of next characters in a column

    ...sorry Doule.

    I completely screwed that up. I'd originally posted a response, noticed Ali's comment about the inadequate title and went into your post to change the title for you, in the process I seem to have removed your original request.

    If you'd care to edit the post and add it back in I'll change the title, (or you can do that yourself - suggestion 'Find position of next character in a column').

    Then I can unlock the response I gave.

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

    Re: Problem with a function

    I suggest you repeat your description here in the next post (it's not a good idea to edit a previous post, as contributors to the thread will not get a notification of the changes). You might also think about attaching a sample workbook to help explain your requirements more clearly.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Please note that the Paperclip icon does not work.

    Pete

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Find position of next characters in a column

    The thread title was the problem. Please go back and edit the opening post in the thread - the message there did not need changing.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    04-27-2017
    Location
    -
    MS-Off Ver
    2013
    Posts
    4

    Re: Find position of next characters in a column

    I edited the first post and hopefully made my problem clear ! Thanks for your help

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find position of next characters in a column

    Thanks. Somewhat out of order but see #2

  10. #10
    Registered User
    Join Date
    04-27-2017
    Location
    -
    MS-Off Ver
    2013
    Posts
    4

    Re: Find position of next characters in a column

    Thank you very much worked perfectly with the 20 000 rows !

+ 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. [VBA] Problem with outmail function - function sends mails only to 1 recepient
    By sauron12 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2015, 03:30 PM
  2. Replies: 6
    Last Post: 10-20-2013, 07:16 PM
  3. If function problem
    By coldblood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2013, 12:40 AM
  4. Problem Inserting Round function into an IF function
    By Ash87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 05:37 PM
  5. Problem w IF Function
    By jdmh22a in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2007, 02:14 PM
  6. IF function problem
    By dvonj in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-10-2005, 10:06 AM

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