Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


Hi all,

I have a document I need to do.

I have 2 xls doc sheets. Both docs have 2 colums, 1st is the US state,
the second is the City. I need to build a table that will tell me how
many rows (State and City) matches between the 2 sheets and if
possible:

Build a table showing how many matches and how many dont,
list the ones that dont,
build a chart

How can I do this? I dont even know where to start....

The 1 sheet is the master, has 200 or so rows that the other sheet must
match against.

Thanks for any help you can provide me.


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


Can Anyone help with this? At least tell me how this should be done?


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


ok, let me put this in a proper example for better under standing:

Sheet1:
Col A = STATE,
Col B = CITY

Sheet 2:
Col A = STATE,
Col B = CITY
Col C = Does Cell A1:B1 match any in Sheet 1 Cell A1:B2162

Example:
Sheet 1 Sheet 2
State City State City Match?
CA Frezno AL Mobile NO
AR Ferndale CA Frezno YES
AZ Phoenix AZ Tucson NO

Does this help more? The colum C in sheet 2 should be the one having
the formula for each row.

Hope this helps as I am despratly trying to make this work. Been
looking around the net and found this:

=if(sheet1!A1:B1="","",if(type(vlookup(Sheet1!A1:B 1,A$1:B$2162,1,false))
=A1:B1,"wrong","correct"))

But it does not work, or maybe I have it wrong or something... I dont
know. And I dont know where or what that second line does or where to
put it...

send an email if you want the excel sheet as I cannot attache it here.


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Match 2 sheet and build table

In C2 (headers in row 1???):

=isnumber(match(1,(a2=sheet1!$a$2:$a$2162)*(b2=she et1!$b$2:$b$2162),0))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

If you don't have headers, change those top rows to 1.

npereira wrote:

ok, let me put this in a proper example for better under standing:

Sheet1:
Col A = STATE,
Col B = CITY

Sheet 2:
Col A = STATE,
Col B = CITY
Col C = Does Cell A1:B1 match any in Sheet 1 Cell A1:B2162

Example:
Sheet 1 Sheet 2
State City State City Match?
CA Frezno AL Mobile NO
AR Ferndale CA Frezno YES
AZ Phoenix AZ Tucson NO

Does this help more? The colum C in sheet 2 should be the one having
the formula for each row.

Hope this helps as I am despratly trying to make this work. Been
looking around the net and found this:

=if(sheet1!A1:B1="","",if(type(vlookup(Sheet1!A1:B 1,A$1:B$2162,1,false))
=A1:B1,"wrong","correct"))

But it does not work, or maybe I have it wrong or something... I dont
know. And I dont know where or what that second line does or where to
put it...

send an email if you want the excel sheet as I cannot attache it here.

--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


somthing is wrong as even if there is a match it says FALSE...

I have no headers... the first row is where the data starts

thanks


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Match 2 sheet and build table

Did you use ctrl-shift-enter?

Are you sure the spelling is exactly the same? No leading/trailing/embedded
spaces???



npereira wrote:

somthing is wrong as even if there is a match it says FALSE...

I have no headers... the first row is where the data starts

thanks

--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


Got it working with this formula...

=IF(ISERROR(IF(VLOOKUP(A4,Sheet1!$A$2:$B$2162,2,FA LSE)=B4,"YES","")),"",IF(VLOOKUP(A4,Sheet1!$A$2:$B $2162,2,FALSE)=B4,"YES",""))

Thanks !


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


Although, 1 issue is I had to put the City in column A and State in
Column B or else it would'nt work


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Match 2 sheet and build table


Now the only issue is to build a Pie chart that is dynamic with a column
setup as a List (column N has Population desity per City) but when I set
my list for that column, my pie chart screws up and isnt dynamic.


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Match 2 sheet and build table

I don't work enough with charts to be helpful.

npereira wrote:

Now the only issue is to build a Pie chart that is dynamic with a column
setup as a List (column N has Population desity per City) but when I set
my list for that column, my pie chart screws up and isnt dynamic.

--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=570506


--

Dave Peterson
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
How do I build a excel sheet that counts item in an inventory kenny Excel Worksheet Functions 2 May 9th 06 04:03 PM
How do i build a search table in excel Obi-Wan Kenobi Excel Worksheet Functions 2 March 20th 06 03:20 PM
Build a single order sheet from a multiple page material list. Ralph-novice Excel Discussion (Misc queries) 1 January 27th 06 03:06 PM
Is there a way to build a timeline PPT spread sheet from excel Daniel M. Excel Worksheet Functions 0 December 7th 05 05:12 PM
Inventory sheet to track, order & reduce quantity from master. drc536 New Users to Excel 2 October 23rd 05 05:36 PM


All times are GMT +1. The time now is 01:13 PM.

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"