Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Logic question. Comparing 2 lists.

I am trying to seperate data based on 2 lists and can't seem to wrap my head
around it. I want to take the item in List1 and pull all the corresponding
occurances in list 2. (assume each word is in a different column.) The
result should be a 3rd list for all the car charges and a 4th list for the
truck charges. I don't want to sort list2 either. I would like to compare
the first item in list1 to the items in list2 and then compare the 2nd item
in list1 to all the items in list2. Hope that question makes sense. Thanks.

Something like this:
List1
Car
Truck

List2
Car gas $$$$
Truck gas $$$$
Car oilchange $$$
Car tires $$$$
Truck tires $$$$

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Logic question. Comparing 2 lists.

Brian,

The easiest way is to filter your second list, and choose to show values
based on a custom filter on the first column, set to either "Car" or "Truck"

And the best thing to do is to sort your list, even though you don't want
to. Sorting is easy.

If you need a separate list, copy just the visible cells of your second list
and paste it somewhere else, then remove the filters.

HTH,
Bernie
MS Excel MVP



"Brian S" <Brian wrote in message
...
I am trying to seperate data based on 2 lists and can't seem to wrap my
head
around it. I want to take the item in List1 and pull all the
corresponding
occurances in list 2. (assume each word is in a different column.) The
result should be a 3rd list for all the car charges and a 4th list for the
truck charges. I don't want to sort list2 either. I would like to
compare
the first item in list1 to the items in list2 and then compare the 2nd
item
in list1 to all the items in list2. Hope that question makes sense.
Thanks.

Something like this:
List1
Car
Truck

List2
Car gas $$$$
Truck gas $$$$
Car oilchange $$$
Car tires $$$$
Truck tires $$$$

Thanks.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two lists ExcelHelpNeeded Excel Worksheet Functions 3 September 5th 07 08:18 PM
Comparing to lists pgarcia Excel Discussion (Misc queries) 0 February 2nd 07 09:01 PM
Comparing lists John in MN Excel Worksheet Functions 1 May 24th 06 06:57 PM
Comparing Lists to Partial Lists depuyus[_7_] Excel Programming 0 August 5th 04 01:43 PM
Comparing lists Sheeny[_11_] Excel Programming 2 May 25th 04 04:44 PM


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"