LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson
 
Posts: n/a
Default Unable to search for a text value with IF

Hi Steve,
Just for fun I figured out another way:-)
It doesn't use MATCH or ISERROR, however, it is an array formula and
must be entered using Ctrl + Shift + Enter.
If you require that the Sheet1!A1 value be in both Sheet2 and Sheet3
lists the array formula would be...

=IF(AND(OR(Sheet1!A1=Sheet2!A1:A10),OR(Sheet1!A1=S heet3!A1:A10)),SUM
Formula,0)

If the Sheet1!A1 value only needs to be in at least one of the Sheet2
and Sheet3 lists the array formula would be...


=IF(OR(OR(Sheet1!A1=Sheet2!A1:A10),OR(Sheet1!A1=Sh eet3!A1:A10)),SUM
Formula,0)

If you enter the formula correctly as an array formula it will appear
in the Formula Bar enclosed by {, and }.
I'm notorious for forgetting to enter array formulas the correct way,
especially after doing a bit of editing. When the formula then gives me
wrong results the first thing I do is check out the formula in the
Formula Bar. Most of the time the {}s are missing. To correct my error
I have to click in the Formula then go Ctrl + Shift + Enter to get the
{}s back in place. Typing in the {}s yourself does not have the desired
effect, Excel has to insert them via Ctrl + Shift + Enter.

Ken Johnson

 
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
How change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
Search for Text in Excel Duncan, UK Excel Discussion (Misc queries) 6 January 11th 06 07:13 PM
How do I search for specific text and sum the cell to the right? PacRat2001 Excel Worksheet Functions 3 October 12th 05 04:21 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
How do I use VLOOKUP to search for text? Gman Excel Worksheet Functions 1 April 18th 05 12:11 AM


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