+ Reply to Thread
Results 1 to 5 of 5

Compare and Sort a Column in Excel

  1. #1
    Registered User
    Join Date
    04-03-2005
    Posts
    4

    Cool Compare and Sort a Column in Excel

    I am a firefighter and when we have large wildfires in California we order a lot of overhead positions to assist at the fire. These overhead position fall into 1 of 6 categories.

    As I import the list of outstanding overhead requests into Excel, is there I way I can assign a value to each position? 1 through 6? I can then sort the entire list by number and hand a list of all "1's" to one person and "2's" to another person etc.

    I'd like to assign a value to each position COMPARED to a master list. On the master list I will tell Excel that a "Helicopter Coordinator" = 1 for example.

    Here's an example of some miscellaneous overhead positions:

    O-42 OPERATIONS BRANCH DIRECTOR (OPBD)

    O-44 TECHNICAL SPECIALIST - CREWS (CALIFORNIA ONLY)

    O-45 INCINET STATUS/CHECK-IN RECORDER (CALIFORNIA ONLY)

    O-47 OPERATIONS BRANCH DIRECTOR (OPBD)

    O-48 FIRE FIGHTER TYPE 2 (FFT2)

    O-50 HELICOPTER COORDINATOR (HLCO)

    O-52 MEDICAL UNIT LEADER (MEDL)

    Essentially I want to say that IF B2 equals anything on list 1 THEN put a 1 in the box. IF B2 equals anything on list 2 THEN put a 2 in the box, etc...

    Thanks!!

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Compare and Sort a Column in Excel

    You could do this with a VLOOKUP rather than a complicated IF.

    Create your table of positions in one column and the next column have your category number for that position.

    Then use VLOOKUP to first lookup the position name and then return the value in the second column.

    If you attach a sample workbook it would be easier.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Registered User
    Join Date
    04-03-2005
    Posts
    4

    Re: Compare and Sort a Column in Excel

    Awesome. Thanks. Attached.
    Attached Files Attached Files

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Compare and Sort a Column in Excel

    I've mocked up a sample for you using VLOOKUP.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-03-2005
    Posts
    4

    Re: Compare and Sort a Column in Excel

    I think I've got it... watched a tutorial on VLOOKUP...

    Thanks!!

+ 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. Replies: 1
    Last Post: 03-29-2018, 07:58 AM
  2. Excel sort help, three column conditional sort
    By moneill99 in forum Excel General
    Replies: 1
    Last Post: 03-24-2012, 04:05 PM
  3. Excel column compare - Help
    By Zuldan in forum Excel General
    Replies: 1
    Last Post: 07-23-2009, 02:33 AM
  4. Compare,Merge and sort data from differnet Excel worksheet in a new worksheet
    By supratik_pwc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2009, 08:23 AM
  5. Compare Rows column by Column in Large Excel File
    By arunsinghpundir in forum Excel General
    Replies: 1
    Last Post: 03-05-2007, 09:38 AM
  6. Excel Column Compare
    By dayaptl in forum Excel General
    Replies: 3
    Last Post: 11-24-2006, 11:17 AM
  7. How to compare two column of data and sort them out according
    By kuansheng in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-21-2006, 11:40 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