#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default formula help

how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default formula help


--
Kevin Backmann


"pezacide" wrote:

how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default formula help

In C8
=IF(OR(B8="Adelaide",B8="mackay",B8="darwin"),3,)
Regards,
Alan.
"pezacide" wrote in message
...
how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default formula help

Enter this formula in C8:

=IF(OR(B8={"Adelaide","Mackay","Katherine","Darwin "}),3,"")

--
Biff
Microsoft Excel MVP


"pezacide" wrote in message
...
how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default formula help

sorry kevin i dont get your answer does -- mean or.


"Kevin B" wrote:


--
Kevin Backmann


"pezacide" wrote:

how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default formula help

My system appears to have hiccupped while sending the reply. The function
that I suggested that you use in cell C8 is:

=IF(OR(B8="Adelaide",B8="Mackay",B8="Katherine",B8 ="Darwin"),3,"")
--
Kevin Backmann


"pezacide" wrote:

sorry kevin i dont get your answer does -- mean or.


"Kevin B" wrote:


--
Kevin Backmann


"pezacide" wrote:

how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default formula help

One way:

=IF(SUM(COUNTIF(B8,{"Adelaide","mackay","katherine ","darwin"})),3,"")

In article ,
pezacide wrote:

how would i write say
if B8=Adelaide or mackay or katherine or darwin then c8 = 3

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 05:43 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"