#1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Array Formula

I wish to place the words "OK" or "NOK" into a cell if the
corresponding values either match or do not match from two columns. e.g

=IF(C3<A3,"NOK","OK")

how can I expand this over the following

=IF(C3:C19<A3:A19,"NOK","OK")

but i only want to know if the corresponding values in the same row
differ i.e it must not compare C3 to A14 for example, only C3<A3, C4<A4
or C5<A5 etc

thanks

Peter

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Array Formula

Select the range, say F3:F19, where you want the formula, type
the formula in the first cell, and press CTRL+SHIFT+ENTER rather
than just ENTER.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

wrote in message
ps.com...
I wish to place the words "OK" or "NOK" into a cell if the
corresponding values either match or do not match from two
columns. e.g

=IF(C3<A3,"NOK","OK")

how can I expand this over the following

=IF(C3:C19<A3:A19,"NOK","OK")

but i only want to know if the corresponding values in the same
row
differ i.e it must not compare C3 to A14 for example, only
C3<A3, C4<A4
or C5<A5 etc

thanks

Peter



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Array Formula

I tried {=IF(C3:C19<A3:A19,"NOK","OK")} but didn't get the result I
expected, so tried the following formula:

=IF(OR('Line Speed x 3'!C6<'Line Speed x 3'!A6,'Line Speed x
3'!C7<'Line Speed x 3'!A7,'Line Speed x 3'!C8<'Line Speed x 3'!A8,'Line
Speed x 3'!C9<'Line Speed x 3'!A9,'Line Speed x 3'!C10<'Line Speed x
3'!A10,'Line Speed x 3'!C11<'Line Speed x 3'!A11,'Line Speed x
3'!C12<'Line Speed x 3'!A12,'Line Speed x 3'!C13<'Line Speed x
3'!A13,'Line Speed x 3'!C14<'Line Speed x 3'!A14,'Line Speed x
3'!C15<'Line Speed x 3'!A15,'Line Speed x 3'!C16<'Line Speed x
3'!A16,'Line Speed x 3'!C17<'Line Speed x 3'!A17,'Line Speed x
3'!C18<'Line Speed x 3'!A18,'Line Speed x 3'!C19<'Line Speed x
3'!A19),"NOK","OK")

Is there a method of shortening this formula?

thanks

Peter


Chip Pearson wrote:
Select the range, say F3:F19, where you want the formula, type
the formula in the first cell, and press CTRL+SHIFT+ENTER rather
than just ENTER.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

wrote in message
ps.com...
I wish to place the words "OK" or "NOK" into a cell if the
corresponding values either match or do not match from two
columns. e.g

=IF(C3<A3,"NOK","OK")

how can I expand this over the following

=IF(C3:C19<A3:A19,"NOK","OK")

but i only want to know if the corresponding values in the same
row
differ i.e it must not compare C3 to A14 for example, only
C3<A3, C4<A4
or C5<A5 etc

thanks

Peter


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
Array Formula Not Working with Range with Formulas [email protected] Excel Discussion (Misc queries) 4 February 1st 06 02:01 PM
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 02:40 AM.

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"