+ Reply to Thread
Results 1 to 20 of 20

Trying to categorize using XLOOKUP without spaces in between

  1. #1
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Trying to categorize using XLOOKUP without spaces in between

    I'm trying to organize data by first letter (not alphabetical). The function I'm using right now is IF(LEFT(Sheet1!A1,1) = "L", Sheet!A1,"") I know there has to be an easier way I just don't know what it is.
    I'm new to the forum so I don't know how to attach an example. (I clicked attachments and it won't let me) So here's my best at an example

    Column 1 Column 2
    L5670 124
    A550 235
    A550 546
    L9732 293
    L2108 214
    L3456 234
    A0334 213
    A3405 348
    L3974 984
    Last edited by MitchMitchell; 03-07-2022 at 11:09 PM. Reason: Solved

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Trying to categorize using XLOOKUP without spaces in between

    @MitchMitchell follow method 2

    Please read and refer to this link, how to upload attachments
    https://www.excelforum.com/the-water...his-forum.html
    Last edited by wk9128; 03-07-2022 at 09:37 PM.

  3. #3
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    Attachment 771513
    Like this?

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Trying to categorize using XLOOKUP without spaces in between

    The attachment download is invalid, please follow method 2

  5. #5
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    Did it work this time?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    80

    Re: Trying to categorize using XLOOKUP without spaces in between

    Your attachment does not seem to have uploaded. It is pretty complicated in my view and poorly explained, but you will probably get it if you carefully follow the above instructions.

    In answer to your question, I agree that using XLOOKUP to sort data is quite cumbersome. To remove spaces you could use the search and replace function, highlighting the relevant data first.

    As for sorting, have you tried using a table? Click on any cell in your data and then go to the Insert tab. Insert>Table Enter. Now you are all set to sort on any column by clicking on the downwards pointing arrow at the top of each column in your table.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Trying to categorize using XLOOKUP without spaces in between

    worksheet or Tab name : Sheet2

    Cell A1 formula

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


    Display three column

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

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Trying to categorize using XLOOKUP without spaces in between

    Do you want the spaces in between? If not, why not use FILTER?

    =FILTER(Sheet1!A1:A32,LEFT(Sheet1!A1:A32,1)="L")

  9. #9
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    80

    Re: Trying to categorize using XLOOKUP without spaces in between

    Here's your file back with a table inserted. Click on the down arrow in Cell A1, and sort alphabetically then un-tick "select all", and re-tick the ones you want starting with the letter "L".
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    I'm trying to get the data from one sheet to another, sorry for not clarifying. I don't think a table will work since I need to use data from the same sheet. I'm using an IF(LEFT function in order to get the data and then use an XLOOKUP in order to get the data from the other sheet. The problem I'm running into is that I don't believe the IF(LEFT function to be the most efficient way to get the data. Considering the spaces I get from each cell that doesn't have an L (see function from original post). I want to be able to get the data from one sheet and into another while skipping over all the other data that doesn't have an L. I believe that the document has been uploaded but may be starting on the second sheet. Thank you for trying to help tho it is greatly appreciated

  11. #11
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Trying to categorize using XLOOKUP without spaces in between

    Have you tried my formula in Post #8?

  12. #12
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    This worked on the sheet that I uploaded, however, when I tried to apply it to my larger excel sheet I got the #VALUE problem. On the other excel sheet the codes (L234) are in the middle would this make the formula not work? I'm going to attach an updated version to be more similar to my larger document.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    It works when the codes (L6854) are on the left-most column however when I updated the worksheet to more accurately represent what I'm struggling with it doesn't work anymore

  14. #14
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Trying to categorize using XLOOKUP without spaces in between

    Well, the attached is NOT my formula from post 8, but yes, it makes a difference if you move the column around. You will have to change the references to Col A to Col C in the formula, like:
    =FILTER(Sheet1!C1:C32,LEFT(Sheet1!C1:C32)="L")

  15. #15
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    It worked! Thank you so much and thanks to everyone who tried to help me. If I have more questions about my document, but it's not exactly related to this should I post a new thread or continue on this one?

  16. #16
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Trying to categorize using XLOOKUP without spaces in between

    Quote Originally Posted by MitchMitchell View Post
    This worked on the sheet that I uploaded, however, when I tried to apply it to my larger excel sheet I got the #VALUE problem. On the other excel sheet the codes (L234) are in the middle would this make the formula not work? I'm going to attach an updated version to be more similar to my larger document.
    Cell B1 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  17. #17
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Trying to categorize using XLOOKUP without spaces in between

    You're welcome. You would post a new thread.

  18. #18
    Registered User
    Join Date
    03-07-2022
    Location
    New York
    MS-Off Ver
    Microsoft 365
    Posts
    29

    Re: Trying to categorize using XLOOKUP without spaces in between

    Thanks, Where do I click to change this to solved?

  19. #19
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    80

    Re: Trying to categorize using XLOOKUP without spaces in between

    Very simple, Just insert this formula anywhere, once, in juist one cell on your spreadsheet and it will list all the "L"s with no spaces:

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

  20. #20
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Trying to categorize using XLOOKUP without spaces in between

    @MitchMitchell You're Welcome. Glad to help . Thank You for the feedback

+ 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. Copying a list without spaces to cells with spaces between them.
    By NoviceRenegade in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-19-2019, 01:12 AM
  2. Replies: 9
    Last Post: 12-31-2018, 01:29 PM
  3. Formula To Create a List Without Spaces From Data With Spaces
    By nicklasnicklas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2017, 01:58 AM
  4. [SOLVED] Replacing double spaces with single spaces
    By EdWoods in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2013, 01:20 AM
  5. [SOLVED] Categorize sheets
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2013, 09:58 PM
  6. categorize
    By shane.kelly in forum Excel General
    Replies: 2
    Last Post: 04-02-2012, 01:33 PM
  7. Excel 2007 : VLookup and categorize
    By elchenuk in forum Excel General
    Replies: 1
    Last Post: 11-01-2010, 08:26 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