comparing one to one cell within range

C

caroline

I am trying to compare each cell to the one below and this for a whole range.
The difficulty comes form the fact that I need to have an alert in one
formula.
Something like
if (A1:A10<B1:B10, "Warning", "")
the warning will appear only if A1<B1 or A2<B2 or A3<B3 and so on.
Any idea?
THanks
 
R

Ron Coderre

Try this:
=IF(SUMPRODUCT(--(A1:A10<B1:B10)),"Warning","")

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
C

caroline

wonderful thanks
--
caroline


Ron Coderre said:
Try this:
=IF(SUMPRODUCT(--(A1:A10<B1:B10)),"Warning","")

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
R

Ron Coderre

You're welcome......I'm glad I could help.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

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