Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Help needed for Sumproduct or Other Conditional testing

A B C D E F
1 Name Colour Red Blue Pink Check Point
2 Bob Red 1 ok
3 Rob Blue 1 ok
4 Tom Pink 1 error
5 Sam Red 1 Error


User Enters the Following
Name in Col A
Colour in Col B and depending on Which Colour he has entered he will type a
digit in the Colour Col (Col C, D or E)

I want a formula to be entered in Col F, Which tells me if the users have
done it right, "Ok" If its Correct and "Error" if its not correct

E.g in above Sam Selected Colour Red but has entered the Digit in Col D
"Blue" this is wrong. he should enter the digit in col C Red
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Help needed for Sumproduct or Other Conditional testing

try this

put this formula in F2 =IF(HLOOKUP(B2,$C$1:$E$5,ROW(2:2),
0)=1,"ok","error") and drag it down





On Oct 23, 3:24*pm, claude jerry
wrote:
* * *A * * * * * B * * * * * C * * * *D * * * *E * * * *F
1 *Name * *Colour * *Red * * *Blue *Pink * Check Point
2 *Bob * * * *Red * * * 1 * * * * * * * * * * * * * * * ok
3 *Rob * * * *Blue * * * * * * * * *1 * * * * * * * * * *ok
4 *Tom * * * *Pink * * * * * * * * *1 * * * * * * * * * *error
5 * Sam * * * Red * * * * * * * * *1 * * * * * * * * * *Error * * *

User Enters the Following
Name in Col A
Colour in Col B and depending on Which Colour he has entered he will type a
digit in the Colour Col (Col C, D or E)

I want a formula to be entered in Col F, Which tells me if the users have
done it right, "Ok" If its Correct and "Error" if its not correct

E.g in above Sam Selected Colour Red but has entered the Digit in Col D
"Blue" this is wrong. he should enter the digit *in col C Red


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Help needed for Sumproduct or Other Conditional testing

Hi,

Put this in F2 and drag down

=IF(OR(SUMPRODUCT((B2:$B$5=B2)*($C$1:$E$1=B2)*(C2: $E$5))=0,COUNT(C2:E2)1),"Error","OK")

Mike

"claude jerry" wrote:

A B C D E F
1 Name Colour Red Blue Pink Check Point
2 Bob Red 1 ok
3 Rob Blue 1 ok
4 Tom Pink 1 error
5 Sam Red 1 Error


User Enters the Following
Name in Col A
Colour in Col B and depending on Which Colour he has entered he will type a
digit in the Colour Col (Col C, D or E)

I want a formula to be entered in Col F, Which tells me if the users have
done it right, "Ok" If its Correct and "Error" if its not correct

E.g in above Sam Selected Colour Red but has entered the Digit in Col D
"Blue" this is wrong. he should enter the digit in col C Red

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Help needed for Sumproduct or Other Conditional testing

Thanks

Both Work Fine

"Mike H" wrote:

Hi,

Put this in F2 and drag down

=IF(OR(SUMPRODUCT((B2:$B$5=B2)*($C$1:$E$1=B2)*(C2: $E$5))=0,COUNT(C2:E2)1),"Error","OK")

Mike

"claude jerry" wrote:

A B C D E F
1 Name Colour Red Blue Pink Check Point
2 Bob Red 1 ok
3 Rob Blue 1 ok
4 Tom Pink 1 error
5 Sam Red 1 Error


User Enters the Following
Name in Col A
Colour in Col B and depending on Which Colour he has entered he will type a
digit in the Colour Col (Col C, D or E)

I want a formula to be entered in Col F, Which tells me if the users have
done it right, "Ok" If its Correct and "Error" if its not correct

E.g in above Sam Selected Colour Red but has entered the Digit in Col D
"Blue" this is wrong. he should enter the digit in col C Red

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
Sumproduct help needed. Jonathan[_3_] Excel Discussion (Misc queries) 5 December 10th 07 11:03 PM
IF and SUMPRODUCT help needed George Excel Discussion (Misc queries) 4 November 20th 06 07:20 PM
conditional formatting -- testing for multiple words The Moose Excel Discussion (Misc queries) 8 August 20th 06 01:11 PM
Min/Max help needed with a SumProduct JR Excel Worksheet Functions 13 February 13th 06 05:08 PM
SUMPRODUCT help needed bradgrafelman Excel Worksheet Functions 2 June 13th 05 03:49 AM


All times are GMT +1. The time now is 06:23 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"