#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Compring Dates?

HELP!
I have a set of dates I want to compare and return the data in data 1 if all
match, or 2 and 3 are blank, but flag if they mismatch as in the first
column. Is this possible?????

Data 1 01/04/1981 07/10/2024 07/10/2024 01/10/1982
Data 2 02/04/1982 07/10/2024
Data 3 01/04/1981 07/10/2024 01/10/1982

Match? No - flag Yes - data 1 Yes - data 1 Yes - data 1

Many thanks in advance (P.S. - It's 2007)
Scoz
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compring Dates?

One idea ..
Assuming dates data as posted is within B1:E3
(dates are presumed real dates, which are just numbers)
In say, B5:
=IF(SUMPRODUCT(--(B1:B3<""),1/COUNTIF(B1:B3,B1:B3&""))1,"X","")
Copy B5 across to E5 to flag it as: X
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"scoz" wrote:
I have a set of dates I want to compare and return the data in data 1 if all
match, or 2 and 3 are blank, but flag if they mismatch as in the first
column. Is this possible?????

Data 1 01/04/1981 07/10/2024 07/10/2024 01/10/1982
Data 2 02/04/1982 07/10/2024
Data 3 01/04/1981 07/10/2024 01/10/1982

Match? No - flag Yes - data 1 Yes - data 1 Yes - data 1

Many thanks in advance (P.S. - It's 2007)
Scoz

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compring Dates?

Since you indicated that you want to return the data in row1 if its unflagged,
Adjust it in B5 to:
=IF(SUMPRODUCT(--(B1:B3<""),1/COUNTIF(B1:B3,B1:B3&""))1,"X",B1)
Copy across as before
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Compring Dates?

Many thanks Max, looks like you cracked it, I've forwarded to what I hope is
a very happy chappy.
Scoz

"Max" wrote:

Since you indicated that you want to return the data in row1 if its unflagged,
Adjust it in B5 to:
=IF(SUMPRODUCT(--(B1:B3<""),1/COUNTIF(B1:B3,B1:B3&""))1,"X",B1)
Copy across as before
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compring Dates?

Welcome. Pl mark all responses which help by pressing the YES buttons (like
the ones below).
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"scoz" wrote:
Many thanks Max, looks like you cracked it, I've forwarded to what I hope is
a very happy chappy.
Scoz


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
Stop dates from showing as numbers - when formated as dates JR Excel Discussion (Misc queries) 1 October 29th 08 04:38 PM
how do I sort a column of random dates into Consecutive dates Rob Gibson Excel Worksheet Functions 2 June 12th 07 05:10 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 03:20 AM.

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"