Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADiscrete1
 
Posts: n/a
Default Having trouble with vlookup and match

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Having trouble with vlookup and match

Use the vlookup function. If your data in sheet1 begins in A2, then your
function in B2 would be =vlookup($a2,Sheet2!A:D,2,false). Copy that formula
to columns C, D, etc, changing the final 2 to a 3 in column C, 4 in column D,
and so on (if your additional information extends past column D, you'll have
to adjust the A:D so that the ending column is the final column of your
additional data). Then select all the formulas in row 2 and autofill them
into the remaining rows of your table in sheet1.

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADiscrete1
 
Posts: n/a
Default Having trouble with vlookup and match

Thanks, I will try right now.

Aside: By "auto-fill" you mean drag down, yes?

"bpeltzer" wrote:

Use the vlookup function. If your data in sheet1 begins in A2, then your
function in B2 would be =vlookup($a2,Sheet2!A:D,2,false). Copy that formula
to columns C, D, etc, changing the final 2 to a 3 in column C, 4 in column D,
and so on (if your additional information extends past column D, you'll have
to adjust the A:D so that the ending column is the final column of your
additional data). Then select all the formulas in row 2 and autofill them
into the remaining rows of your table in sheet1.

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADiscrete1
 
Posts: n/a
Default Having trouble with vlookup and match

I got all #N/A's; any guess?

"bpeltzer" wrote:

Use the vlookup function. If your data in sheet1 begins in A2, then your
function in B2 would be =vlookup($a2,Sheet2!A:D,2,false). Copy that formula
to columns C, D, etc, changing the final 2 to a 3 in column C, 4 in column D,
and so on (if your additional information extends past column D, you'll have
to adjust the A:D so that the ending column is the final column of your
additional data). Then select all the formulas in row 2 and autofill them
into the remaining rows of your table in sheet1.

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Having trouble with vlookup and match

#N/A indicates that the contents of A2 weren't found anywhere in column A on
sheet2. Are you confident that that's NOT the case? Is it possible that
either the data in sheet1!A2 or the corresponding entry in column A of sheet2
has spaces before or after, or perhaps one is text and the other numeric?
Spaces and/or strings are the issue, which has the spaces and which doesn't?
Which is numeric and which isn't?

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADiscrete1
 
Posts: n/a
Default Having trouble with vlookup and match

when I cut and pasted and asked it to find it found it; wouldn't that denote
all was in order with format?

"bpeltzer" wrote:

#N/A indicates that the contents of A2 weren't found anywhere in column A on
sheet2. Are you confident that that's NOT the case? Is it possible that
either the data in sheet1!A2 or the corresponding entry in column A of sheet2
has spaces before or after, or perhaps one is text and the other numeric?
Spaces and/or strings are the issue, which has the spaces and which doesn't?
Which is numeric and which isn't?

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Having trouble with vlookup and match

No it wouldn't. The fnd is a little more forgiving. Best way to check for
spaces is to select the cell and click in the formula bar. If you go to the
very beginning of the 'formula', is there a space before the number? If you
go the very end, is there a space after?
As for whether a 'number' really is a number or just a string representation
of a number, click in the cell and apply the comma style. Did you get two
decimal points? Yes implies a number, no implies a string.
Check for both issues both on Sheet1!A2 and the matching cell on Sheet2.

"ADiscrete1" wrote:

when I cut and pasted and asked it to find it found it; wouldn't that denote
all was in order with format?

"bpeltzer" wrote:

#N/A indicates that the contents of A2 weren't found anywhere in column A on
sheet2. Are you confident that that's NOT the case? Is it possible that
either the data in sheet1!A2 or the corresponding entry in column A of sheet2
has spaces before or after, or perhaps one is text and the other numeric?
Spaces and/or strings are the issue, which has the spaces and which doesn't?
Which is numeric and which isn't?

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Having trouble with vlookup and match

Sorry; that should read: IF spaces and/or strings are the issue...

"bpeltzer" wrote:

#N/A indicates that the contents of A2 weren't found anywhere in column A on
sheet2. Are you confident that that's NOT the case? Is it possible that
either the data in sheet1!A2 or the corresponding entry in column A of sheet2
has spaces before or after, or perhaps one is text and the other numeric?
Spaces and/or strings are the issue, which has the spaces and which doesn't?
Which is numeric and which isn't?

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ADiscrete1
 
Posts: n/a
Default Having trouble with vlookup and match


Thanks for your help!, I got it!!!!!!!!

"bpeltzer" wrote:

Sorry; that should read: IF spaces and/or strings are the issue...

"bpeltzer" wrote:

#N/A indicates that the contents of A2 weren't found anywhere in column A on
sheet2. Are you confident that that's NOT the case? Is it possible that
either the data in sheet1!A2 or the corresponding entry in column A of sheet2
has spaces before or after, or perhaps one is text and the other numeric?
Spaces and/or strings are the issue, which has the spaces and which doesn't?
Which is numeric and which isn't?

"ADiscrete1" wrote:

If column a has a limited # of phone numbers in 1 sheet and in the 2nd sheet
I have those numbers embedded with many others as well as additional
information in columns b,c,d,... =

how do I pull the data in columns b,c,d,... only associated with the phone
numbers in sheet 1?

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
Tricky ... Pullout related rows that match a single word using Vlookup YJL Excel Discussion (Misc queries) 18 November 14th 05 08:22 AM
can vlookup be forced to make a case sensitive match? alan Excel Discussion (Misc queries) 1 September 22nd 05 12:59 PM
is there a way to search with vlookup to match more than 1 column puppy Excel Discussion (Misc queries) 7 June 30th 05 07:41 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 09:08 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"