Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Comparing Multiple fields

I am attempting to compare the ROUNDOPENDATE to the OpenDate.
If any Name1 has any ROUNDOPENDATE and that matches any Name1 OpenDate then
list which product matches. In the following example Name1 product would be
ATM and Name2 would be ATM and USavings.
If I could programically fill the proper ROUNDOPENDATE for each product that
doesn't have an ROUNDOPENDATE, then i could easily compare the dates. But
there are 35K rows.

Name1 OpenDate ROUNDOPENDATE Product
Name1 03/17/1999 02/15/2007 Classic Account
Name1 02/15/2007 ATM
Name1 02/15/2007 USavings
Name2 02/14/2009 02/14/2009 MChecking
Name2 02/14/2009 ATM
Name2 02/14/2009 USavings
Name3 11/20/1997 USavings
Name4 07/28/2003 Simply Free
Name4 10/16/2009 ATM
Name4 05/15/2009 05/15/2009 MSavings
Name5 02/19/2008 05/14/2009 Bonus Checking
Name6 08/21/2009 ATM
Name6 08/18/2009 ATM
Name6 08/17/2009 ATM
Name6 08/17/2009 MSavings
Name6 05/14/2009 USavings
Name7 07/24/2004 02/07/2007 Simply Free
Name7 11/22/2009 11/22/2009 Bonus Checking
Name7 12/01/2009 ATM
Name7 02/11/2009 ATM
Name7 07/26/2007 USavings
Name7 04/11/2002 USavings
Name8 01/30/2009 ATM
Name8 11/23/2004 Simply Free
Name8 11/23/2004 USavings
Name9 11/26/2007 11/26/2007 Simply Free
Name9 02/11/2009 ATM
Name9 11/26/2007 USavings
Name9 11/26/2007 USavings

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Comparing Multiple fields

Should the ROUNDOPENDATE for any given name always be the same date
regardless of the Open Date? It kind of looks that way to me, but I'm not
sure because Name5 has 2 different dates (open date 2/19/08, roundopendate is
5/14/09). Actually, not even sure that plays into it.

Is this what you want:
Given a NAME with a ROUNDOPENDATE, find all Names in the list that have an
OpenDate = that original ROUNDOPENDATE and same NAME and list the Product
from that match/those matches?



"eyespike1" wrote:

I am attempting to compare the ROUNDOPENDATE to the OpenDate.
If any Name1 has any ROUNDOPENDATE and that matches any Name1 OpenDate then
list which product matches. In the following example Name1 product would be
ATM and Name2 would be ATM and USavings.
If I could programically fill the proper ROUNDOPENDATE for each product that
doesn't have an ROUNDOPENDATE, then i could easily compare the dates. But
there are 35K rows.

Name1 OpenDate ROUNDOPENDATE Product
Name1 03/17/1999 02/15/2007 Classic Account
Name1 02/15/2007 ATM
Name1 02/15/2007 USavings
Name2 02/14/2009 02/14/2009 MChecking
Name2 02/14/2009 ATM
Name2 02/14/2009 USavings
Name3 11/20/1997 USavings
Name4 07/28/2003 Simply Free
Name4 10/16/2009 ATM
Name4 05/15/2009 05/15/2009 MSavings
Name5 02/19/2008 05/14/2009 Bonus Checking
Name6 08/21/2009 ATM
Name6 08/18/2009 ATM
Name6 08/17/2009 ATM
Name6 08/17/2009 MSavings
Name6 05/14/2009 USavings
Name7 07/24/2004 02/07/2007 Simply Free
Name7 11/22/2009 11/22/2009 Bonus Checking
Name7 12/01/2009 ATM
Name7 02/11/2009 ATM
Name7 07/26/2007 USavings
Name7 04/11/2002 USavings
Name8 01/30/2009 ATM
Name8 11/23/2004 Simply Free
Name8 11/23/2004 USavings
Name9 11/26/2007 11/26/2007 Simply Free
Name9 02/11/2009 ATM
Name9 11/26/2007 USavings
Name9 11/26/2007 USavings

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Comparing Multiple fields

Eyespike1 -

If the data is sorted as is suggested by your sample, and you would like to
copy the RoundOpenDate down to all blank cells below it (stopping with the
next RoundOpenDate), then try this:

Make a backup copy of your spreadsheet just in case...
Use a new column for the 'complete' RoundOpenDate, say column E. This
assumes the current RoundOpenDate is in column C and the titles are on row 1.
Put this in E2:
=IF(ISNUMBER(C2),C2,E1)
Drag or copy/paste this down the column. If the numbers don't look like
dates, then format the column as dates.
Copy column E and Paste Special | Values over column C. (You may need to
re-format as dates)
Delete column E.

Now you can add your test for the dates you wanted.

--
Daryl S


"eyespike1" wrote:

I am attempting to compare the ROUNDOPENDATE to the OpenDate.
If any Name1 has any ROUNDOPENDATE and that matches any Name1 OpenDate then
list which product matches. In the following example Name1 product would be
ATM and Name2 would be ATM and USavings.
If I could programically fill the proper ROUNDOPENDATE for each product that
doesn't have an ROUNDOPENDATE, then i could easily compare the dates. But
there are 35K rows.

Name1 OpenDate ROUNDOPENDATE Product
Name1 03/17/1999 02/15/2007 Classic Account
Name1 02/15/2007 ATM
Name1 02/15/2007 USavings
Name2 02/14/2009 02/14/2009 MChecking
Name2 02/14/2009 ATM
Name2 02/14/2009 USavings
Name3 11/20/1997 USavings
Name4 07/28/2003 Simply Free
Name4 10/16/2009 ATM
Name4 05/15/2009 05/15/2009 MSavings
Name5 02/19/2008 05/14/2009 Bonus Checking
Name6 08/21/2009 ATM
Name6 08/18/2009 ATM
Name6 08/17/2009 ATM
Name6 08/17/2009 MSavings
Name6 05/14/2009 USavings
Name7 07/24/2004 02/07/2007 Simply Free
Name7 11/22/2009 11/22/2009 Bonus Checking
Name7 12/01/2009 ATM
Name7 02/11/2009 ATM
Name7 07/26/2007 USavings
Name7 04/11/2002 USavings
Name8 01/30/2009 ATM
Name8 11/23/2004 Simply Free
Name8 11/23/2004 USavings
Name9 11/26/2007 11/26/2007 Simply Free
Name9 02/11/2009 ATM
Name9 11/26/2007 USavings
Name9 11/26/2007 USavings

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Comparing Multiple fields

Yes, the Roundopendate will be the same.
Daryl, that worked perfectly! Thanks. I also found the following which
worked as well

Select the cells, use (F5) Edit / Go To... Special Blanks OK, then type
=, press the up arrow key once, then press Ctrl-Enter. Then copy the entire
column and pastespecial as values.

"Daryl S" wrote:

Eyespike1 -

If the data is sorted as is suggested by your sample, and you would like to
copy the RoundOpenDate down to all blank cells below it (stopping with the
next RoundOpenDate), then try this:

Make a backup copy of your spreadsheet just in case...
Use a new column for the 'complete' RoundOpenDate, say column E. This
assumes the current RoundOpenDate is in column C and the titles are on row 1.
Put this in E2:
=IF(ISNUMBER(C2),C2,E1)
Drag or copy/paste this down the column. If the numbers don't look like
dates, then format the column as dates.
Copy column E and Paste Special | Values over column C. (You may need to
re-format as dates)
Delete column E.

Now you can add your test for the dates you wanted.

--
Daryl S


"eyespike1" wrote:

I am attempting to compare the ROUNDOPENDATE to the OpenDate.
If any Name1 has any ROUNDOPENDATE and that matches any Name1 OpenDate then
list which product matches. In the following example Name1 product would be
ATM and Name2 would be ATM and USavings.
If I could programically fill the proper ROUNDOPENDATE for each product that
doesn't have an ROUNDOPENDATE, then i could easily compare the dates. But
there are 35K rows.

Name1 OpenDate ROUNDOPENDATE Product
Name1 03/17/1999 02/15/2007 Classic Account
Name1 02/15/2007 ATM
Name1 02/15/2007 USavings
Name2 02/14/2009 02/14/2009 MChecking
Name2 02/14/2009 ATM
Name2 02/14/2009 USavings
Name3 11/20/1997 USavings
Name4 07/28/2003 Simply Free
Name4 10/16/2009 ATM
Name4 05/15/2009 05/15/2009 MSavings
Name5 02/19/2008 05/14/2009 Bonus Checking
Name6 08/21/2009 ATM
Name6 08/18/2009 ATM
Name6 08/17/2009 ATM
Name6 08/17/2009 MSavings
Name6 05/14/2009 USavings
Name7 07/24/2004 02/07/2007 Simply Free
Name7 11/22/2009 11/22/2009 Bonus Checking
Name7 12/01/2009 ATM
Name7 02/11/2009 ATM
Name7 07/26/2007 USavings
Name7 04/11/2002 USavings
Name8 01/30/2009 ATM
Name8 11/23/2004 Simply Free
Name8 11/23/2004 USavings
Name9 11/26/2007 11/26/2007 Simply Free
Name9 02/11/2009 ATM
Name9 11/26/2007 USavings
Name9 11/26/2007 USavings

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 fields in an excel worksheet David Excel Worksheet Functions 1 December 16th 09 07:20 PM
HELP! I need to make an IF Statement comparing date/time fields.. Ksoloway Excel Worksheet Functions 2 November 4th 09 04:41 PM
Comparing text fields [email protected] Excel Worksheet Functions 3 May 28th 05 02:56 PM
Comparing and potentially adding two fields Avi Excel Worksheet Functions 1 November 15th 04 07:11 PM
Comparing Date Fields Cathy Excel Worksheet Functions 1 November 6th 04 01:29 AM


All times are GMT +1. The time now is 02:36 PM.

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

About Us

"It's about Microsoft Excel"