Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default matching excel columns

I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default matching excel columns

If I understand correctly, you have something like this:

Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text

And in another worksheet (same workbook maybe?)

Column A
2/1/2007
3/1/2007

and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.

If so,

in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)

will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:

=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200,2,FALSE))

will leave a blank instead.

"newyorkjoy" wrote:

I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default matching excel columns

Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!


"Sean Timmons" wrote:

If I understand correctly, you have something like this:

Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text

And in another worksheet (same workbook maybe?)

Column A
2/1/2007
3/1/2007

and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.

If so,

in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)

will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:

=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200,2,FALSE))

will leave a blank instead.

"newyorkjoy" wrote:

I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default matching excel columns

Have to ask... are you sure there are dates that match on each sheet? Oh, and
most importantly, do the dates also have times listed? (click on the cell and
look in the formula bar to be sure)

It may be best to, in another column, type =round(A2,0) and paste down to
get rid of the hours and minutes.
Then do a VLOOKUP as below looing at the rounded values...



"newyorkjoy" wrote:

Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!


"Sean Timmons" wrote:

If I understand correctly, you have something like this:

Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text

And in another worksheet (same workbook maybe?)

Column A
2/1/2007
3/1/2007

and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.

If so,

in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)

will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:

=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200,2,FALSE))

will leave a blank instead.

"newyorkjoy" wrote:

I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default matching excel columns

Actually, my problem is slightly different from the way you described it.
Worksheet one has SOME dates in Column A, with data in Column B.
Worksheet two has ALL Dates from 1900 to the present. I must put in Column
B of Worksheet two the information that is found for the matching date in
worksheet 1 in column B. Please help. Thank you. It would probably be easier
for me if I can have worksheet One with all the dates, and worksheet two
with some of the dates that have to be matched to worksheet one.
newyorkjoy
thanks for the help!


"newyorkjoy" wrote:

Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!


"Sean Timmons" wrote:

If I understand correctly, you have something like this:

Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text

And in another worksheet (same workbook maybe?)

Column A
2/1/2007
3/1/2007

and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.

If so,

in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)

will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:

=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200,2,FALSE))

will leave a blank instead.

"newyorkjoy" wrote:

I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default matching excel columns

You need to make the row references in Sean's formula into absolute,
and of course adjust them to the number of rows you have in your data
in Sheet1, i.e.:

=if(iserror(vlookup(A1,Sheet1!A$1:B$500,2,0),"",vl ookup(A1,Sheet1!A$1:B
$500*,2,0))

I've used 0 instead of FALSE - does the same thing - and assumed you
have data up to row 500.

Hope this helps.

Pete

On Feb 21, 6:52 pm, newyorkjoy
wrote:
Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!



"Sean Timmons" wrote:
If I understand correctly, you have something like this:


Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text


And in another worksheet (same workbook maybe?)


Column A
2/1/2007
3/1/2007


and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.


If so,


in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)


will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:


=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200*,2,FALSE))


will leave a blank instead.


"newyorkjoy" wrote:


I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default matching excel columns

Pete and Sean. Please help. I revised my question, but I think everyone read
it before I revised it. Please read my third post where it explains the
problem better. Thank you!
--
newyorkjoy
thanks for the help!


"Pete_UK" wrote:

You need to make the row references in Sean's formula into absolute,
and of course adjust them to the number of rows you have in your data
in Sheet1, i.e.:

=if(iserror(vlookup(A1,Sheet1!A$1:B$500,2,0),"",vl ookup(A1,Sheet1!A$1:B
$500Â*,2,0))

I've used 0 instead of FALSE - does the same thing - and assumed you
have data up to row 500.

Hope this helps.

Pete

On Feb 21, 6:52 pm, newyorkjoy
wrote:
Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!



"Sean Timmons" wrote:
If I understand correctly, you have something like this:


Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text


And in another worksheet (same workbook maybe?)


Column A
2/1/2007
3/1/2007


and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.


If so,


in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)


will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:


=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200Â*,2,FALSE))


will leave a blank instead.


"newyorkjoy" wrote:


I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!- Hide quoted text -


- Show quoted text -




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default matching excel columns

If the worksheet with your dates and data has a different name than
Sheet1 (eg Sheet2) then just change that in the formula. If you have,
say, 250 rows of dates and data in Sheet2, then change the 500 (in my
formula) to 250. If the worksheet which has all the dates has the
first date in A2, then enter this formula in B2:

=if(iserror(vlookup(A1,Sheet2!A$1:B$250,2,0),"",
vlookup(A1,Sheet2!A$1:B$250*,2,0))

and copy the formula down for as many dates as you have in column A.
If your sheet name has a space in it, eg Sheet 2, then you will need
to put apostophes around it, like so:

=if(iserror(vlookup(A1,'Sheet 2'!A$1:B$250,2,0),"",
vlookup(A1,'Sheet 2'!A$1:B$250*,2,0))

and then copy this down. This is all one formula - I've split it
manually to avoid awkward line breaks.

If you still have problems, then perhaps you should post a few
examples of the rows of data you have, and tell us what your sheet
names are.

Hope this helps.

Pete

On Feb 21, 8:57 pm, newyorkjoy
wrote:
Pete and Sean. Please help. I revised my question, but I think everyone read
it before I revised it. Please read my third post where it explains the
problem better. Thank you!
--
newyorkjoy
thanks for the help!



"Pete_UK" wrote:
You need to make the row references in Sean's formula into absolute,
and of course adjust them to the number of rows you have in your data
in Sheet1, i.e.:


=if(iserror(vlookup(A1,Sheet1!A$1:B$500,2,0),"",vl ookup(A1,Sheet1!A$1:B
$500*,2,0))


I've used 0 instead of FALSE - does the same thing - and assumed you
have data up to row 500.


Hope this helps.


Pete


On Feb 21, 6:52 pm, newyorkjoy
wrote:
Thank you Sean. I tried it, but I got #N/A for every field. The information
that should have come up in Column B of worksheet 2 did not come up. I
appreciate your help.
--
newyorkjoy
thanks for the help!


"Sean Timmons" wrote:
If I understand correctly, you have something like this:


Column A Column B
2/1/2007 Text
2/2/2007 Text
2/3/2007 Text


And in another worksheet (same workbook maybe?)


Column A
2/1/2007
3/1/2007


and you want to locate column B from worksheet 1 above and enter it into,
say, column B of worksheet 2.


If so,


in column B of sheet 2
=vlookup(A1,Sheet1!A1:B200,2,FALSE)


will return the matching text from the date on sheet1. If the date doesn't
exist in column 1, you'll get an #N/A in the field. To avoid this:


=if(iserror(vlookup(A1,Sheet1!A1:B200,2,FALSE),"", vlookup(A1,Sheet1!A1:B200**,2,FALSE))


will leave a blank instead.


"newyorkjoy" wrote:


I am using EXCEL 2003. I have a worksheet with a column of all dates from
1/1/1900 through the present. I am getting new data in two columns. One of
dates, and one of information to match the dates. I need to add a column to
my original worksheet showing the information I need for specific dates. How
can I get excel to automatically find the matching date, and put only the
information in the second column in a new column next to the corresponding
date?
--
newyorkjoy
thanks for the help!- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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
matching on columns nick Excel Discussion (Misc queries) 0 October 24th 06 06:02 PM
Req help matching values across columns in Excel Richard B Excel Worksheet Functions 1 May 7th 06 09:31 PM
MATCHING COLUMNS JOE Excel Discussion (Misc queries) 0 May 3rd 06 06:51 PM
How to take matching data from 2 columns and put in the same row? JustinM New Users to Excel 1 May 27th 05 01:32 AM
Matching Cells/columns gcn504 Excel Worksheet Functions 6 March 24th 05 04:14 PM


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