Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default If or formula help please

Hi everyone,

What can I do to make this work?

I want it to look at cells in column K and if they contain Y or No return 10
and 20 respectively. Problem is if the cell does not contain either Y or N it
contains a number and this also returns 20.

Here's my formula

=IF(OR(K3="Y",K3="N"),10,20)

Thanks in advance
Diddy
--
Deirdre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default If or formula help please

=IF(K3="Y",10,IF(K3="N",20,""))


--
__________________________________
HTH

Bob

"Diddy" wrote in message
...
Hi everyone,

What can I do to make this work?

I want it to look at cells in column K and if they contain Y or No return
10
and 20 respectively. Problem is if the cell does not contain either Y or N
it
contains a number and this also returns 20.

Here's my formula

=IF(OR(K3="Y",K3="N"),10,20)

Thanks in advance
Diddy
--
Deirdre



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default If or formula help please

Lovely !

Thank you
--
Deirdre


"Bob Phillips" wrote:

=IF(K3="Y",10,IF(K3="N",20,""))


--
__________________________________
HTH

Bob

"Diddy" wrote in message
...
Hi everyone,

What can I do to make this work?

I want it to look at cells in column K and if they contain Y or No return
10
and 20 respectively. Problem is if the cell does not contain either Y or N
it
contains a number and this also returns 20.

Here's my formula

=IF(OR(K3="Y",K3="N"),10,20)

Thanks in advance
Diddy
--
Deirdre




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default If or formula help please

Bob's answer is best but here is another
=10*(K3="Y")+20*(K3="N")
Format cell so that zeros are not displayed
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Diddy" wrote in message
...
Hi everyone,

What can I do to make this work?

I want it to look at cells in column K and if they contain Y or No return
10
and 20 respectively. Problem is if the cell does not contain either Y or N
it
contains a number and this also returns 20.

Here's my formula

=IF(OR(K3="Y",K3="N"),10,20)

Thanks in advance
Diddy
--
Deirdre



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



All times are GMT +1. The time now is 03:42 PM.

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

About Us

"It's about Microsoft Excel"