Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi people, I have a formula that picks the last value in a row. This is
a case where clients are identified by a the same number every time they visit a clinic. My formula only picks the last visit. How do i pick the first visit? Thanx in advance. A B 3 1 =IF($A3-$A4=0,0,1) 8 1 17 0 17 0 17 0 17 0 17 1 18 0 18 1 19 0 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use
=IF($A3=$A2,0,1) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "elephant" wrote in message oups.com... Hi people, I have a formula that picks the last value in a row. This is a case where clients are identified by a the same number every time they visit a clinic. My formula only picks the last visit. How do i pick the first visit? Thanx in advance. A B 3 1 =IF($A3-$A4=0,0,1) 8 1 17 0 17 0 17 0 17 0 17 1 18 0 18 1 19 0 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Bob. However, the result is still the same as my earlier formula
|
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the visits are not contiguous, try these:
First: =IF(COUNTIF($A$2:A2,A2)=1,1,0) Last: =IF(COUNTIF(A2:$A$11,A2)1,0,1) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "elephant" wrote in message oups.com... Hi people, I have a formula that picks the last value in a row. This is a case where clients are identified by a the same number every time they visit a clinic. My formula only picks the last visit. How do i pick the first visit? Thanx in advance. A B 3 1 =IF($A3-$A4=0,0,1) 8 1 17 0 17 0 17 0 17 0 17 1 18 0 18 1 19 0 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Cheers Ragdyer! That's now working. I will however, try to understand
the logic better. Thanx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
filtering unique in multiple columns | Excel Worksheet Functions | |||
code not unique find latest date | Excel Discussion (Misc queries) | |||
Unique numbers if between dates | Excel Worksheet Functions | |||
count unique with conditions | Excel Worksheet Functions | |||
Count Unique Values | Excel Worksheet Functions |