A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

dates comparision



 
 
Thread Tools Display Modes
  #1  
Old July 1st, 2009, 08:11 AM posted to microsoft.public.excel.newusers
surya and siva[_2_]
external usenet poster
 
Posts: 7
Default dates comparision

i want a formula for the following issue.
A B C D E F
G H
site patient d1 d2 d3 d4
d5 D6
1 27 sep 27,07 sep 29,07 oct 2,07
Oct 4,07
1 27 Oct 4,07 Oct 6,07 Oct 9,07
Oct 18,07
1 27 Oct 11,07 Oct 13,07 Oct 16,07
Oct 25,07
1 27 Oct 18,07 Oct 20,07 Oct 23,07
Oct 18,07
1 28 Oct 4,07 Oct 6,07 Oct 9,07
Oct 18,07
1 28 Oct 11,07 Oct 13,07 Oct 16,07
Oct 25,07
1 28 Oct 18,07 Oct 20,07 Oct 23,07
Oct 18,07

A = site, B= Patient
C:H= are dates mentioned as d1, d2, d3, d4, d5, D6
Descreption:the data mentioned above is a piece of data to present the
senario.
If site no is 1 and Patient no is 27 then i need the date comparison of D6
with the dates of d1 to d5, if the same date of D6 is found in d1 to d5 of
aparticular site of a particular patient that date i want to be in column I.
eg:
column H2 (D6) = Oct 4,07 of (column A) site=1 of a patient =27 is matching
with d3, so this result date should come on I2, if it is not matching it
sould show as "check".
thanking you,
surya









  #2  
Old July 1st, 2009, 05:39 PM posted to microsoft.public.excel.newusers
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default dates comparision

Hi,

In cell I2 enter the array formula

=IF(OR(C2:G2=H2),H2,"check")

array - means you press Shift+Ctrl+Enter to enter the formula in the cell

Copy it down as far as needed.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"surya and siva" wrote:

i want a formula for the following issue.
A B C D E F
G H
site patient d1 d2 d3 d4
d5 D6
1 27 sep 27,07 sep 29,07 oct 2,07
Oct 4,07
1 27 Oct 4,07 Oct 6,07 Oct 9,07
Oct 18,07
1 27 Oct 11,07 Oct 13,07 Oct 16,07
Oct 25,07
1 27 Oct 18,07 Oct 20,07 Oct 23,07
Oct 18,07
1 28 Oct 4,07 Oct 6,07 Oct 9,07
Oct 18,07
1 28 Oct 11,07 Oct 13,07 Oct 16,07
Oct 25,07
1 28 Oct 18,07 Oct 20,07 Oct 23,07
Oct 18,07

A = site, B= Patient
C:H= are dates mentioned as d1, d2, d3, d4, d5, D6
Descreption:the data mentioned above is a piece of data to present the
senario.
If site no is 1 and Patient no is 27 then i need the date comparison of D6
with the dates of d1 to d5, if the same date of D6 is found in d1 to d5 of
aparticular site of a particular patient that date i want to be in column I.
eg:
column H2 (D6) = Oct 4,07 of (column A) site=1 of a patient =27 is matching
with d3, so this result date should come on I2, if it is not matching it
sould show as "check".
thanking you,
surya









 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:21 PM.


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