Closed Thread
Results 1 to 12 of 12

list all values that begin with a specific letter

  1. #1
    Forum Contributor
    Join Date
    06-17-2015
    Location
    Norwich, England
    MS-Off Ver
    2016 (Office 365)
    Posts
    103

    list all values that begin with a specific letter

    I am able to use the following to list all values in a column (C2:C3177) of one spreadsheet that have the value (C6) in another spreadsheet - works very nicely

    =INDEX(Sheet1!$C$2:$C$3177,SMALL(IF(Sheet1!$C$2:$C$3177=C6,ROW(Sheet1!$C$2:$C$3177)),ROW(1:1))-1,1)

    What I'd like to do is list all the values in C2:C3177 that start with a specific letter - preferably this letter would be defined by the value in a cell (eg C6)

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    Did you try this?

    =INDEX(Sheet1!$C$2:$C$3177,SMALL(IF(LEFT(Sheet1!$C$2:$C$3177,1)=C6,ROW(Sheet1!$C$2:$C$3177)),ROW(1:1))-1,1)
    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.

  3. #3
    Forum Contributor
    Join Date
    06-17-2015
    Location
    Norwich, England
    MS-Off Ver
    2016 (Office 365)
    Posts
    103

    Re: list all values that begin with a specific letter

    Many thanks Ali - should have spotted that's where I could add the Left function - keep up the great help! and Merry Christmas

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    Happy to help. Merry Christmas!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Contributor
    Join Date
    06-17-2015
    Location
    Norwich, England
    MS-Off Ver
    2016 (Office 365)
    Posts
    103

    Re: list all values that begin with a specific letter

    Ah - whlist we're here - the next step would be to count the number of cells in the column that start with the value in C6

    I can use =COUNTIF(Sheet1!C2:C3177,"c*") to find how many start with c but would ideally like the formula to be based on the value in C6 so I can change it as needed?

  6. #6
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    It's a completely different question (!), however did you try this?

    =COUNTIF(Sheet1!C2:C3177,C6&"*")

  7. #7
    Forum Contributor
    Join Date
    06-17-2015
    Location
    Norwich, England
    MS-Off Ver
    2016 (Office 365)
    Posts
    103

    Re: list all values that begin with a specific letter

    Oops - sorry - yes I suppose it is - that work's great - how's sunny Ipswich this morning - I'm up in windy Norwich

  8. #8
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    It's not windy (yet!), but it is dull. Very mild, though - 10C.

    I do the website for a Norfolk watercolour artist, so I am very familiar with the beauty spots up your way!

  9. #9
    Forum Contributor
    Join Date
    06-17-2015
    Location
    Norwich, England
    MS-Off Ver
    2016 (Office 365)
    Posts
    103

    Re: list all values that begin with a specific letter

    Unseasonably mild! Thanks again Ali

  10. #10
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Registered User
    Join Date
    12-24-2023
    Location
    Melbourne
    MS-Off Ver
    2019
    Posts
    7

    Re: list all values that begin with a specific letter

    Hi, apologies for resurrecting an old thread, but... the OP states the scenario I am trying to solve (list all values that begin with a specific letter) but the formula provided by AliGW isn't working for me.

    I have a long list of 'names' (multiple words and single words e.g. 'Me Too', 'Tubbies on Telly' or 'Footing') on a sheet. For context this is a logbook of rock climbs in different places.
    On a different sheet I want to list all cells that start with a specific letter that is entered in cell M1.

    I modified Ali's formula to use my sheets =INDEX('all boulders'!$D$12:$D$7263,SMALL(IF(LEFT('all boulders'!$D$12:$D$7263,1)=$M$1,ROW('all boulders'!$D$12:$D$7263)),ROW(1:1))-1,1)
    but it returns #VALUE! unless I make it an array formula by doing ctrl+shift+enter, at which point it returns a valid name from the list but this name does not start with the letter entered in cell M1. e.g. M1 = "J", result given is "Thriving Sincerity".

    Is there some I'm missing here?

    I have been generating similar lists from this data, returning the names based on what 'place' I select from a dropdown box using this formula:
    =IFERROR(INDEX('all boulders'!$D$12:$D$7642,AGGREGATE(15,6,(ROW('all boulders'!$B$12:$B$7642)-ROW('all boulders'!$B$12)+ 1)/('all boulders'!$B$12:$B$7642 =$H$1), ROW('all boulders'!$A1))), "")
    The value in $H$1 is the selected 'place' that I want the list of names to be at. i.e. 'Tubbies on Telly' is at a place called 'Fontainebleau'.
    I am able to drag this formula down until it returns '0' when there are no more names listed as being in Fontainebleau.

    I thought I might be able to modify this formula to list all names beginning with a specific letter by using the LEFT formula instead of the AGGREGATE formula but I can't get it to work.

    I confess I am not knowledgable with excel formula. Up to now I have found answers to my problems by searching the web and manipulating the suggested solutions I find. e.g. I can't explain to you/anyone how the above formula works exactly but I kind of see what it is doing!

    Apologies for the long, potentially confusing, post. I hope one of you amazing peeps can help me out.
    Regards,
    rew

    attached file, zipped.
    Attached Files Attached Files

  12. #12
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: list all values that begin with a specific letter

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar or even the same to this thread, we have a rule that you open your own thread on the issue and do not piggy back another member's thread.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Only Return Values that Start with a Specific Letter
    By lowprofile in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2014, 12:03 PM
  2. Text Filter-begin With... (multiple Begin Withs?)
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2013, 02:12 PM
  3. Need to list all values that begin with a certain series of numbers
    By Jlabombard in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2012, 03:29 PM
  4. Filter names that begin with certain letter
    By enphynity in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2012, 11:51 AM
  5. How to Subtotal values that begin with a letter?
    By sstendahl in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 10:31 PM
  6. Text Filter-Begin with... (multiple begin withs?)
    By flyflipper in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2010, 06:29 PM
  7. Replies: 2
    Last Post: 07-04-2006, 09:50 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