Prev Previous Post   Next Post Next
  #4   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Jim,

The OR is necessary to reduce the results of looking at B2:B65536="NY" to a
single TRUE (at least one was TRUE), or FALSE (all were FALSE). If we
wrote:

=IF(B2:B65536 = "NY", ...

it would want to give us an array of answers, for each of B2 through B65536.
Array formulas can give an array for a result. In this case, we'd see only
the results of the first one (B2). By reducing them all to one TRUE or
FALSE with the OR, we don't get an array for an answer -- we get one TRUE or
FALSE.

That's my story but I might not stick to it.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Jim May" wrote in message
news:i2CXd.57526$%U2.25620@lakeread01...
Neat function Earl -- what with the OR() and a single argument...
How so?

"Earl Kiosterud" wrote in message
...
AK,

An easy way is to put this in a cell:

=IF(OR(B2:B65536="NY"),"Talk to Bob", "")

Enter as an array formula (Use Ctrl - Shift - Enter, not just Enter).

It's best put at the top of the worksheet in the freeze pane area, if you
have one, so it doesn't get scrolled off the screen.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"AK" wrote in message
...
Based on the entry in a cell in a column (B), how would a message box
appear
based on the entry.

Example:
If B2 = "NY", message box would appear, "Talk to John"
or if B5000 = "NY" same message would appear

Message box should appear for "NY" in the column and not a specific

cell.

Thank you in advance







 
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
Excel Error Message Mark Excel Worksheet Functions 3 June 1st 05 02:41 PM
when opening excel I receive a message that says file can't be fo. Ken Excel Discussion (Misc queries) 3 February 22nd 05 12:13 AM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
Pivot Table not valid error message when formatting data 'button'. MDW Excel Discussion (Misc queries) 0 January 27th 05 03:01 PM
Error message opening Excel97 workbook cobbler Excel Discussion (Misc queries) 2 December 11th 04 05:31 PM


All times are GMT +1. The time now is 04:42 AM.

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"