+ Reply to Thread
Results 1 to 4 of 4

Sort Data into Groups

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    West Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Sort Data into Groups

    Hi, I have a simple Costing Sheet which I use Vlookup to collect Description, UOM and unit price (see Experimental.xlsx below). This works well, I find the item code I need on the Data sheet and insert it in column A in the VLookup sheet. However as I add more Item rows to the data list it becomes increasingly more time consuming to find the Item code that I require. I thought that by adding groups I would be able to get some form of order, but as you all know VLookup requires the array to be in ascending order so if I sort into groups the Item Codes gets mixed up and VLookup does not work. Does anybody know of a way of doing this?
    TIA Agro12

    Experimental.xlsx

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

    Re: Sort Data into Groups

    The data does not have to be sorted for VLOOKUP - you can use the 4th (optional) parameter set to zero or FALSE to look for an exact match, so your formula in B2 of the lookup sheet will be:

    =IFERROR(VLOOKUP(A2,Data!$A$2:$D$11,3,0), " ")

    Make a similar change to the formula in D2 and E2, and then you can arrange your data in whatever order you require.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    12,895

    Re: Sort Data into Groups

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

  4. #4
    Registered User
    Join Date
    04-21-2014
    Location
    West Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sort Data into Groups

    Thanks Dave & Pete, that's Brilliant. I didn't think that it would be so simple.
    Agro12

+ 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. Need to sort groups of data and maintain rows.
    By PittyPotts in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 02:29 PM
  2. Can't figure out how to sort groups of data
    By Sathed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2012, 11:51 AM
  3. Sort two different groups of data
    By darkjedi in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 05:12 PM
  4. Need to sort groups of data by name or date
    By mockturtle29 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2011, 07:29 PM
  5. Insert row when column data changes and sort groups
    By beat in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-08-2011, 07:09 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