Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Barb Reinhardt
 
Posts: n/a
Default Can this be simplified

I have the following formula:

=(IF((OR($B$41="AA",$B$41="BB",$B$41="CC")),P42,NA ()))

I think I've seen another "more elegant" way to express it, but I just don't
remember what it is. Can someone assist?

Thanks,
Barb Reinhardt
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=IF(OR(B41={"AA","BB","CC"}),P42,NA())

In article ,
"Barb Reinhardt" wrote:

I have the following formula:

=(IF((OR($B$41="AA",$B$41="BB",$B$41="CC")),P42,NA ()))

I think I've seen another "more elegant" way to express it, but I just don't
remember what it is. Can someone assist?

Thanks,
Barb Reinhardt

  #3   Report Post  
Shatin
 
Posts: n/a
Default

The formula works OK for me WITHOUT being array-entered (since we are
dealing with array constants and not array variables).

"JE McGimpsey" wrote in message
...
One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=IF(OR(B41={"AA","BB","CC"}),P42,NA())



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Yup - I'd originally written the response with several different
solutions, and neglected to take the array-entry out when I edited.

Thanks for the correction!

In article ,
"Shatin" wrote:

The formula works OK for me WITHOUT being array-entered (since we are
dealing with array constants and not array variables).

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
Is there a way to stop fractions from being simplified? John Wilkins Excel Worksheet Functions 3 September 27th 05 04:17 PM
how can i change the traditional chinese font to simplified chine. Donald Excel Discussion (Misc queries) 0 July 9th 05 02:37 AM


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