Conditionally highlight cells or ...

L

linyinow

:confused: Hi, Could anyone help me with this problem? Here is th
table:

Apple Banana Orange Pear
15 45 20 335
85 65 44 77
11 787 88 936


I want to either to be able to 1)use a function to return the name o
the fruit containing the lowest level in each raw, so for first row i
would return "Apple", sedond row would return "Orange", etc. Can an
of you help me writing this function? 2) or if possible, i'd like t
highlight the cell in each row that contains the lowest value, so fo
first row, cell containing 15 will be highlighted. Can anybody help m
with that? Thanks very much
 
D

Dave Peterson

With your data in A2:Dxxx (headers in A1:D1), put this E2:

=INDEX($A$1:$D$1,MATCH(MIN(A2:D2),A2:D2,0))
and drag down.

Select your range A2:Dxxx and with A2 the activecell:
Format|conditional formatting
Formula is:
=A2=MIN($A2:$D2)

And use a nice pattern.
 
M

Mladen_Dj

Apple Banana Orange Pear
15 45 20 335
85 65 44 77
11 787 88 936


I want to either to be able to 1)use a function to return the name of
the fruit containing the lowest level in each raw, so for first row it
would return "Apple", sedond row would return "Orange", etc. Can any
of you help me writing this function? 2) or if possible, i'd like to
highlight the cell in each row that contains the lowest value, so for
first row, cell containing 15 will be highlighted. Can anybody help me
with that? Thanks very much!

If you put your table in range A1:D4, than, for returning a name of the
fruit with lowest level in each row use formula:

=INDEX($A$1:$D$4,1,MATCH(MIN(A2:D2),A2:D2,0)),

where $A$1:$D$4 is the range of table with fruit, 1 is row number from which
index function returns reference, and MATCH returns column which have min.
value in this row.

To higlight minimal value in each row, select rows 2:4, and go to
Format->Conditional Formating, and in dialog select "Cell value is equal to"
and in reference field put formula:

=MIN($A2:$D2),

and choose desired font, border or pattern.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top