Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Help with a multiple OR statement.

I need to construct a multiple OR statement that looks at the first 5
characters of a cell (G16) and if it is Table, Day-T or Eveni, then
expression 1, otherwise expression 2.

Having asked a colleague, they have come up with:-

=IF(OR(LEFT(G16,5)="Table€¯,LEFT(G16,5)="Day-T€¯,
LEFT(G16,5)="Eveni),expression 1,expression 2)

Is there an easier way to write the above?

Any assistance offered would be welcome.

Regards

PM

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 225
Default Help with a multiple OR statement.

You can use:

=IF(OR(LEFT(G16,5)={"Table","Day-T","Eveni"}),expression 1,expression
2)

entered as an array formula (Ctrl-Shift-Enter)

Andrew


Pank wrote:
I need to construct a multiple OR statement that looks at the first 5
characters of a cell (G16) and if it is Table, Day-T or Eveni, then
expression 1, otherwise expression 2.

Having asked a colleague, they have come up with:-

=IF(OR(LEFT(G16,5)="Table",LEFT(G16,5)="Day-T",
LEFT(G16,5)="Eveni),expression 1,expression 2)

Is there an easier way to write the above?

Any assistance offered would be welcome.

Regards

PM


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Help with a multiple OR statement.

Andrew,

Thank U for your swift response.

Regards

PM

"Andrew Taylor" wrote:

You can use:

=IF(OR(LEFT(G16,5)={"Table","Day-T","Eveni"}),expression 1,expression
2)

entered as an array formula (Ctrl-Shift-Enter)

Andrew


Pank wrote:
I need to construct a multiple OR statement that looks at the first 5
characters of a cell (G16) and if it is Table, Day-T or Eveni, then
expression 1, otherwise expression 2.

Having asked a colleague, they have come up with:-

=IF(OR(LEFT(G16,5)="Table",LEFT(G16,5)="Day-T",
LEFT(G16,5)="Eveni),expression 1,expression 2)

Is there an easier way to write the above?

Any assistance offered would be welcome.

Regards

PM



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
IF Statement with multiple conditions Ladypep Excel Discussion (Misc queries) 3 April 5th 06 02:44 PM
Rebate incentive - Multiple tier payback - Confusing if Statement IntricateFool Excel Discussion (Misc queries) 2 March 28th 06 11:13 PM
link multiple cells to multiple cells jpoltor Excel Discussion (Misc queries) 1 March 22nd 06 08:10 AM
COUNTIF Statement with Multiple Conditions in Different Ranges KJA Excel Worksheet Functions 2 April 26th 05 05:14 PM
IF Statement that's conditional on multiple IF Stmts in other cell Pat Excel Worksheet Functions 1 March 26th 05 10:31 PM


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