Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help! what's the formula for this.

0 views
Skip to first unread message

driller

unread,
May 24, 2007, 7:04:00 PM5/24/07
to
how to formulate this?

I have a row (e.g. b1:z1), this contains values that must be in a scenario
like these

(a) All values in the row to be the same, (e.g. 2,2,2,2,2,2,2,2,2,,,,2)
(b) Ascending order, (e.g. 1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,,,5)
(c) Descending order. (e.g. 2,2,2,2,2,1,1,1,,,,1)

I need to place a formula on cell a1 to show something like this
1. if all values on same row scenario (a) ...the result will show "need
upgrade - not evaluated"
2. if values are in ascending order scenario (b)......the result will show
"upgraded - evaluated"
3. if the values in descednding order scenario (c)....the result will show
"no legal reference"

i hope i explain it clear for someone who may help me with this.

regards,
driller
--
*****
birds of the same feather flock together..

Ragdyer

unread,
May 24, 2007, 7:40:25 PM5/24/07
to
Try this:

=IF(B1>Z1,"No legal reference",IF(B1<Z1,"Upgraded - evaluated","Need
upgrade - Not evaluated"))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"driller" <dri...@discussions.microsoft.com> wrote in message
news:824FC967-D2BF-4912...@microsoft.com...

Gary''s Student

unread,
May 24, 2007, 7:46:01 PM5/24/07
to
Hi driller:

Try this out:

Function dentist(r As Range) As String
dentist = ""
If r.Count = 1 Then
Exit Function
End If
vold = r.Cells(1, 1).Value
i = 1
For Each rr In r
If i > 1 Then
If vold > rr.Value Then
dentist = "no legal reference"
Exit Function
End If
If vold < rr.Value Then
dentist = "upgraded - evaluated"
Exit Function
End If
Else
i = 2
End If
vold = rr.Value
Next
dentist = "need upgrade - not evaluated"
End Function

use it like:
=dentist(A1:E1)
It should work on rows, column, etc.
Not completely tested. Update this post if you experience problems.

--
Gary''s Student - gsnu200724

driller

unread,
May 24, 2007, 8:51:01 PM5/24/07
to
Gary and Ragdyer,

sorry...i forgot the last scenario
(d) out of order ...(e.g. 2,2,2,2,1,1,1,3,3,3,.....4)
----
4. if the values in out of order scenario (d)....the result will show "out
of order"....

this may complete the query..

thanks and regards,

T. Valko

unread,
May 24, 2007, 9:30:37 PM5/24/07
to
Will every cell in the range be filled?

Biff

"driller" <dri...@discussions.microsoft.com> wrote in message

news:533281C1-433C-4A39...@microsoft.com...

driller

unread,
May 25, 2007, 9:53:02 AM5/25/07
to
the range may not be filled completely ...some are blanks and some has
numeric values...<no formulas will rest in these range>

i will use the formula to screen the status of values arranged in a +100
field rows.

thanks and regards,

T. Valko

unread,
May 25, 2007, 6:03:37 PM5/25/07
to
Will the empty cells be at the end of the range or can they be *anywhere*
within the range including the first cell of the range?

Biff

"driller" <dri...@discussions.microsoft.com> wrote in message

news:02592AA1-930A-4759...@microsoft.com...

driller

unread,
May 25, 2007, 7:22:00 PM5/25/07
to
T. Valko,

empty cells can be *anywhere*.

regards,
driller

--
*****
birds of the same feather flock together..

T. Valko

unread,
May 25, 2007, 7:36:56 PM5/25/07
to
This is really complicated even though on the surface it may seem easy.

You should change your name to *killer*! <G>

Biff

"driller" <dri...@discussions.microsoft.com> wrote in message

news:CD5A902B-193C-401B...@microsoft.com...

0 new messages