Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Archive: Business Applications
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram registry router security slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications > Archive: Business Applications >
Solved: Excel-lent cross reference

Reply  
Thread Tools
BettyAtKitchen's Avatar
Computer Specs
Member with 108 posts.
 
Join Date: Apr 2008
Experience: Currently struggling
12-Sep-2008, 02:24 PM #1
Solved: Excel-lent cross reference
I know this can be done, but I just cannot think how.

Store A Store B Store C Store D
111 111 222 555
222 333 333 666
333 555 666 888
444 777 888 999

Stores A, B, C and D sell products 111,222,333,444,555,666,777,888,999

My list has 15 colums and 10,000 rows so I really need help on this.

how can i find out Store A sells that are also sold be Store C.
I guess this is like cross-referencing
MRdNk's Avatar
Computer Specs
Member with 439 posts.
 
Join Date: Apr 2007
Location: UK
Experience: Damn I'm good!
12-Sep-2008, 03:29 PM #2
Check out Data>Pivot Table.
If you Google Excel Pivot tables, you should get some good info on how to use it.
Alternatively a Macro could be written to give you this information.

If you can't work out Pivot Tables, can be hard to understand at first, then let post an example spreadsheet with dummy data, and we can sort something out, dummy data, and how you want the results to be laid out.
__________________
MRdNk
-----------
Web App Developer: .NET, JavaScript and SQL
BettyAtKitchen's Avatar
Computer Specs
Member with 108 posts.
 
Join Date: Apr 2008
Experience: Currently struggling
12-Sep-2008, 04:52 PM #3
sorry. i tried to upload in csv, excel 2003 and 2007. is there any other way i can save an excel file so i can upload?
BettyAtKitchen's Avatar
Computer Specs
Member with 108 posts.
 
Join Date: Apr 2008
Experience: Currently struggling
12-Sep-2008, 04:53 PM #4
Thanks, MRdNk. I tried pivot table, but it would not work for me in this case. I agree with a macro, except I do not know how to do it.
jimr381's Avatar
Computer Specs
Senior Member with 4,183 posts.
 
Join Date: Jul 2007
Location: Vienna, VA
Experience: Computer Illiterate
12-Sep-2008, 05:13 PM #5
What exactly are you looking for as the end result? Are you looking for the part number, store A amount and store b amount?
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
12-Sep-2008, 06:31 PM #6
Quote:
Originally Posted by BettyAtKitchen
I tried pivot table, but it would not work for me in this case. I agree with a macro, except I do not know how to do it.
Pivot table won't work for that layout.

As for macro ... depends on how you actually want to use this. What springs to my mind is, a five column table. Col 1 = products (unique list), cols 2-5 = "Store A - D" populated with formulas to return "Yes" if stocked, "No" if not. Then you could use Autofilter to display products stocked at A and C, for example. See Sheet2 of attached.

HTH
Attached Files
File Type: xls betty.xls (16.5 KB, 252 views)
__________________
"Love All The People."
Bill Hicks, 1961 - 1994 -- R.I.P.
MRdNk's Avatar
Computer Specs
Member with 439 posts.
 
Join Date: Apr 2007
Location: UK
Experience: Damn I'm good!
12-Sep-2008, 07:49 PM #7
That's a pretty good solution / starting point from bomb #21.

As jimr381 notes, it depends on how you want the results to be displayed, do you want to be able to search by Product, want to send out a list of where someone can buy a particular product, or which is the best store for 5 of the products on the least number of visits, or general statistics.
__________________
MRdNk
-----------
Web App Developer: .NET, JavaScript and SQL
BettyAtKitchen's Avatar
Computer Specs
Member with 108 posts.
 
Join Date: Apr 2008
Experience: Currently struggling
13-Sep-2008, 02:12 AM #8
I uploaded a sample file.

The result I would like is to show the stores that sells bananas and plums, and spinach and beets.

I would like to be able to cross-reference the stores to the fruits and the stores.

thanks for all your responses.
Attached Files
File Type: xls Excel-lent cross-reference.xls (19.5 KB, 260 views)
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
13-Sep-2008, 09:28 AM #9
You could do that with the layout you have with a couple of autofilters, theoretically; see attached screenshots.

In practice, you can't "show the stores that sells bananas and plums, and spinach and beets" -- because no store sells bananas and plums.
Attached Thumbnails
Solved: Excel-lent cross reference-filters.jpg  
slurpee55's Avatar
Computer Specs
Distinguished Member with 7,837 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
13-Sep-2008, 10:59 AM #10
Betty, there are a few things that you might want to do with your file. For one thing, you have both "apples" and "apple" as fruits - something that will mess up any search or filtering. I think I would also use text to columns to split your listings up, so that you have 3 fruits sold and 2 vegetables (or however many are needed. That way you can filter across several.
Another problem with filtering the way bomb has laid out is that if a store sells bananas and pineapples - but not apples - it will see that it contains "apple" and show it anyway.
Attached Files
File Type: xls Excel-lent cross-reference reconsidered.xls (27.0 KB, 235 views)
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.
My theme song... | Affero - rate me!
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
13-Sep-2008, 01:35 PM #11
All your points taken. The first thing I tried before my last post was a text-to-columns restructure. But I think that's a non-starter, because you can't filter >1 fruit columns ... uhh, "progressively"?

Say you want to check stores that have bananas plus whatever veggie. A-010 has banana in column C. But if you filter by column B first, you filter out A-010 and can't then filter it back in by column C.

Does that make any sense?
__________________
"Love All The People."
Bill Hicks, 1961 - 1994 -- R.I.P.
slurpee55's Avatar
Computer Specs
Distinguished Member with 7,837 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
13-Sep-2008, 03:25 PM #12
well, if the foods were listed alphabetically you could avoid that, but they aren't.
How about using something like:
=IF(B2="apple","apple", IF(C2="apple","apple", IF(D2="apple","apple",""))) in a new column (basing this on the text to columns files still). Of course, you would have to do it for every fruit and vegetable, but ultimately you would have a column listing every store that sold each fruit or vegetable
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.
My theme song... | Affero - rate me!
Nic Cunliffe's Avatar
Computer Specs
Junior Member with 22 posts.
 
Join Date: Sep 2008
Location: Derbyshire
Experience: Intermediate
19-Sep-2008, 07:11 AM #13
Pivot works but your data must be in two columns and repeat the store name for each relevant product line.

StoreProductstore a111store a111store a222store a555Store b222Store b333Store b333Store b666store c333store c555store c666store c888store d444store d777store d888store d999

Putting product in col data and store in row data and count of product in data layout will work for you.



Count of ProductProductStore111222333444555666777888999Grand Totalstore a2114Store b1214store c11114store d11114Grand Total22312212116

Regards - Nic
Nic Cunliffe's Avatar
Computer Specs
Junior Member with 22 posts.
 
Join Date: Sep 2008
Location: Derbyshire
Experience: Intermediate
19-Sep-2008, 07:12 AM #14
Sorry, hate the way the reply looks great until you post the reply and then the format screws up.

Hope it still makes sense to you
BettyAtKitchen's Avatar
Computer Specs
Member with 108 posts.
 
Join Date: Apr 2008
Experience: Currently struggling
19-Sep-2008, 11:31 AM #15
Hi Slurpee and Bomb. I read, studied, and tried both your suggestions, and thank you for the time you spent on this.

I agree that text to column would not work. If i use filter to find which stores sells apples and also bananas, and if only store A sell bananas, and if store B sells apples only, then filtering would "filter out" each store's column.

is there like a mini-program or is it called a macro that can be created that would give the information with a few keystrokes? the end-users of this excel file are not very techy and creating a different formula for each item to be looked up would be quite a considered a monumental

thanks to all.
Reply

Tags
excel, vba

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:14 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.