Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default comparing one to one cell within range

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
--
caroline
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default comparing one to one cell within range

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

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

Regards,

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

"caroline" wrote in message
...
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
--
caroline



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default comparing one to one cell within range

wonderful thanks
--
caroline


"Ron Coderre" wrote:

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

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

Regards,

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

"caroline" wrote in message
...
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
--
caroline




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default comparing one to one cell within range

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

Regards,

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

"caroline" wrote in message
...
wonderful thanks
--
caroline


"Ron Coderre" wrote:

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

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

Regards,

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

"caroline" wrote in message
...
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
--
caroline






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing cell contents, know cell address molsansk Excel Discussion (Misc queries) 4 December 10th 07 04:44 PM
Comparing One Range and Adding Another statusquo Excel Worksheet Functions 3 December 9th 05 01:54 AM
Comparing a Range of Values jpx Excel Discussion (Misc queries) 4 November 22nd 05 10:28 PM
comparing cell Stanley New Users to Excel 1 July 19th 05 11:40 AM
Comparing a cell result with a pre-defined value range Antony Weldon Excel Worksheet Functions 1 November 23rd 04 11:51 AM


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

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

About Us

"It's about Microsoft Excel"